feat(web): make google cast opt in (#18514)

* add setting switch

this isnt bound to anything yet

* make google casting opt-in

* doc updates

* lint docs

* remove unneeded translation items

* update mobile openai defs

* fix failing test

we need to mock user prefs since CastButton uses it
This commit is contained in:
Brandon Wees 2025-05-28 15:57:36 -05:00 committed by GitHub
parent b054e9dc2c
commit 78224961d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 383 additions and 3 deletions

View file

@ -0,0 +1,43 @@
import type { UserPreferencesResponseDto } from '@immich/sdk';
import { Sync } from 'factory.ts';
export const preferencesFactory = Sync.makeFactory<UserPreferencesResponseDto>({
cast: {
gCastEnabled: false,
},
download: {
archiveSize: 0,
includeEmbeddedVideos: false,
},
emailNotifications: {
albumInvite: false,
albumUpdate: false,
enabled: false,
},
folders: {
enabled: false,
sidebarWeb: false,
},
memories: {
enabled: false,
},
people: {
enabled: false,
sidebarWeb: false,
},
purchase: {
hideBuyButtonUntil: '',
showSupportBadge: false,
},
ratings: {
enabled: false,
},
sharedLinks: {
enabled: false,
sidebarWeb: false,
},
tags: {
enabled: false,
sidebarWeb: false,
},
});