mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +00:00
feat(mobile): API keys in the phone's settings
- MApiKeysSection: the keys with what each may read, creating one in a sheet (name, the areas as chips, the key shown once with a copy button), deleting behind a confirm sheet, and the endpoint to copy. - The list and every action move from ApiKeysSection into useApiKeys, shared by both views; the calls go through a small online-only apiKeysRepo, so no view reaches the API (offline baseline loses ApiKeysSection and AdminSettingsTab). - The phone's Integrations tab is always there now, as on the desktop: the keys in it need no addon. - A test title no longer breaks on its apostrophe.
This commit is contained in:
@@ -57,6 +57,12 @@
|
||||
"desktop": ["src/pages/admin/AdminSettingsTab.tsx"],
|
||||
"mobile": ["src/mobile/screens/admin/MAdminSettingsSection.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "API keys",
|
||||
"hooks": ["src/components/Settings/useApiKeys.ts"],
|
||||
"desktop": ["src/components/Settings/ApiKeysSection.tsx"],
|
||||
"mobile": ["src/mobile/screens/settings/MApiKeysSection.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "Wanderer connection",
|
||||
"hooks": ["src/components/Settings/useWandererConnection.ts"],
|
||||
|
||||
@@ -97,7 +97,6 @@
|
||||
"src/components/Roadtrip/useDayBoundaries.ts",
|
||||
"src/components/Roadtrip/useRefuelSearch.ts",
|
||||
"src/components/Roadtrip/useRoadtripVias.ts",
|
||||
"src/components/Settings/ApiKeysSection.tsx",
|
||||
"src/components/Settings/useAccountSettings.ts",
|
||||
"src/components/Settings/useAirTrailSettings.ts",
|
||||
"src/components/Settings/useMcpIntegration.ts",
|
||||
@@ -129,7 +128,6 @@
|
||||
"src/mobile/screens/trip/tabs/MCollabNotes.tsx",
|
||||
"src/pages/JourneyDetailPage.tsx",
|
||||
"src/pages/OAuthAuthorizePage.tsx",
|
||||
"src/pages/admin/AdminSettingsTab.tsx",
|
||||
"src/pages/admin/useAdmin.ts",
|
||||
"src/pages/admin/useNotificationDefaults.ts",
|
||||
"src/pages/atlas/useAtlas.ts",
|
||||
|
||||
Reference in New Issue
Block a user