From 7ac311fee3fed3283e97204cc826fa81fcd8187a Mon Sep 17 00:00:00 2001 From: RedStar Date: Sun, 8 Nov 2026 19:11:29 +0100 Subject: [PATCH 1/2] feat(dashboard): make the shell usable on phones Below 768px the sidebar was hidden with nothing in its place, so Audit, Settings, the account and sign-out were unreachable. The sidebar now opens as a drawer from a per-page navbar, following the layout of the Nuxt UI dashboard starter within the existing UnoCSS design system. - AppNavbar replaces three copies of the page header; language and theme move to the sidebar footer with the account - Metrics become one strip that reflows without an orphan cell - New task opens in a native modal dialog from the navbar - Define the missing btn-primary shortcut and replace text-error with text-danger, which left the queue and approve buttons unstyled --- apps/web/app/layouts/default.vue | 10 +- apps/web/app/pages/(dashboard)/audit.vue | 39 ++-- apps/web/app/pages/(dashboard)/index.vue | 122 +++++++------ apps/web/app/pages/(dashboard)/settings.vue | 45 ++--- .../(organizations)/organizations/index.vue | 9 +- apps/web/modules/auth/components/UserMenu.vue | 42 ++++- .../dashboard/components/NewTaskDialog.vue | 52 ++++++ .../dashboard/components/NewTaskForm.vue | 132 ++++++-------- .../dashboard/components/RunnerMetrics.vue | 45 ++--- .../dashboard/components/task/Inspector.vue | 6 +- .../modules/shared/components/app/Navbar.vue | 35 ++++ .../modules/shared/components/app/Sidebar.vue | 166 +++++++++++++++--- .../shared/composables/useSidebarOpen.ts | 16 ++ apps/web/uno.config.ts | 3 + packages/i18n/locales/en/dashboard.json | 8 +- packages/i18n/locales/it/dashboard.json | 8 +- packages/i18n/schemas/dashboard.schema.json | 18 +- 17 files changed, 461 insertions(+), 295 deletions(-) create mode 100644 apps/web/modules/dashboard/components/NewTaskDialog.vue create mode 100644 apps/web/modules/shared/components/app/Navbar.vue create mode 100644 apps/web/modules/shared/composables/useSidebarOpen.ts diff --git a/apps/web/app/layouts/default.vue b/apps/web/app/layouts/default.vue index b5620096..20085a93 100644 --- a/apps/web/app/layouts/default.vue +++ b/apps/web/app/layouts/default.vue @@ -1,7 +1,12 @@