From 2b9129591cd448174584790f94c33d419f26f61e Mon Sep 17 00:00:00 2001 From: Michele Date: Tue, 7 Apr 2026 10:34:09 +0200 Subject: [PATCH] refactor: restructure sidebar navigation with logical groups Sidebar reorganized from 9 flat items to 7 items in 3 groups: CREA: Genera, Libreria, Idee PIANIFICA: Calendario, Programmati GESTISCI: Personaggi Removed from primary nav: - Link Affiliati (secondary, move to Settings later) - Social (setup, accessible via Settings) - Commenti (unused, future Pro feature) Other changes: - /content/library route added (replaces /content/archive as primary) - /content/archive kept as fallback route - All links updated to point to /content/library - "Contenuti" renamed to "Genera" - "Pianificazione" renamed to "Calendario" - "Schedulazione" renamed to "Programmati" - "Nuovo piano" button removed from Dashboard - Nav group headers with uppercase labels - end prop on /content to avoid highlighting on /content/library Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/App.jsx | 1 + frontend/src/components/ContentPage.jsx | 2 +- frontend/src/components/Dashboard.jsx | 3 +- frontend/src/components/Layout.jsx | 102 ++++++++++++++---------- 4 files changed, 61 insertions(+), 47 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 3d49735..7a970c7 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -52,6 +52,7 @@ export default function App() { } /> } /> } /> + } /> } /> } /> } /> diff --git a/frontend/src/components/ContentPage.jsx b/frontend/src/components/ContentPage.jsx index a7cc119..2099b99 100644 --- a/frontend/src/components/ContentPage.jsx +++ b/frontend/src/components/ContentPage.jsx @@ -212,7 +212,7 @@ export default function ContentPage() {

Definisci un brief editoriale, scegli piattaforma e tipo, poi genera. L'AI terrà conto del tono e dei topic del personaggio selezionato.

- + Libreria → diff --git a/frontend/src/components/Dashboard.jsx b/frontend/src/components/Dashboard.jsx index e210a28..6144019 100644 --- a/frontend/src/components/Dashboard.jsx +++ b/frontend/src/components/Dashboard.jsx @@ -145,7 +145,6 @@ export default function Dashboard() { Genera contenuto Calendario AI Nuovo personaggio - Nuovo piano @@ -235,7 +234,7 @@ export default function Dashboard() {
Post recenti - + Vedi tutti
diff --git a/frontend/src/components/Layout.jsx b/frontend/src/components/Layout.jsx index e33ebdc..1609dae 100644 --- a/frontend/src/components/Layout.jsx +++ b/frontend/src/components/Layout.jsx @@ -6,15 +6,16 @@ import OnboardingWizard, { useOnboarding } from './OnboardingWizard' import { useAuth } from '../AuthContext' const nav = [ - { to: '/', label: 'Dashboard' }, - { to: '/characters',label: 'Personaggi' }, - { to: '/content', label: 'Contenuti' }, - { to: '/ideas', label: 'Idee' }, - { to: '/affiliates',label: 'Link Affiliati' }, - { to: '/editorial', label: 'Pianificazione' }, - { to: '/schedule', label: 'Schedulazione' }, - { to: '/social', label: 'Social' }, - { to: '/comments', label: 'Commenti' }, + { to: '/', label: 'Dashboard' }, + { group: 'Crea' }, + { to: '/content', label: 'Genera' }, + { to: '/content/library', label: 'Libreria' }, + { to: '/ideas', label: 'Idee' }, + { group: 'Pianifica' }, + { to: '/editorial', label: 'Calendario' }, + { to: '/schedule', label: 'Programmati' }, + { group: 'Gestisci' }, + { to: '/characters', label: 'Personaggi' }, ] export default function Layout() { @@ -69,41 +70,54 @@ export default function Layout() {
{/* Nav */} -