Revert "Unify workspace dropdowns; Update layouts (#458)"

This reverts commit 4bc8448a1d.
This commit is contained in:
gbuomprisco
2026-03-11 14:47:47 +08:00
parent 4bc8448a1d
commit 4912e402a3
530 changed files with 11182 additions and 14382 deletions

View File

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