Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/store/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ var reservedCollectionSlugs = map[string]bool{
"tags": true, // Tag pages: /{ws}/tags and /{ws}/tags/{tag} (PLAN-1652)
"library": true,
"insights": true, // Insights analytics page route (PLAN-1628 / TASK-1633)
"graph": true, // 3D workspace graph page route (PLAN-1730 / TASK-1733)
"new": true,
// "ref" is reserved for the cross-workspace wiki-link resolver route
// (IDEA-1492): GET /{username}/{workspace}/ref/{REF} → 302 to the
Expand Down
222 changes: 222 additions & 0 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@tiptap/starter-kit": "^3.22.5",
"@tiptap/suggestion": "^3.22.5",
"@tiptap/y-tiptap": "^3.0.3",
"3d-force-graph": "1.80.0",
"d3-scale": "4.0.2",
"diff": "^9.0.0",
"dompurify": "^3.4.2",
Expand Down
10 changes: 10 additions & 0 deletions web/src/lib/components/layout/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
let activeKey = $derived(getActiveKey(page.url.pathname, wsPrefix));
let isDashboardPage = $derived(activeKey === 'dashboard');
let isInsightsPage = $derived(activeKey === 'insights');
let isGraphPage = $derived(activeKey === 'graph');
let isRolesPage = $derived(activeKey === 'roles');
let isActivityPage = $derived(activeKey === 'activity');
let isStarredPage = $derived(activeKey === 'starred');
Expand Down Expand Up @@ -420,6 +421,15 @@
<span class="nav-icon">📈</span>
<span class="nav-label">Insights</span>
</a>
<a
href="{wsPrefix}/graph"
class="nav-item"
class:active={isGraphPage}
onclick={() => uiStore.onNavigate()}
>
<span class="nav-icon">🕸</span>
<span class="nav-label">Graph</span>
</a>
<a
href="{wsPrefix}/roles"
class="nav-item"
Expand Down
4 changes: 4 additions & 0 deletions web/src/lib/nav/destinations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
export type NavKey =
| 'dashboard'
| 'insights'
| 'graph'
| 'roles'
| 'activity'
| 'starred'
Expand Down Expand Up @@ -47,6 +48,7 @@ export const RESERVED_SLUGS = [
'tags',
'roles',
'insights',
'graph',
''
] as const;

Expand All @@ -59,6 +61,7 @@ export function getPrimaryDestinations(wsPrefix: string): NavDestination[] {
return [
{ key: 'dashboard', href: wsPrefix, icon: '📊', label: 'Dashboard' },
{ key: 'insights', href: `${wsPrefix}/insights`, icon: '📈', label: 'Insights' },
{ key: 'graph', href: `${wsPrefix}/graph`, icon: '🕸', label: 'Graph' },
{ key: 'roles', href: `${wsPrefix}/roles`, icon: '🎭', label: 'Roles' },
{ key: 'activity', href: `${wsPrefix}/activity`, icon: '📋', label: 'Activity' },
{ key: 'starred', href: `${wsPrefix}/starred`, icon: '⭐', label: 'Starred' },
Expand All @@ -76,6 +79,7 @@ export function getActiveKey(pathname: string, wsPrefix: string): string | null
if (!wsPrefix) return null;
if (pathname === wsPrefix) return 'dashboard';
if (pathname === `${wsPrefix}/insights`) return 'insights';
if (pathname === `${wsPrefix}/graph`) return 'graph';
if (pathname === `${wsPrefix}/roles`) return 'roles';
if (pathname === `${wsPrefix}/activity`) return 'activity';
if (pathname === `${wsPrefix}/starred`) return 'starred';
Expand Down
Loading