Skip to content

Navigation items accept search aliases, per locale (Setup redesign #39050) #39052

Description

@objectstack-fleet

repo:objectstack@os-bob · os-bob · session_012dn2Ac2cy8paBGrxmoLwNQ

Source: topic #39050 · category ③ (child of the maintainer's epic). The maintainer's words on #39050: 06:03Z 「不要 沿用旧分组 id ,改掉,然后立专题卡」; 06:12Z 「分拆子卡并用 fable 评审」 (the split below was reviewed by Fable against the code before filing). Rulings D1–D4 are in the epic's ruling comment.

Grade: p2 (the epic's grade) · area:ux · type Feature · suggested domain spec (triage sets it) · size M · est. 1 person-days · evidence: read (objectstack main, 2026-12-02).

What

A navigation item can declare search aliases, and a translation bundle can give them per locale, so a renamed Setup page is still found by its old name (epic rows 8, protocol half; ruling D4 adds 部门 / 组织架构 / 事业部 for 业务单元).

  • New optional key on navigation items (name to settle in this card, e.g. keywords: string[]) in packages/spec/src/ui/app.zod.ts; unknown keys stay refused.
  • Translation bundles' navigation node, today a strict object with only label (packages/spec/src/system/translation.zod.ts ~:1361), accepts the same key per locale.
  • Liveness ledger packages/spec/liveness/app.json registers the key with its consumer: the command palette card (Blocked-by this card), so the key is not read as declared-but-unenforced.
  • The group description and example in app.zod.ts (~:1200, ~:1217) name the new group ids (D1); regenerate json-schema and packages/spec/docs.

Acceptance

  • A nav item and a translation bundle's nav node both accept aliases; an unknown key is still refused.
  • The liveness ledger lists the key and names its consumer.
  • The group example uses a new id; generated artifacts are rebuilt and their checks pass.

Reader: the dev who takes this card; the command-palette card and the platform-items card wait on it.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T07:06Z

    定级:area:ux · Feature · p2 · 导航项按语言声明搜索别名(Setup 改版 #39050 子卡)· 读码

    • 按专题级 p2,补 domain:spec、类型 Feature,进 pm:queue;无阻塞者。
  2. added
    domain:spec
    pm:queue
    on Dec 2, 2026
  3. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim: card thread of seat repo:objectstack@os-support-ai, PR 2 of 2 in this thread (#39053, then #39052), epic #39050 (zone osa-setup, the maintainer's priority ask)
    Session: session_01WGufzhPdWmTd47Fi2bKYZS
    Thread session: session_01WGufzfhZDUp9rF94Nz3frb
    Account: os-support-ai
    Branch: a new branch from main after #39092 merges, named in the PR (the thread's platform branch carries PR 1)
    Domain: domain:spec
    Seat: repo:objectstack@os-support-ai
    File surface: packages/spec/src/ui/app.zod.ts (the navigation item key, and the group description and example at about :1200 and :1217 naming a new group id per ruling D1), packages/spec/src/system/translation.zod.ts (the translation bundle's navigation node, about :1361), packages/spec/liveness/app.json (and the translation ledger row if the key is registered there), the generated JSON Schema and packages/spec/docs pages the build regenerates (regenerated, never hand-edited), content/docs/ui/apps.mdx (one sentence on the key), the new and existing spec tests for both schemas, a changeset. Stop on breach; explain in the report.
    Container & model: M, mode:card-thread, model: TIER_DEFAULT (dispatch-gates --tier prints no MANDATORY line), effort: high; contract-tier L2 at CONTRACT_REVIEW_TIER for the published schema widening.
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: n/a — feature card
    Premise: the key is named keywords: string[], an optional key on navigation items. It is not aliases, which already means a retired-key rename map across packages/spec/src/ai/*.zod.ts, so reusing that word would read as a key rename. The translation bundle's navigation node, a strict object with only label today, accepts keywords per locale; unknown keys stay refused in both places. The liveness ledger registers the key with its consumer, the command palette card on the epic that is Blocked-by this card, so it is not read as declared-but-unenforced. D4's content (部门, 组织架构 and 事业部 for 业务单元) is the platform-items card's, not this one.
    Serial constraints: check-handover.mjs --inflight meets #39053 (this seat, PR 1 of this thread) on app.zod.ts and liveness/app.json. This PR starts only after #39092 merges, on a branch from that main. It also meets #38140 at the directory packages/spec/src/ui/ only; its open PR #39061 touches none of these three files. The two unread surfaces are #38415 (this seat's cross-repo watch, no file) and #39075 (another session's chat-diagram card in the UI, no surface line, outside packages/spec).

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  5. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim amendment · 2026-12-02T10:46Z · claim 7339233623, from the card thread's surface stop (same class as #39053's amendment 7340230657).
    File surface (added): ui/packages/types/src/zod/app.zod.ts, one declared key, keywords: z.array(z.string()).optional() on NavigationItemObject. objectui's mirror must declare every spec base key: without it, navigation-spec-parity.test.ts fails ("the doc arm declares exactly the spec doc arm's keys"), and the flat arm strips the key. objectui has no reader yet; #39055 adds one. Plus a @object-ui/types line in the changeset.
    Serial constraints cleared: #39092, the last claim on this file, is merged.

  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim amendment · 2026-12-02T11:28Z · claim 7339233623, PR #39125, a CI red on 4b02e85 (Test UI 4/16, nav-target.navEntryTypes-11790.test.ts, three cases).
    File surface (added): ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.ts, one entry, 'keywords', in the hand list NAV_ENTRY_BASE_KEYS, with a one-line comment, plus an @object-ui/app-shell patch line in the changeset. The test reads the installed spec's navigation base keys and requires the list to hold every one, so a change of entry type keeps keywords. No test edit, and no editor field: the Setup and Studio navigation editors offer no keywords input, and adding one is not this card.

  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim amendment · 2026-12-02T11:30Z · claim 7339233623, extends amendment 7343994902.
    File surface (added): ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.navEntryTypes-11790.test.ts, one fixture line, keywords: ['Todo list'], in BASE_VALUES. The fixture must carry a value for every spec base key it reads off the installed spec, which is the test's designed failure when the spec base grows. No assertion changes.

  8. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim amendment · 2026-12-02T11:43Z · claim 7339233623, extends amendment 7344032990.
    File surface (added): docs/qa/platform-checklist/areas/dashboards.json. Repoint the anchor at :1031 from packages/platform-objects/src/apps/setup-nav.contributions.ts#nav_system_overview to packages/platform-objects/src/apps/setup.app.ts#nav_system_overview, and the two prose mentions of setup-nav.contributions.ts at :961 and :970. #39092 moved that entry into setup.app.ts, which left pnpm check:platform-checklist red in full mode on main (the PR lane scopes it to changed files, so it stayed green). Our regression, three lines; the other stale docs/qa Setup ids stay with their own card.

  9. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfhZDUp9rF94Nz3frb
    os-dev-report

    {
     "issue": 39052,
     "status": "done",
     "branch": "claude/project-thread-0cmqba",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39125",
     "session": "session_01WGufzfhZDUp9rF94Nz3frb",
     "premise_still_valid": true,
     "summary": "Head 8735f0409. `keywords: string[]` (optional, non-empty strings) on the shared nav base, so the nine branches that spread it carry it; a separator refuses it with its own prescription. The translation bundle's navigation node accepts `keywords` beside `label` at both translation doors; the node still owes `label`. `aliases`, `synonyms`, `searchTerms`, `searchKeywords` point at `keywords` on both shapes. Liveness: app.json navigation.children.keywords = planned, consumer #39055 (CommandPalette.tsx, appReportIndex.ts#flattenNavigation), authorWarn off; translation.json `apps` row note points at it. The contribution `group` describe/example name group_integrations_dev (D1). Regenerated docs/authorable-surface/state-counts; apps.mdx table row + one sentence; changeset spec minor, @object-ui/types and @object-ui/app-shell patch. Amendments 7342983899 (objectui mirror declares `keywords`), the nav-target.ts NAV_ENTRY_BASE_KEYS entry + its 11790 test fixture line, and 7344320317 (dashboards.json checklist anchor repointed to setup.app.ts#nav_system_overview, a latent red from #39092).",
     "tests": "New spec app-nav-keywords.test.ts (38 pass). spec src/ui + src/system + src/shared: 321 files, 10805 pass. ui packages/types: 391 files, 10528 pass. ui app-shell inspectors + navigation-spec-parity: 3376 pass, 1 skipped. check:test-typecheck clean for the new file.",
     "gates": "dispatch-gates --ran: 123 derived, 123 run, 0 NOT-MEASURED, all exit 0. First full run (after `pnpm install --frozen-lockfile` for main's new mermaid dep and `pnpm build` under os-verify-lock) had 2 exit 1: the nav-target 11790 test and check:platform-checklist (full mode, ABSENT SYMBOL from #39092); both fixed under amendments, then the 48 node/ui/doc/changeset/checklist families re-run on the final head, all exit 0. check:generated green after --fix; check:doc-authoring green after removing the issue id from two describes (CI red on f5ae58dd).",
     "mcp_calls": "0",
     "api_writes": "2 — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/39125/assignees), this os-dev-report comment (POST /issues/39052/comments)",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: #39055 · the per-locale `keywords` has no resolver: translateApp (packages/spec/src/system/i18n-resolver.ts) swaps only `label`, so the palette either resolves `apps.<app>.navigation.<id>.keywords` itself or asks for a translateApp leg; the semantics chosen here are 'a locale's keywords replace the source-language ones', like label · dedupe words: palette keywords locale resolver translateApp",
      "carrier: #39055 / #39057 · no Setup or Studio nav editor offers a `keywords` input; navEntryOffersField now answers true for it on non-separators, but no field reads that answer for this key · dedupe words: nav editor keywords field"
     ],
     "deviations": "Surface widened three times by seat amendments (objectui mirror; nav-target.ts + its test fixture; dashboards.json). apps.mdx carries a table row plus one sentence. Reviewer request not sent at draft open (fleet rule: at the seat hand-off)."
    }

    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:specpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions