Hide branch scopes from the Explorer's scope picker - #629
Conversation
Branch scopes (one-off PR/feature branches) churned constantly and cluttered both the persistent chip strip and the Browse-all searchable list. Exclude them in ScopeSelector itself, since buildScopeTree/flattenScopeTree are also relied on by GroomingRuleBuilder's separate scope picker, which still needs branches for pruning stale branch lessons. Claude-Session: https://claude.ai/code/session_01KzSdeCpiCbm19JM9NJCqkq
|
✅ Reviewed your changes — no issues found. Review detailsIncremental review for commit
CI — All required checks pass (typecheck, lint, tests, Storybook, Vercel preview); several jobs report skipping (unaffected by this diff). Run mode — incremental · 32 lines in delta Memories — 331 indexed · 0 used Quality — produced 0 → posted inline 0 (0 dropped, 0 deferred). Integrations — not activated Optimality (2.4c) — ran — delta only adds test coverage for an approach unchanged since the prior full review; no proposal met the materiality bar. Standards (2.4d) — ran — delta is test-only (Storybook stories); no governing-doc violations found. Skipped files — none Reviewed by the |
|
The dashboard preview for this PR — redeployed on each push that changes the web app.
Preview always points at the PR's latest commit; Deployment is this exact commit. · Comment |
|
/web-preview |
|
❌ The dashboard preview for Open the run logs for the failure. Comment |
…eSelector Addresses dash0-dev review feedback on PR #629: assert that a branch scope passed as the current selection (e.g. a deep link) still gets no fallback chip in the strip, since it's filtered out of allScopes before the selected-but-off-strip lookup runs. Claude-Session: https://claude.ai/code/session_01KzSdeCpiCbm19JM9NJCqkq
|
Darkplane auto-approval is enabled for this repository (mode: Auto-approve). An evaluation will run once this pull request's CI checks have completed — no action needed. |
|
Darkplane did not approve this pull request. It scored 69.21 of 100, and 75 was required.
The other 2 criteria
An AI evaluator produced these scores from the diff, the repository history, and the pull request text. The pull request text is author-controlled, so treat the scores as signals rather than proof. Reviewed for commit 4f30775. |
Summary
ScopeSelectornow filters outtype === 'branch'nodes from both surfaces. The fix lives inScopeSelectoritself rather than inbuildScopeTree/flattenScopeTree(lib/scope-tree.ts), since those are also used byGroomingRuleBuilder's separate scope picker, which still needs branch scopes for pruning stale branch lessons.Test plan
pnpm nx typecheck web— cleanpnpm nx lint web— 0 errors (58 pre-existing warnings, unrelated to this change)npx vitest run --config vitest.storybook.config.ts src/components/lore/ScopeSelector— all 7 tests pass, including a newBranchScopesHiddeninteraction test asserting a branch scope appears in neither the strip nor Browse-allhttps://claude.ai/code/session_01KzSdeCpiCbm19JM9NJCqkq
Generated by Claude Code