mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 11:06:06 +00:00
feat(mobile): the admin services section gets what the desktop tab has
- Place search and routing as one card, as on the desktop: TREK's own services, today's allowance with a new identity behind a confirm sheet (MAdminServiceQuota), sharing place details (MAdminPlaceContrib), the transit backend and the place search provider as TREK selects, and the search log. - The key card holds Google (with its options and the daily request cap, MAdminGoogleDailyLimit), Unsplash and Amap, in the desktop order. - The logic both views need moves into one place: the transit switch into useAdminSettingsActions, the allowance figures into serviceIdentityModel, and the share-place-details panel into usePlaceContribPanel. - MAdminSettingsSection renders each section in a function of its own. - Tests follow the split admin sections (Save order, 2FA label, field marker).
This commit is contained in:
@@ -57,6 +57,30 @@
|
||||
"desktop": ["src/pages/admin/AdminSettingsTab.tsx"],
|
||||
"mobile": ["src/mobile/screens/admin/MAdminSettingsSection.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "Admin Google daily limit",
|
||||
"hooks": ["src/components/Admin/useGoogleQuota.ts"],
|
||||
"desktop": ["src/components/Admin/GoogleDailyLimitRow.tsx"],
|
||||
"mobile": ["src/mobile/screens/admin/MAdminGoogleDailyLimit.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "Admin share place details",
|
||||
"hooks": [
|
||||
"src/components/Admin/usePlaceContribPanel.ts",
|
||||
"src/components/Admin/placeContribModel.ts"
|
||||
],
|
||||
"desktop": ["src/components/Admin/PlaceContribPanel.tsx"],
|
||||
"mobile": ["src/mobile/screens/admin/MAdminPlaceContrib.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "Admin TREK services allowance",
|
||||
"hooks": [
|
||||
"src/components/Admin/useServiceIdentity.ts",
|
||||
"src/components/Admin/serviceIdentityModel.ts"
|
||||
],
|
||||
"desktop": ["src/components/Admin/ServiceIdentityPanel.tsx"],
|
||||
"mobile": ["src/mobile/screens/admin/MAdminServiceQuota.tsx"]
|
||||
},
|
||||
{
|
||||
"feature": "Admin users invite status",
|
||||
"hooks": ["src/pages/admin/adminModel.ts"],
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
"mobile/screens/admin/MAdminPackingTemplateManager.tsx": 8,
|
||||
"mobile/screens/admin/MAdminPermissionsPanel.tsx": 1,
|
||||
"mobile/screens/admin/MAdminPluginsPanel.tsx": 128,
|
||||
"mobile/screens/admin/MAdminSettingsSection.tsx": 9,
|
||||
"mobile/screens/admin/MAdminSettingsSection.tsx": 2,
|
||||
"mobile/screens/admin/MAdminSheets.tsx": 11,
|
||||
"mobile/screens/admin/MAdminStoragePanel.tsx": 42,
|
||||
"mobile/screens/admin/MAdminUi.tsx": 7,
|
||||
|
||||
Reference in New Issue
Block a user