Interface: WidgetSelectionCtx
Defined in: src/server/dashboard/select.ts:8
Properties
domains
readonlydomains:ReadonlySet<"billing"|"overview"|"business_dev"|"recruiting"|"onboarding"|"team"|"time"|"payroll"|"insights"|"settings">
Defined in: src/server/dashboard/select.ts:10
The domains the current admin may access (from permittedDomainsForCurrentAdmin).
extra?
readonlyoptionalextra?:ReadonlySet<string>
Defined in: src/server/dashboard/select.ts:21
Widget ids GRANTED to this admin's role beyond its domains — added to the in-domain default. The owner-only gate is still applied after, so an owner-only widget can never be granted to staff.
hidden?
readonlyoptionalhidden?:ReadonlySet<string>
Defined in: src/server/dashboard/select.ts:16
Widget ids HIDDEN for this admin's role in Setup — subtracted from the role's in-domain default.
isOwner
readonlyisOwner:boolean
Defined in: src/server/dashboard/select.ts:12
Owners may additionally see ownerOnly widgets.