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
|
|
@ -1,6 +1,7 @@
|
|||
import { useMemo, useState } from 'react';
|
||||
import { ActivityIndicator, ScrollView, StyleSheet, View } from 'react-native';
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
||||
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
||||
import { useI18n, type TranslationKey } from '@d3ro/i18n';
|
||||
import { useAuth } from '../lib/auth-context';
|
||||
|
|
@ -18,6 +19,7 @@ import {
|
|||
sharePreparedPortableFile,
|
||||
type PreparedPortableFile,
|
||||
} from '../features/data-portability';
|
||||
import type { RootStackParamList } from '../../App';
|
||||
|
||||
type ExportKind =
|
||||
| 'account-json'
|
||||
|
|
@ -26,6 +28,7 @@ type ExportKind =
|
|||
| 'history-csv'
|
||||
| 'summary-txt';
|
||||
type BusyAction = ExportKind | 'import' | null;
|
||||
type DataPortabilityNavigation = NativeStackNavigationProp<RootStackParamList, 'DataPortability'>;
|
||||
|
||||
const ERROR_KEYS: Record<PortabilityError['code'], TranslationKey> = {
|
||||
auth: 'mobile.portability.error.auth',
|
||||
|
|
@ -45,7 +48,7 @@ const ERROR_KEYS: Record<PortabilityError['code'], TranslationKey> = {
|
|||
|
||||
export default function DataPortabilityScreen(): React.ReactElement {
|
||||
const insets = useSafeAreaInsets();
|
||||
const navigation = useNavigation<any>();
|
||||
const navigation = useNavigation<DataPortabilityNavigation>();
|
||||
const { t } = useI18n();
|
||||
const { user } = useAuth();
|
||||
const { palette } = useMobilePreferences();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue