Skip to content

5320 client - Add shadcn sidebar app shell#5321

Merged
kresimir-coko merged 2 commits into
masterfrom
5320
Jul 7, 2026
Merged

5320 client - Add shadcn sidebar app shell#5321
kresimir-coko merged 2 commits into
masterfrom
5320

Conversation

@ivicac

@ivicac ivicac commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Old:
CleanShot 2026-07-06 at 13 10 10@2x

New:
CleanShot 2026-07-06 at 13 10 45@2x
CleanShot 2026-07-06 at 13 11 10@2x

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new shadcn-based “app shell” sidebar for the client, replacing the legacy mobile + desktop sidebar components and wiring the new sidebar into the main authenticated layout.

Changes:

  • Added a reusable shadcn sidebar implementation (SidebarProvider, Sidebar, triggers, menu primitives) and a new AppSidebar wrapper for app navigation.
  • Updated the authenticated app layout to use the new sidebar provider/inset pattern and removed the legacy MobileSidebar / DesktopSidebar implementations.
  • Extended theme tokens to support sidebar colors and added unit tests for the new sidebar components.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
client/tailwind.config.js Adds sidebar color tokens backed by CSS variables.
client/src/styles/index.css Defines the new --sidebar* CSS variables for theming.
client/src/shared/layout/MobileTopNavigation.tsx Switches mobile header to use SidebarTrigger instead of legacy menu state.
client/src/shared/layout/MobileSidebar.tsx Removes legacy mobile sidebar implementation.
client/src/shared/layout/desktop-sidebar/DesktopSidebar.tsx Removes legacy desktop sidebar implementation.
client/src/shared/layout/desktop-sidebar/DesktopSidebar.css Removes legacy desktop sidebar CSS.
client/src/shared/layout/app-sidebar/AppSidebarFooter.tsx Refactors the sidebar footer/user menu for the new sidebar shell.
client/src/shared/layout/app-sidebar/AppSidebarFooter.test.tsx Adds tests for footer trigger/menu rendering.
client/src/shared/layout/app-sidebar/AppSidebar.tsx Adds the new app navigation sidebar component using shadcn primitives.
client/src/shared/layout/app-sidebar/AppSidebar.test.tsx Adds tests for navigation item rendering/linking.
client/src/shared/hooks/use-mobile.tsx Adds a mobile breakpoint hook used by the sidebar system.
client/src/components/ui/sidebar.tsx Adds the shadcn sidebar primitives and provider/trigger components.
client/src/App.tsx Wires the authenticated layout into SidebarProvider + AppSidebar + SidebarInset.
client/components.json Updates shadcn generator config to place hooks under @/shared/hooks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/src/shared/layout/MobileTopNavigation.tsx Outdated
Comment thread client/src/shared/hooks/use-mobile.tsx Outdated
Comment thread client/src/shared/hooks/use-mobile.tsx Outdated
Comment thread client/src/App.tsx Outdated
@ivicac ivicac linked an issue Jul 2, 2026 that may be closed by this pull request
@ivicac
ivicac force-pushed the 5320 branch 2 times, most recently from f3acc44 to 1c91355 Compare July 6, 2026 09:13
@ivicac
ivicac requested a review from kresimir-coko July 6, 2026 11:11
@ivicac
ivicac force-pushed the 5320 branch 2 times, most recently from 7530096 to c6c4ac0 Compare July 6, 2026 13:08
@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'client'

Failed conditions
49.2% Coverage on New Code (required ≥ 80%)
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@kresimir-coko
kresimir-coko merged commit c8aa9e1 into master Jul 7, 2026
9 of 10 checks passed
@kresimir-coko
kresimir-coko deleted the 5320 branch July 7, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[task] Add shadcn sidebar app shell

3 participants