feat: redesign CMS and unify German admin UI
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Central, extensible registry of known analytics event names. Adding a new
|
||||
* event elsewhere in the app never requires a migration — the database
|
||||
* column (collections/AnalyticsEvents.ts#eventName) is free-text — this
|
||||
* event elsewhere in the app never requires a migration - the database
|
||||
* column (collections/AnalyticsEvents.ts#eventName) is free-text - this
|
||||
* list exists purely so `track()` calls get autocomplete/type-checking and
|
||||
* the dashboard can show a nice German label instead of a raw event name.
|
||||
*
|
||||
@@ -18,7 +18,7 @@ export const ANALYTICS_EVENTS = {
|
||||
|
||||
export type KnownAnalyticsEvent = keyof typeof ANALYTICS_EVENTS;
|
||||
|
||||
/** Any string works (see the collection comment above) — known ones just get a label. */
|
||||
/** Any string works (see the collection comment above) - known ones just get a label. */
|
||||
export type AnalyticsEventName = KnownAnalyticsEvent | (string & {});
|
||||
|
||||
export function analyticsEventLabel(eventName: string): string {
|
||||
|
||||
Reference in New Issue
Block a user