Interface: RoleWidgetConfig
Defined in: src/server/dashboard/config.ts:20
Per-role dashboard widget overrides (settings key dashboard_widgets). Keyed by role — 'owner'
or a staff access-role key (e.g. 'finance'):
hidden: widget ids removed from the role's DEFAULT (in-domain) set.extra: widget ids GRANTED to the role beyond its domains.
The default for a role is "every widget whose domain it can access". hidden subtracts from that;
extra adds to it. A granted widget shows its aggregate KPI on the dashboard, but the linked module
page stays domain-gated by requireAccess, and owner-only widgets (audit) can never be granted (the
resolution step re-applies the owner gate, and audit_log RLS is is_owner()). So this widens which
SIGNALS a role sees without widening access to the underlying pages or data.
Properties
extra
extra:
string[]
Defined in: src/server/dashboard/config.ts:22
hidden
hidden:
string[]
Defined in: src/server/dashboard/config.ts:21