Skip to main content

Interface: WidgetSelectionCtx

Defined in: src/server/dashboard/select.ts:8

Properties

domains

readonly domains: 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?

readonly optional extra?: 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?

readonly optional hidden?: 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

readonly isOwner: boolean

Defined in: src/server/dashboard/select.ts:12

Owners may additionally see ownerOnly widgets.