-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat) O3-3774: Add implementation for the Nav Group #1116
Conversation
Size Change: -430 kB (-6.99%) ✅ Total Size: 5.73 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR both extracts too much and too little. The only things we should need to move (AFAICT) are the generic-nav-group and maybe the generic-dashboard. I don't really see the value of or how anyone would even make use of the DashboardGroup stuff generically (it works in the chart, let's keep it there and simplify what this PR needs to do).
packages/framework/esm-styleguide/src/left-nav/CreateDashboardGroup.tsx
Outdated
Show resolved
Hide resolved
packages/framework/esm-styleguide/src/left-nav/generic-nav-group.component.tsx
Outdated
Show resolved
Hide resolved
So two other things need to happen for this PR to work:
|
@ibacher Most of what is in the generic-nav component is what is in the nav-group component unless if i am missing something |
By registering, do you mean creating a store and registering it in the store as they did in the common-lib? like this; const navGroupStore = createGlobalStore('global-nav-groups', { navGroups: [] });
export function registerNavGroup(slotName: string) {
const store = navGroupStore.getState();
navGroupStore.setState({ navGroups: [slotName, ...store.navGroups] });
} |
No. I mean actually registering the extension with the extension system, via the This is why I commented suggesting to rename the extension |
@ibacher anything we haven't covered in the PR, just want to know if there is more work or just the final review. |
@ibacher do we still want to move this into core or we close it |
* Add nav group extension * Update docs * clean up * Remove unnecessary components * update docs * clean up * update t * define feature name for nav group * update docs * make group title translatable * update docs * tweak title translation and slot name * update api docs * register the global nav group extension * update docs * clean up * PR reviews * Update docs * Move nav group to primary-navigation-app --------- Co-authored-by: Ian <[email protected]>
Requirements
feat
,fix
, orchore
, among others). See existing PR titles for inspiration.For changes to apps
If applicable
Summary
Screenshots
I couldn't link the framework to the patient chart so I tested with the primary navigation app instead and below is a demo.
nav-group-demo.mov
Related Issue
Other