MCPcopy Create free account
hub / github.com/coder/coder / shouldShowAISeatColumn

Function shouldShowAISeatColumn

site/src/modules/dashboard/entitlements.ts:36–44  ·  view source on GitHub ↗
(entitlements: Entitlements)

Source from the content-addressed store, hash-verified

34 * identify who is consuming seats while remediating overages.
35 */
36export const shouldShowAISeatColumn = (entitlements: Entitlements): boolean => {
37 const aiGovernanceUserLimit = entitlements.features.ai_governance_user_limit;
38 return (
39 entitlements.has_license &&
40 aiGovernanceUserLimit.enabled &&
41 (aiGovernanceUserLimit.entitlement === "entitled" ||
42 aiGovernanceUserLimit.entitlement === "grace_period")
43 );
44};

Callers 2

UsersPageFunction · 0.90
OrganizationMembersPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected