-
Notifications
You must be signed in to change notification settings - Fork 127
Nav update icons clean #3095
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: main
Are you sure you want to change the base?
Nav update icons clean #3095
Conversation
- Add buildings.svelte icon for organizations/projects - Add cube.svelte icon for deployments/packages - Remove unused identities-icon.svelte - Update icon registry in paths.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Cloud with subtitle: uses push icon and new layout - Self-Hosted / Cloud without subtitle: uses chevron icon and standard layout - Maintains backward compatibility for UI/Core - Supports new subtitle functionality for Cloud repo 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Convert from slot syntax to Svelte 5 snippet syntax - Update Navigation to use children and bottom snippets - Update SideNavigation to pass snippets instead of slots - Update layout to use snippet syntax for bottom nav item Fixes Vite/Svelte compilation error about mixing slot and render tags 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Addresses code review feedback to separate navigation logic into distinct components instead of using conditional rendering. - Create CloudNavBar component for Cloud nav with subtitle/push icon - Create OSSNavBar component for Self-Hosted nav with chevron icon - Update navigation-container to delegate to appropriate component - Improves code maintainability and component reusability 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
andrewzamojc
left a comment
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.
Looks pretty good. I left a couple comments.
| {#if item.divider} | ||
| <hr class="-mx-4 my-4 border-subtle" /> | ||
| <Navigation {isCloud} {bottom} aria-label={translate('common.primary')}> | ||
| {#snippet children()} |
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.
Nit: Children snippet is implicit, so you don't need this line {#snippet children()}. https://svelte.dev/docs/svelte/snippet#Passing-snippets-to-components-Implicit-children-snippet
| class="self-center justify-self-center py-3 text-center text-[0.6rem] text-slate-300" | ||
| > | ||
| <span class="sr-only">{translate('common.version')}</span> | ||
| {#if isCloud && subtitle} |
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.
Question: Should subtitle be part of this if check? If isCloud is true, but subtitle happens to be blank, shouldn't it still render the CloudNavBar just with an blank subtitle='' ?
|
Nav Container Update
This PR is meant to add the underlying structure for the new nav.
Add new navigation icons
Adds buildings and cube icons to the Holocene icon library for use in
navigation updates.
Changes
subtitle/push icon) and Self-Hosted (with chevron icon) layouts
snippet syntax for compatibility
Technical Notes