mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
Add an admin switch for place enrichment
Reads fail-open, unlike the three older places_* switches. Those read === 'true', which is why migration 185 had to backfill a row on every existing install; there is nothing here that warrants repeating that. The three hand-rolled toggles next to it move to ToggleSwitch while I am in there - they were bare buttons with an inline transform and no aria-pressed or label, so a screen reader could not tell their state.
This commit is contained in:
@@ -44,6 +44,7 @@ export function buildAdminHook(overrides: Record<string, unknown> = {}): AdminHo
|
||||
setPlacesPhotosEnabled: vi.fn(),
|
||||
setPlacesAutocompleteEnabled: vi.fn(),
|
||||
setPlacesDetailsEnabled: vi.fn(),
|
||||
setPlacesEnrichEnabled: vi.fn(),
|
||||
logout: vi.fn(async () => undefined),
|
||||
navigate: vi.fn(),
|
||||
toast: buildAdminToast(),
|
||||
@@ -73,6 +74,8 @@ export function buildAdminHook(overrides: Record<string, unknown> = {}): AdminHo
|
||||
setPlacesAutocompleteEnabledState: vi.fn(),
|
||||
placesDetailsEnabled: false,
|
||||
setPlacesDetailsEnabledState: vi.fn(),
|
||||
placesEnrichEnabled: true,
|
||||
setPlacesEnrichEnabledState: vi.fn(),
|
||||
collabFeatures: { chat: true, notes: true, polls: true, whatsnext: true },
|
||||
setCollabFeatures: vi.fn(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user