Skip to content

Setup's and Studio's navigation editors let an admin edit an entry's search keywords (#39050) #39147

Description

@objectstack-fleet

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

Source: topic #39050 · category ③ (child of the maintainer's epic), filed on the seat's word (ruling 7347779833 on #39055: item (c) becomes its own card under #39050, any priority). Origin: #39052 hand-over 7347620600, item 3.

Grade: p3 · area:ux · type Feature · suggested domain ui (triage sets it) · size S · evidence: read (objectstack main 3dfffef, 2026-12-02).

What

Navigation entries carry keywords: string[] since #39052 (each a trimmed word or phrase of at most 60 characters, at most 20 per entry), and the command palette reads them (#39055). Neither Setup's nor Studio's navigation editor offers a field for them: navEntryOffersField (ui/packages/app-shell/src/views/metadata-admin/inspectors/nav-target.ts) has no keywords row, so an admin can set them only in source.

  • Add a keywords input to the navigation entry editor where the entry type takes the key (every type except separator), with the schema's limits enforced on save.

Acceptance

  • An admin adds, edits and removes an entry's keywords in the editor, and the palette finds the entry by a new keyword after publish.
  • The editor refuses a 61-character keyword and a 21st keyword with the schema's message.

Reader: the dev who takes this card after #39055 merges.

Blocked-by: #39055

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-02T14:09Z

    定级:area:ux · Feature · p3 · 管理员只能在源码里设导航项搜索关键词,Setup 与 Studio 编辑器没有这一栏 · 读码

  2. added
    domain:ui
    pm:blocked
    on Dec 2, 2026
  3. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Carried in from PR #39163's L1 (relayed by os-support-ai, comment 7356954368 on #38811) · 2026-12-02T19:57Z

    • N2: the objectui mirror comment and NavigationEntryItem need the same pass as this card's editor fields, so the editor and the served entry shape do not drift. The builder takes it or drops it with a one-line reason in the PR.

    This card unblocks when #39163 merges.

  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unlock · 2026-12-02T21:05Z

    Triage: 唯一的 Blocked-by #39055(命令面板读关键词)已关闭,pm:blocked → pm:queue。Setup 专题 #39050 子卡,p3。

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop (epic:#39050 pick; the maintainer's 「setup 专题 你要加速处理」, recorded 7360379234 on #34830)
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-39147-nav-editor-keywords
    Worktree: objectstack-issue-39147
    Domain: domain:ui
    Seat: repo:objectstack@os-justin
    File surface:

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Dispatched 2026-12-02T23:02Z · os-dev subagent of session session_01QSeKYnrQ7UMtHofKQVjcH2 (mode:subagent, model: opus, effort: medium), on the claim above.

  9. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Re-dispatched 2026-12-02T23:48Z · the container restarted and stopped the dev subagent mid-round. A new os-dev subagent of session session_01QSeKYnrQ7UMtHofKQVjcH2 resumes from the pushed head 997816caf4 (no restart from zero), on the same claim.

  10. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
      "issue": 39147,
      "status": "done",
      "branch": "claude/issue-39147-nav-editor-keywords",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39236",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "premise_still_valid": true,
      "summary": "Resumed after a container restart from the pushed 997816caf4. The two prior commits match the claim's file surface: AppNavInspector.tsx, types app.ts (carried N2 taken: NavigationEntryItem.keywords typed by reference from the spec nav-item base), studio en/zh, the per-card test file and the root .changeset; nav-target.ts is untouched. They also meet the acceptance list: add/edit/remove, 61-char and 21st keyword refused with the spec's own message, no field on a separator, retype to separator drops keywords, a paletteNavEntryHit pin. One fix added (6ec4983ac0): check:test-source-alias was red on the new test, so it now has a module-top `import '@objectstack/lint'`, the sibling tests' convention. main was merged twice (the final merge 355e2b57ac includes PR #39144, which landed meanwhile and also edits studio en/zh). overlap-check was clean before every push. The draft PR #39236 is open, assigned to os-justin, and its body was read back byte-identical. Clause-② is re-declared from the diff as `yes (widening)`, because the published @object-ui/types interface gains a member. The claim carried `no`.",
      "tests": "At 355e2b57ac (test inputs unchanged since 6ec4983ac0). The per-card file run verbose: `Tests 8 passed (8)`. A narrowed run, `vitest run packages/types/ packages/i18n/ packages/app-shell/src/views/metadata-admin/inspectors/AppNav packages/app-shell/src/chrome/paletteNav`: `Test Files 507 passed (507) · Tests 12437 passed | 13 skipped (12450)`, VERDICT command-exit 0. Type-check of @object-ui/types, i18n and app-shell: all `Done`, VERDICT command-exit 0, after the app-shell^... closure build (72/72 tasks). The whole @object-ui/app-shell suite on 2 workers did not finish in 80 min and was stopped (my recorded PIDs): NOT MEASURED locally, left to CI Test Core. ABLATION via scripts/ablation-replace.mjs, each leg restored with blob == HEAD and `git diff HEAD` empty. (1) navKeywordsRefusal set to `return null` turned two tests red: `refuses a 61-character keyword with the spec's message and writes nothing (CONTROL: 60 pass)` and `refuses a 21st keyword with the spec's message and writes nothing (CONTROL: a 20th passes)`; 6 stayed green. (2) the field's `navEntryOffersField(entryType, 'keywords')` guard set to `true` turned `a separator is offered no keywords field` red; 7 stayed green. No build is involved: the test imports src relatively.",
      "gates": "dispatch-gates --commands gave 38 commands at 355e2b57ac. Its list was identical before and after the last main merge. `--ran`: `38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)`. All 38 exit 0: check-adr-0087-registration (--base, --self-test), check-changeset-no-major, check-closing-keyword-parity (+self-test), check-comment-mask-corpus, check-empty-changeset (+self-test), check-sdui-manifest (+self-test), ci/snapshot-next --self-test, pm/check-governed-queue-guard --self-test, pm/release-rehearsal-clone --self-test, release-pending-publish --self-test, `pnpm --dir ui exec vitest run scripts/`, spec check:duration-unit-keys, check:adr-anchors, changeset-gate-self-tests, closed-ceremony-text, cross-package-test-inputs, dispatcher-error-vocabulary, driver-memory-census, engine-double-contract, gitlink-declared, nul-bytes, published-files, query-options-erasure, refd-timer-probe, registry-log-declared, rest-log-spy-declared, skill-identifier-liveness, test-source-alias, tier-file-adoption, type-check-coverage, type-check-debt, undeclared-dep-imports, watch-hint-literal, where-matcher. Three gates did not pass on the first run. test-source-alias exited 1 and is fixed in 6ec4983ac0. type-check-debt exited 3: it never got the verify lock (exit 99), so it was NOT MEASURED, and it passed on re-run. query-options-erasure was killed by a local 300 s timeout (exit 124) and passed on re-run. The 3 lock-heavy families ran on 94f7cd5885/6ec4983ac0; the later main merge changed none of their inputs. The other 35 were re-run on the final head. Also run: pnpm check:changeset-fixed, exit 0 (its roster is under .changeset). CI check-runs on PR #39236 had not concluded when this report was filed: NOT MEASURED here, CI owns them.",
      "mcp_calls": "0",
      "api_writes": "2 — via the fleet-write relay: (1) pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft forced) + POST /repos/objectstack-ai/objectstack/issues/39236/assignees; (2) os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/39147/comments via post-stamped.mjs. Plus 3 git pushes of the branch (94f7cd5885, 6ec4983ac0, 355e2b57ac).",
      "classifier_refusals": [],
      "open_questions": [
        { "question": "The claim's Clause-② says `no`; the diff re-declares `yes (widening)` (the published @object-ui/types NavigationEntryItem gains an optional member). Keep `yes (widening)`?", "options": ["A keep yes (widening), as the PR and changeset say", "B no, if the seat reads a mirror type following an already-published spec key as not widening"], "recommendation": "A, because the published interface's public surface grows, and the os-dev rule says the dev re-declares from the diff." }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  11. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
      "issue": 39147,
      "status": "done",
      "branch": "claude/issue-39147-nav-editor-keywords",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39236",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "premise_still_valid": true,
      "summary": "Fix round on PR #39236 (contract review S1 + N1), head 355e2b57ac -> d3fac7a692. S1: FlowStringListField in AppNavInspector now carries key={selection.id}, so each nav entry gets a fresh field and a refused keywords draft no longer carries over to the next keyword-less entry (both had value undefined, so the field's value-change reset never fired), the same pattern FlowEdgeInspector uses. N1: a jsdoc sentence on commitKeywords says the list field trims each row and drops blank rows before the refusal check, so the spec's untrimmed-word refusal never shows in this editor. The hint text for action and doc entries was not touched. The PR stays draft.",
      "tests": "At d3fac7a692: `cd ui && pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/inspectors/AppNavInspector.keywords-39147.test.tsx` -> `Test Files 1 passed (1)`, `Tests 9 passed (9)` (VERDICT command-exit 0). New pin: a top-level describe 'objectstack#39147 — a refused keywords draft stays with its own entry'. It selects entry A (no keywords), adds `pipeline` and a 61-character word (the edit is refused, an alert shows), rerenders with selection B (no keywords), and asserts no rows, the empty label, no alert and no new onPatch call. It then adds `leads` on B and asserts the one write is B with keywords ['leads'] and that it parses. Ablation: the `key={selection.id}` line was deleted on disk (sed). The same run went red: `Tests 1 failed | 8 passed (9)`, and the new test failed with `AssertionError: expected [ INPUT-ELEMENT, INPUT-ELEMENT ] to deeply equal [] (spelled out)`, i.e. A's two draft rows carried over to B. Restored with `git checkout HEAD -- AppNavInspector.tsx`. `git status --porcelain` was empty, and `git hash-object` equals HEAD's blob 997eeb5167. `@object-ui/app-shell` type-check: NOT MEASURED, reason: this recreated worktree lacks the built ui dependency closure (2266 TS2307-class missing-module errors, not this diff). The previous round measured it green at 355e2b57ac after a 72-task closure build. CI `Type Check UI` covers it. Whole app-shell suite: not run (CI's job, per dispatch).",
      "gates": "Local derived set at d3fac7a692 (`node scripts/pm/dispatch-gates.mjs --commands`, 38 commands): all 38 exit 0, each exit captured before any pipe. `dispatch-gates --ran` verdict: `38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)`. The derivation warned of a STALE TREE (4 commits behind origin/main, the stale derived file being scripts/tenant-audit-census.mjs, unrelated to this diff); I did not merge main because no conflict, main-caused red or queue removal calls for it. overlap-check.mjs before the push: `VERDICT clean exit 0` (origin/main 5a0bb8dd65 merges cleanly, 0 PR heads overlapping). CI check-runs on d3fac7a692: NOT MEASURED in this report, since CI was still pending at hand-off (CI convergence is the PM's).",
      "mcp_calls": "0",
      "api_writes": "2 — git push (branch claude/issue-39147-nav-editor-keywords, 355e2b57ac..d3fac7a692; not a REST write); this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/39147/comments). REST reads only otherwise (GET pulls/39236, GET issues/39147/comments). PR body not PATCHed: pr_body_edits is for the seat.",
      "pr_body_edits": "In ## Tests: change `8 tests:` to `9 tests:` and add a bullet: '- a refused draft stays with its own entry: entry A (no keywords) gets `pipeline` plus a refused 61-character word; on switching to entry B (no keywords) the field is empty, shows no alert and nothing is written to B; the next edit on B writes only B''s own word. The field is keyed per entry (`key={selection.id}`, as in `FlowEdgeInspector`).' In the readings details, retitle it to d3fac7a692 and set the first reading to `Tests 9 passed (9)`. Add ablation 3: '`key={selection.id}` removed: red `switching from an entry with a refused draft to another keyword-less entry shows an empty field and writes nothing to it` (A''s two draft rows shown on B); 8 others green.' Add a type-check line: 'At d3fac7a692 app-shell type-check NOT MEASURED locally (worktree without built ui closure); green at 355e2b57ac, and the only source change since is one JSX `key` prop plus a jsdoc sentence.' In ## Verification, change the expectation to `Tests 9 passed (9)`, and change the derived-gates details to d3fac7a692 with the same --ran line (38 run, 0 NOT-MEASURED).",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": []
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipm:dispatchedpriority:p3

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions