feat(preferences): move global preferences to account menu (IFC-2929)

Merged
PA
4mo ago
+216-68

Summary

  • The Global preferences entry point moves from a profile tab to a permission-gated item in the account menu (below Account settings), visible only with manage_global_preferences.
  • The page becomes a standalone top-level route /global-preferences with its own title, card framing, and breadcrumb. The old /profile/global-preferences URL is intentionally not redirected (all in-repo references were updated); it falls into the /profile catch-all like any unknown profile sub-path.
  • Removes the descriptive helper paragraphs from the user and global preference cards.
  • Coverage: new account-menu component tests, tightened page/tab tests, and E2E for admin navigation and read-only enforcement (menu item hidden + direct URL shows the unauthorized screen).
  • Documents two component-testing gotchas (tooltip pointer parking, collapsed-accordion unauthorized message) in dev/guides/frontend/writing-component-tests.md.

Test plan

  • pnpm exec biome ci ., pnpm knip, pnpm exec betterer ci โ€” clean
  • pnpm test โ€” 146 files / 1000 tests pass
  • CI E2E: tests/e2e/profile/profile.spec.ts (admin menu โ†’ page, read-only gating)
  • Manual: as admin, account menu โ†’ "Global preferences" opens the standalone page

๐Ÿค– Generated with Claude Code