chore: land in-progress workspace changes before 1.16.2
The tree carried uncommitted work from several areas (web push, mobile screens, admin charts, test-hygiene cleanup, CI and map docs). It is landed as one commit so the release pipeline can start from a clean tree; the desktop transcript-correction behaviour shipped in the previous commit and is unchanged here.
This commit is contained in:
parent
9c2b6a9782
commit
7fe49c437e
144 changed files with 3760 additions and 4523 deletions
|
|
@ -9,6 +9,7 @@ import {
|
|||
View,
|
||||
} from 'react-native'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import type { NativeStackNavigationProp } from '@react-navigation/native-stack'
|
||||
import { useI18n, type TranslationKey } from '@d3ro/i18n'
|
||||
import { SITE_URLS } from '@d3ro/core/web-urls'
|
||||
import { useAuth } from '../lib/auth-context'
|
||||
|
|
@ -34,8 +35,10 @@ import { useDevice } from '../lib/device-context'
|
|||
import { currentAdminRole } from '../features/admin/admin-service'
|
||||
import { ScreenHeader } from '../components/ScreenHeader'
|
||||
import { performAccountLogout } from '../lib/account-exit'
|
||||
import type { RootStackParamList } from '../../App'
|
||||
|
||||
type SavingPreference = 'theme' | 'locale' | 'autoPolish' | 'haptic' | null
|
||||
type SettingsNavigation = NativeStackNavigationProp<RootStackParamList, 'Settings'>
|
||||
|
||||
const THEME_LABEL_KEYS: Record<MobileThemeMode, TranslationKey> = {
|
||||
system: 'mobile.theme.system',
|
||||
|
|
@ -62,7 +65,7 @@ const ERROR_KEYS: Record<PreferencesErrorCode, TranslationKey> = {
|
|||
export default function SettingsScreen(): React.ReactElement {
|
||||
const { t, locale, setLocale, formatTime } = useI18n()
|
||||
const { user, purgeLocalSession } = useAuth()
|
||||
const navigation = useNavigation<any>()
|
||||
const navigation = useNavigation<SettingsNavigation>()
|
||||
const {
|
||||
preferences,
|
||||
palette,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue