Repository navigation
The vocabulary switch states its counts, and abbreviates when squeezed - #143
Conversation
Brett: "in the lens screen we lost our keyword/repo selector… these buttons could state the number of that item in the button '134 Keywords' and '3 Repositories'. if the screen estate is too small, then abbreviate to 134 KW and 3 Repos." FIRST, THE FACT: the switch was not lost. It renders wherever both vocabularies mean something — a multi-repository project — and is correctly absent on a single-repository view, which has no member set to lens over. Checked on all three planes: unscoped no, `core` (one member) no, `domains` (five members) yes. What it WAS is invisible. Two bare lowercase words in a header read as a label, not as a choice. The counts fix that, and they do more than decorate: `305 Keywords | 5 Repositories` answers "how much is over there?" before you switch to find out, which is the question that makes the pair a choice. WHICH SPELLING FITS IS MEASURED. The rail is a fixed 250px, but the width a button occupies depends on the theme's font and the reader's zoom, so `fitVocabSwitch` writes the full spelling, asks the header whether it now overflows, and swaps both buttons to the short one if it does. Both spellings ride on the button as data attributes, so the choice is a text swap and never a re-render. Verified by squeezing the header to 110px: `305 KW | 5 Repos` at scrollWidth 120 against clientWidth 110, and back to the full spelling when the room returns. The count chip beside the switch is gone: it repeated one of the two buttons, and it competed for exactly the width that decides which spelling fits. It stays on a single-repository view, where there is no switch to carry it. Suites 2818 passed (exit 0). Live on `domains`: `305 Keywords | 5 Repositories` at every viewport tested, the short pair only when squeezed, zero page errors. Co-Authored-By: Claude Fable 5 <[email protected]>
… too wide Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR improves the Lens vocabulary switch so it reads as an explicit choice by embedding per-vocabulary counts in the buttons (e.g., “305 Keywords | 5 Repositories”) and abbreviating the labels when the rail header overflows (“305 KW | 5 Repos”). It also removes the redundant count chip in the multi-repository view to free space for the switch.
Changes:
- Add full/short label spellings per vocabulary and render counts directly inside the vocabulary-switch buttons.
- Introduce
fitVocabSwitchoverflow measurement and corresponding CSS to support deterministic abbreviation behavior. - Add a regression test and update the runbook documentation to describe the new switch behavior.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/ideation-dashboard/test_bullseye_widget.py | Adds a test asserting the switch carries counts and uses measured overflow + dataset-backed full/short spellings. |
| scripts/ideation_dashboard/web/views/lens.js | Implements full/short vocabulary labels, button count rendering, and fitVocabSwitch overflow-based abbreviation. Removes the multi-repo header count chip. |
| scripts/ideation_dashboard/web/styles.css | Ensures the rail header is a single nowrap row and prevents wrapping so overflow measurement is meaningful; makes .vocabswitch nowrap. |
| docs/ideation-dashboard-session-runbook.md | Documents the new count-carrying switch and abbreviation behavior on the lens screen. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| const vocabCounts = { | ||
| keywords: (snapshot?.keyword_index || []).length, | ||
| repositories: composed | ||
| ? (repositoryVocabulary(composed).keyword_index || []).length : 0, | ||
| }; |
| ? drillPane(model, ctx) : formingPane(model, ctx)); | ||
| fitVocabSwitch(lens); | ||
| } | ||
|
|
||
| draw(); |
| `305 Keywords | 5 Repositories` switch lives in the RAIL'S HEADER — each | ||
| button STATES ITS COUNT (Brett, 2026-08-09), because two bare lowercase | ||
| words were easy to miss and the count answers "how much is over there?" | ||
| before you switch to find out. Where the header cannot fit them they | ||
| abbreviate to `305 KW | 5 Repos`; which spelling fits is MEASURED after |
design.md and tasks.md added prose for the OQ-6/orchestrator-pin rulings using bare `PR #NNN` / `#NNN` for Omnigent-Install PRs (#213, #129, #143, #40, #214). Bare numbers auto-link to this repository on GitHub, not Omnigent-Install, so every one is rewritten to the fully qualified `opensoft/Omnigent-Install#NNN` form. Addresses two unresolved Copilot review threads on PR #704. Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015MK1pF6qwboDavWqxLbZN8
…ngs: the orchestrator pins, and OQ-6 lands first (#704) * Amend implement-omniworker-install-repo for Brett's two boundary rulings: the orchestrator pins, and OQ-6 lands first Lane: openxfactory-3 (openXfactory-3) Three `Amended 2026-09-05:` notes on design.md and one new unchecked box in tasks.md § 6. No ratified sentence is rewritten; every existing box keeps its text and its state. WHAT THE RETIREMENT MEASURED, AND WHY THE PACKET NEEDED AMENDING Omnigent-Install PR #213 attempted tasks 6.1 and could not finish it. Design § D2.1 assigns `workers/`, the host-side `scripts/` and the JUDGED docs to OmniWorker-Install; § D2.2 assigns the manager-review runtime, the compose and Kubernetes topology and the omnigent-install-manifest realization to Omnigent-Install. Both assignments stand. What neither table measured is that the second set READS the first set at run time -- in thirty-nine places. #213 measured it by removing the whole copied tree in its own branch and re-running every validator: ten of the twelve repository validators are green on that repository's main, and removing all 120 candidate paths broke all ten, including all three the Dartwing workflow runs by name. The consumers are manager_review/runner.py, agents/manager-review/seat-*.yaml, both compose stacks, k8s/local/worker-lanes.yaml, config/omnigent-install-manifest.yaml and its render-verify arm, eleven validators and eight test modules -- every one of them § D2.2 material. The path-by-path inventory is docs/omniworker-split.md in that PR, and it is the requirements source cited by each note below. RULING 1 -- "Orchestrator pins OmniWorker-Install" D2 gains the measurement and the ruling. OmniWorker-Install is CANONICAL for the worker profiles, the schemas (including workers/schemas/artifact-worker-heartbeat.schema.json), the heartbeat publisher and the other Part 1 material; the orchestrator CONSUMES them through a commit-plus-digest pin -- the estate pattern this repository already runs twice, contracts/openxwallet-pin.yaml and contracts/openreposhape-pin.yaml. Nothing is re-homed back across the boundary. That one mechanism closes four of the five items docs/omniworker-split.md recorded as owed. D3 gains a TENTH step between the copy and the retirement -- 8b PIN -- and step 9 now depends on it. The ratified "Copy-first migration" requirement already imposes that order in words § D4 read as being about consumers OUTSIDE the repository ("the source path MUST NOT be deleted from Omnigent-Install until every declared consumer has been re-pinned and verified"); it binds the ones inside it identically, and thirty-nine paths have them. Step 9 also splits by consequence: #213 landed the 50 paths whose consumers had all left with them, and the 70 Part 1 paths that remain are step 9's whole content. RULING 2 -- OQ-6, "Land it in Omnigent-Install first, then copy" D5 gains the OQ-6 amendment beside the OQ-7 one it already carries: sequence (a), now the rule for BOTH in-flight changes rather than a one-off. add-worker-acr-push finishes and lands there -- measured 2026-09-05, its repository work is already merged (Omnigent-Install PR #129 509b7d65 for the schema, the cpc-omni01 manifest block and the four test cases; PR #143 5b5592e4 for the hostapp delta that consumes them), nine of its thirteen tasks are ticked, and the four that remain are a HUMAN/VAULT gate, a live-host confirmation, one notification and its archive -- not code. Its landed packet and that hostapp delta are then copied to OmniWorker-Install as PR #40 was, with the `code_surface:` amendment owed IN THE COPY. Consequence, recorded in both files: Omnigent-Install PR #213 is HELD until add-worker-acr-push lands. #213 retires schemas/worker-host-manifest.schema.yaml and tests/test_worker_host_manifest.py, two of the four paths that change declares as its code surface; retiring them while it is active there would re-home it as a side effect of a file deletion -- what § D5's rule and the ADDED requirement both forbid. The hold is sequencing, not a defect in #213. TASKS § 6 New unchecked box 6.0 -- realize the pin and re-point all 52 staying consumers, one class per PR, before 6.1 deletes anything. Its packet is Omnigent-Install add-omniworker-install-pin (PR #214, authored by this lane; Brett ratifies). The section note records why 6.1's remaining scope is the 70 Part 1 paths, and the OQ-6 hold on #213. VALIDATION OPENSPEC_TELEMETRY=0 openspec validate implement-omniworker-install-repo --strict Change 'implement-omniworker-install-repo' is valid OPENSPEC_TELEMETRY=0 openspec validate --all --strict 95 passed, 1 failed -- IDENTICAL to origin/main at 7eedc7a, verified in a clean worktree of origin/main in the same session. The one failure is change/disposition-codexfactory-declared-renames ("Change must have at least one delta"), pre-existing and untouched here. python3 -m pytest tests/review_lane_pin tests/sequenced_after -q 235 passed, 2 skipped, 22 subtests passed Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KMAtfAAnXd8aH3e3TMZbQk * Qualify cross-repo PR references in the boundary-rulings amendment design.md and tasks.md added prose for the OQ-6/orchestrator-pin rulings using bare `PR #NNN` / `#NNN` for Omnigent-Install PRs (#213, #129, #143, #40, #214). Bare numbers auto-link to this repository on GitHub, not Omnigent-Install, so every one is rewritten to the fully qualified `opensoft/Omnigent-Install#NNN` form. Addresses two unresolved Copilot review threads on PR #704. Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015MK1pF6qwboDavWqxLbZN8 * Take Copilot round 2: casing, a permanent link, § spacing design.md: match the document's own existing "dartwing" casing (lines 68, 69, 88 predate this PR) rather than "Dartwing"; and swap the inventory link's branch ref (which Omnigent-Install #213 will delete on merge) for the qualified PR reference, since docs/omniworker-split.md is itself PR-authored there. tasks.md: "§D2.2" -> "§ D2.2", matching every other lettered design-section reference in the file (numbered task sections like §3.1/§4 stay unspaced, which is the file's own separate convention). Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_015MK1pF6qwboDavWqxLbZN8 * Record Brett Heap's ratification of the boundary-ruling amendments The four dated amendments this PR adds to implement-omniworker-install-repo (design § D2 retirement measurement, the ten-step sequence under "Orchestrator pins OmniWorker-Install", § D6 OQ-6 "land it in Omnigent-Install first, then copy", tasks § 6 pin step) each carry the ratification in their opening line, and the proposal header gains the Amended: line the add-nightly-dashboard-refresh precedent uses. Brett Heap, in-session, 2026-09-05 ~23:37Z, verbatim: "ratify and merge 704, 214 and 18". Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01BaDMFCnTFuTGmY17vxP2Zo * Qualify the Omnigent-Install #213 reference in the Amended: line Copilot round 3: "Omnigent-Install #213" auto-links to openxFactory's PR #213; the fully qualified opensoft/Omnigent-Install#213 matches the other amended notes. Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01BaDMFCnTFuTGmY17vxP2Zo --------- Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
First, the fact: it wasn't lost
The switch renders wherever both vocabularies mean something — a
multi-repository project — and is correctly absent on a single-repository
view, which has no member set to lens over. Checked on all three planes:
unscoped → no,
core(one member) → no,domains(five members) → yes.What it was is invisible. Two bare lowercase words in a header read as a
label, not as a choice.
The counts do more than decorate
305 Keywords | 5 Repositoriesanswers "how much is over there?" before youswitch to find out — which is the question that makes the pair a choice rather
than a toggle.
Which spelling fits is measured
The rail is a fixed 250px, but how much width a button occupies depends on the
theme's font and the reader's zoom. So
fitVocabSwitchwrites the fullspelling, asks the header whether it now overflows, and swaps both buttons to
the short one if it does. Both spellings ride on the button as data attributes,
so the choice is a text swap and never a re-render.
Verified by squeezing the header to 110px:
305 KW | 5 Reposat scrollWidth120 against clientWidth 110 — and back to the full spelling when the room
returns.
One thing removed
The count chip beside the switch is gone: it repeated one of the two buttons,
and it competed for exactly the width that decides which spelling fits. It
stays on a single-repository view, where there's no switch to carry it.
Verification
pytest— 2818 passed, 19 skipped, exit 0.domains: full spelling at every viewport tested; the short paironly when squeezed; zero page errors.