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:
Maurice
2026-11-14 11:09:22 +01:00
parent dbda2d7d7c
commit a3620f9e05
19 changed files with 1027 additions and 260 deletions
@@ -50,7 +50,7 @@ function resetLink(label: string): HTMLElement {
/** The CARTO key input sits under its label inside the field's own wrapper. */
function cartoInput(): HTMLInputElement {
return within(screen.getByText('Shared CARTO key').parentElement as HTMLElement).getByRole('textbox');
return within(screen.getByText('Shared CARTO key').closest('[data-m-field]') as HTMLElement).getByRole('textbox');
}
describe('MAdminDefaultUserSettings', () => {