Show sidebar only for system admin and hide reports centre
This commit is contained in:
@@ -105,15 +105,6 @@ def build_workspace_cards(roles: Iterable[str] | None, permissions: Iterable[str
|
||||
priority=70,
|
||||
))
|
||||
|
||||
# Reports centre is available as a role-aware workspace for every authenticated user.
|
||||
cards.append(WorkspaceCard(
|
||||
code="reports",
|
||||
title="Reports Centre",
|
||||
description="Role-aware reports grouped by work, clients, billing, HR, system and audit areas.",
|
||||
url="/reports",
|
||||
badge="Reports",
|
||||
priority=90,
|
||||
))
|
||||
|
||||
return sorted(cards, key=lambda card: card.priority)
|
||||
|
||||
@@ -134,6 +125,4 @@ def current_workspace_code(current_path: str | None) -> str:
|
||||
return "client"
|
||||
if path.startswith("/consultant"):
|
||||
return "consultant"
|
||||
if path.startswith("/reports"):
|
||||
return "reports"
|
||||
return ""
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
<div class="mt-2 flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between">
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold text-slate-900">My Workspaces</h1>
|
||||
<p class="mt-1 max-w-3xl text-sm text-slate-500">Open the workspace allowed for your role. This page does not replace any existing module; it only gives a clean entry point to dashboards and reports.</p>
|
||||
<p class="mt-1 max-w-3xl text-sm text-slate-500">Open the workspace allowed for your role. This page does not replace any existing module; it only gives a clean entry point to dashboards and portals.</p>
|
||||
</div>
|
||||
<a href="/reports" class="inline-flex items-center justify-center rounded-2xl bg-slate-900 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-slate-800">Open Reports Centre</a>
|
||||
<span class="inline-flex items-center justify-center rounded-2xl border border-slate-200 bg-slate-50 px-4 py-2 text-sm font-semibold text-slate-600">Reports Centre will return in final phase</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user