SurfSense/surfsense_web/components/layout/providers
CREDO23 7bc52dcdc0 feat(web): surface Automations in the sidebar under Inbox
Adds an "Automations" nav entry rendered explicitly between Inbox and
(on mobile) Documents, mirroring how those two are pulled out of the
nav list and rendered above the chat sections. The icon is Workflow
to match settings/RBAC labelling.

LayoutDataProvider:
- Adds the entry to navItems pointing at /dashboard/[id]/automations.
- Marks isActive via pathname so the row highlights on the route.
- Tags /automations as a workspace-panel page so it renders in the
  centered settings-style viewport (same chrome as Team / settings).

Sidebar:
- Pulls out automationsItem alongside inboxItem and documentsItem.
- Renders it between them.
- Excludes its URL from footerNavItems so it doesn't double-render.

Page-level RBAC still gates the actual view; the sidebar entry is
always visible (consistent with Inbox/Documents which are also not
gated at the nav layer).

Anonymous (FreeLayoutDataProvider) intentionally not touched —
automations is an authenticated feature.
2026-05-28 01:11:20 +02:00
..
FreeLayoutDataProvider.tsx refactor: update icons and improve sidebar styling for enhanced user experience 2026-05-15 00:25:58 +05:30
index.ts feat: add new layout system (Slack/ClickUp inspired) 2026-01-08 19:10:40 +02:00
LayoutDataProvider.tsx feat(web): surface Automations in the sidebar under Inbox 2026-05-28 01:11:20 +02:00