-
Notifications
You must be signed in to change notification settings - Fork 2
Decision process edit page navigation #483
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
base: dev
Are you sure you want to change the base?
Conversation
| <div | ||
| data-slot="sidebar-wrapper" | ||
| className={cn('min-h-svh w-full', className)} | ||
| {...props} | ||
| > | ||
| {children} | ||
| </div> |
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.
Took the opportunity to simplify the sidebar component, as the provider shouldn't have any styles associated with it -- that's what SidebarLayout is for. I've tested it but let me know if you spot anything off.
| tabListStyles({ | ||
| ...renderProps, | ||
| variant: props.variant, | ||
| orientation: props.orientation, |
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.
This wasn't fully set up, so I updated it and now it works
Summary
Implements a two-level tab navigation for the Process Builder edit page with URL state sync.
Key Patterns
Navigation Config (
navigation-config.ts)as constStepId,SectionIdNavigationConfiginterface allows hiding steps/sections dynamicallyNavigation Hook (
useProcessNavigation.ts)?step=X§ion=Yquery params via nuqsContent Registry (
content-registry.tsx)stepId,sectionId) → React componentgetContentComponent(stepId, sectionId)stepContent/{step}/{section}.tsxBehavior
Files
navigationConfig.ts- Config and typesuseProcessNavigation.ts- Navigation state hookcontentRegistry.tsx- Component registryProcessBuilderSectionNav.tsx- Section tabs (hidden for single-section steps)stepContent/**/*.tsx- Placeholder section components