Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,48 @@
|
||||
import { DefaultFeatures } from "~/application/dtos/shared/DefaultFeatures";
|
||||
import type { FeatureFlagsFilterType } from "~/modules/featureFlags/dtos/FeatureFlagsFilterTypes";
|
||||
|
||||
export type DashboardModuleId = "summary-stats" | "priority-insights" | "subscription-health";
|
||||
|
||||
export interface DashboardModuleDefinition {
|
||||
readonly id: DashboardModuleId;
|
||||
readonly titleKey: string;
|
||||
readonly descriptionKey: string;
|
||||
readonly featureFlagKey?: FeatureFlagsFilterType;
|
||||
readonly planFeatureKey?: DefaultFeatures | string;
|
||||
}
|
||||
|
||||
export const dashboardModuleRegistry = Object.freeze([
|
||||
{
|
||||
id: "summary-stats",
|
||||
titleKey: "app.dashboard.modules.summaryStats.title",
|
||||
descriptionKey: "app.dashboard.modules.summaryStats.description",
|
||||
},
|
||||
{
|
||||
id: "priority-insights",
|
||||
titleKey: "app.dashboard.modules.priorityInsights.title",
|
||||
descriptionKey: "app.dashboard.modules.priorityInsights.description",
|
||||
planFeatureKey: DefaultFeatures.PrioritySupport,
|
||||
},
|
||||
{
|
||||
id: "subscription-health",
|
||||
titleKey: "app.dashboard.modules.subscriptionHealth.title",
|
||||
descriptionKey: "app.dashboard.modules.subscriptionHealth.description",
|
||||
featureFlagKey: "tenant.subscription.active",
|
||||
},
|
||||
] as const satisfies readonly DashboardModuleDefinition[]);
|
||||
|
||||
const dashboardModuleIds = dashboardModuleRegistry.map((module) => module.id) as readonly DashboardModuleId[];
|
||||
const dashboardGateSources = Object.freeze(["feature-flag", "plan"] as const);
|
||||
|
||||
export const dashboardRegistryEvidence = Object.freeze({
|
||||
registryName: "Tenant/Workspace Dashboard",
|
||||
registryScope: "tenant-workspace-dashboard-modules",
|
||||
expectedModuleIds: dashboardModuleIds,
|
||||
gatingSourcesRepresented: dashboardGateSources,
|
||||
redactionGuarantee:
|
||||
"Dashboard registry evidence is static source metadata only and excludes request, tenant, subscription, user, token, environment, and raw feature input values.",
|
||||
} as const);
|
||||
|
||||
export function getDashboardModuleDefinitions(): readonly DashboardModuleDefinition[] {
|
||||
return dashboardModuleRegistry;
|
||||
}
|
||||
Reference in new issue
Block a user