Unify workspace dropdowns; Update layouts (#458)

Unified Account and Workspace drop-downs; Layout updates, now header lives within the PageBody component; Sidebars now use floating variant
This commit is contained in:
Giancarlo Buomprisco
2026-03-11 14:45:42 +08:00
committed by GitHub
parent ca585e09be
commit 4bc8448a1d
530 changed files with 14398 additions and 11198 deletions

View File

@@ -1,4 +1,4 @@
import { z } from 'zod';
import * as z from 'zod';
const MONITORING_PROVIDERS = [
'sentry',
@@ -7,13 +7,11 @@ const MONITORING_PROVIDERS = [
] as const;
export const MONITORING_PROVIDER = z
.enum(MONITORING_PROVIDERS, {
errorMap: () => ({ message: 'Invalid monitoring provider' }),
})
.enum(MONITORING_PROVIDERS)
.optional()
.transform((value) => value || undefined);
export type MonitoringProvider = z.infer<typeof MONITORING_PROVIDER>;
export type MonitoringProvider = z.output<typeof MONITORING_PROVIDER>;
export function getMonitoringProvider() {
const provider = MONITORING_PROVIDER.safeParse(