@objectstack/platform-objects 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -500,21 +500,20 @@ var ACCOUNT_APP = {
500
500
  // manage their own 2FA / linked accounts / personal OAuth apps. RLS on
501
501
  // each object scopes rows to the caller.
502
502
  navigation: [
503
- // Profile is the canonical landing — name, email, avatar, verification
504
- // status. Uses `type: 'object' + recordId: '{current_user_id}'` so it
505
- // resolves to the sys_user record page; the slotted SysUserDetailPage
506
- // (kind: 'slotted', isDefault: true) tailors that page into a proper
507
- // self-service profile (highlight chips, grouped detail sections, no
508
- // Discussion thread) without losing the record-context features
509
- // (related lists, header actions, RLS-aware edit).
503
+ // Profile is the canonical landing — a hand-written React settings card
504
+ // (Vercel/Linear style) registered in the Console SPA as
505
+ // `account:profile_card`. The renderer reads the current user via
506
+ // `useAuth()` and writes via `client.auth.updateUser`, so there is no
507
+ // sys_user record context here this is intentional. The admin-facing
508
+ // sys_user record page (see `pages/sys-user.page.ts`) stays focused on
509
+ // record browsing (Identity/Audit fields, related lists, admin actions)
510
+ // and is reached through Setup, never from the Account App.
510
511
  {
511
512
  id: "nav_account_profile",
512
- type: "object",
513
+ type: "component",
513
514
  label: "Profile",
514
- objectName: "sys_user",
515
- recordId: "{current_user_id}",
516
- icon: "user-circle",
517
- requiresObject: "sys_user"
515
+ componentRef: "account:profile_card",
516
+ icon: "user-circle"
518
517
  },
519
518
  // --- Inbox & work assigned to me -----------------------------------
520
519
  // Notifications, approvals waiting on me, and the orgs I belong to.
@@ -618,16 +617,14 @@ var ACCOUNT_APP = {
618
617
  requiresObject: "sys_oauth_application"
619
618
  }
620
619
  ]
621
- },
622
- {
623
- id: "nav_account_preferences",
624
- type: "object",
625
- label: "Preferences",
626
- objectName: "sys_user_preference",
627
- viewName: "mine",
628
- icon: "sliders-horizontal",
629
- requiresObject: "sys_user_preference"
630
620
  }
621
+ // Note: `sys_user_preference` is intentionally NOT exposed in the
622
+ // Account App. It's an internal key-value store the UI uses for state
623
+ // like `ui.recent`, `ui.favorites`, theme, sidebar collapse — not
624
+ // a user-curatable settings surface. A future
625
+ // `account:preferences_card` React component should provide the
626
+ // curated theme / locale / timezone / notifications toggles when we
627
+ // need them; until then there is no nav entry.
631
628
  ]
632
629
  };
633
630
  var SystemOverviewDashboard = ui.Dashboard.create({
@@ -3846,8 +3843,7 @@ var en = {
3846
3843
  nav_account_linked: { label: "Linked Accounts" },
3847
3844
  nav_account_sessions: { label: "Active Sessions" },
3848
3845
  nav_account_api_keys: { label: "API Keys" },
3849
- nav_account_oauth_apps: { label: "OAuth Applications" },
3850
- nav_account_preferences: { label: "Preferences" }
3846
+ nav_account_oauth_apps: { label: "OAuth Applications" }
3851
3847
  }
3852
3848
  },
3853
3849
  setup: {
@@ -7058,8 +7054,7 @@ var zhCN = {
7058
7054
  nav_account_linked: { label: "\u5DF2\u5173\u8054\u8D26\u6237" },
7059
7055
  nav_account_sessions: { label: "\u6D3B\u52A8\u4F1A\u8BDD" },
7060
7056
  nav_account_api_keys: { label: "API \u5BC6\u94A5" },
7061
- nav_account_oauth_apps: { label: "OAuth \u5E94\u7528" },
7062
- nav_account_preferences: { label: "\u504F\u597D\u8BBE\u7F6E" }
7057
+ nav_account_oauth_apps: { label: "OAuth \u5E94\u7528" }
7063
7058
  }
7064
7059
  },
7065
7060
  setup: {
@@ -10231,8 +10226,7 @@ var jaJP = {
10231
10226
  nav_account_linked: { label: "\u9023\u643A\u30A2\u30AB\u30A6\u30F3\u30C8" },
10232
10227
  nav_account_sessions: { label: "\u30A2\u30AF\u30C6\u30A3\u30D6\u30BB\u30C3\u30B7\u30E7\u30F3" },
10233
10228
  nav_account_api_keys: { label: "API \u30AD\u30FC" },
10234
- nav_account_oauth_apps: { label: "OAuth \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3" },
10235
- nav_account_preferences: { label: "\u74B0\u5883\u8A2D\u5B9A" }
10229
+ nav_account_oauth_apps: { label: "OAuth \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3" }
10236
10230
  }
10237
10231
  },
10238
10232
  setup: {
@@ -13404,8 +13398,7 @@ var esES = {
13404
13398
  nav_account_linked: { label: "Cuentas vinculadas" },
13405
13399
  nav_account_sessions: { label: "Sesiones activas" },
13406
13400
  nav_account_api_keys: { label: "Claves API" },
13407
- nav_account_oauth_apps: { label: "Aplicaciones OAuth" },
13408
- nav_account_preferences: { label: "Preferencias" }
13401
+ nav_account_oauth_apps: { label: "Aplicaciones OAuth" }
13409
13402
  }
13410
13403
  },
13411
13404
  setup: {