mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +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:
@@ -6,8 +6,8 @@ import { useSettingsStore } from '../../store/settingsStore';
|
||||
/**
|
||||
* Which integrations the settings shells offer: the addon flags behind each
|
||||
* integration section, whether any of them is on, and whether this is a managed
|
||||
* install. The desktop Integrations tab shows regardless, since its API keys need
|
||||
* no addon; the mobile one has no API keys and only shows when `hasIntegrations`.
|
||||
* install. The Integrations tab shows regardless on both shells, since the API
|
||||
* keys in it need no addon; `hasIntegrations` says whether any addon section is on.
|
||||
* With `reloadAddons` the addon list is fetched again on mount, as the
|
||||
* integrations tab on both shells does.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user