diff --git a/components/navbar.templ b/components/navbar.templ
index 0094e24..61baddb 100644
--- a/components/navbar.templ
+++ b/components/navbar.templ
@@ -86,95 +86,109 @@ func getSelectedAccountName(accounts []Account, id string) string {
return "Account"
}
-// TopBar renders the header bar with breadcrumbs and user dropdown
+// BreadcrumbNav renders the breadcrumb navigation for the subheader
+templ BreadcrumbNav(navCtx NavContext) {
+
+}
+
+// UserDropdown renders the user avatar dropdown menu
+templ UserDropdown(user NavUser) {
+
+
+
+
+
+
+
+ Connections
+
+
+
+ Devices
+
+
+
+ Settings
+
+
+
+
+ Sign Out
+
+
+
+}
+
+// Legacy components for backwards compatibility
+
+// TopBar renders the header bar with breadcrumbs and user dropdown (DEPRECATED - use wa-page slots)
templ TopBar(navCtx NavContext) {
-
-
-
-
-
-
-
- Connections
-
-
-
- Devices
-
-
-
- Settings
-
-
-
-
- Sign Out
-
-
-
+ @UserDropdown(navCtx.User)
}
-// TopBarStyles renders the CSS for the top bar
+// TopBarStyles renders the CSS for the top bar (DEPRECATED - use wa-page styles)
templ TopBarStyles() {
")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/components/sidebar.templ b/components/sidebar.templ
index db4f4aa..8891fc9 100644
--- a/components/sidebar.templ
+++ b/components/sidebar.templ
@@ -1,13 +1,13 @@
package components
-// SidebarItem represents a navigation item in the sidebar
+// SidebarItem represents a navigation item
type SidebarItem struct {
- ID string
- Icon string
- Label string
- Href string
- Active bool
- Badge string
+ ID string
+ Icon string
+ Label string
+ Href string
+ Active bool
+ Badge string
}
// DefaultSidebarItems returns the main navigation items
@@ -28,154 +28,34 @@ func SecondarySidebarItems() []SidebarItem {
}
}
-// Sidebar renders the Supabase-style icon sidebar
-templ Sidebar(items []SidebarItem, secondaryItems []SidebarItem) {
-