Skip to content

Remove --group-by-team-prefix-consolidate and consolidateTeamHierarchy - #198

Merged
shouze merged 2 commits into
feat/team-hierarchy-docsfrom
feat/team-hierarchy-remove-consolidate
Sep 19, 2026
Merged

shouze merged 2 commits into
feat/team-hierarchy-docsfrom
feat/team-hierarchy-remove-consolidate

Conversation

@shouze

@shouze shouze commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Removes --group-by-team-prefix-consolidate and consolidateTeamHierarchy end-to-end. After using it in practice, this consolidated-rendering mode did not match the actual functional need — the real pain point is resolving ambiguous combined sections (e.g. "gamme-lead-client + gamme-lead-client-p1") one by one via --pick-team, not the visual density of unambiguous single-branch chains. This option is superseded by --pick-team-auto (#199).

  • github-code-search.ts: removed the CLI option, the groupByTeamPrefixConsolidate field, the consolidateApplied computation and its --format json warning, and the consolidateTeamHierarchy import/call.
  • src/group.ts: removed consolidateTeamHierarchy and consolidateNode. Kept assignLevels / pruneEmptyChildren — still used by nestOverlappingLabels / groupByTeamHierarchy.
  • src/output.ts / src/tui.ts: removed consolidateTeamSections from ReplayOptions, buildReplayCommand, buildOutput, and runInteractive.
  • src/completions.ts: removed the completion entry.
  • Docs: removed the "Advanced: consolidated rendering" section and the CLI option row.
  • CHANGELOG.md: updated the pending v2.0.0 summary.

Closes #196.

How did you verify your code works?

  • bun test (977 passing), bun run lint, bun run format:check, bun run knip, bun run build.ts all green.
  • Verified no dangling references via grep -ri consolidat across the repo.

Superseded by --pick-team-auto (#197): the consolidated-rendering
mode does not match the actual functional need, which is reducing
manual --pick-team busywork on ambiguous combined sections, not
collapsing unambiguous single-branch chains.

Closes #196
@github-actions

github-actions Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🔦 Lighthouse Report

Page ⚡ Perf ♿ A11y 🛡️ BP 🔍 SEO Report
/github-code-search/ 🟢 96 (≥96) 🟢 100 (≥99) 🟢 100 (≥99) 🟢 100 (≥99) 🔗 view
/github-code-search/getting-started/ 🟢 99 (≥96) 🟢 100 (≥99) 🟢 100 (≥99) 🟢 100 (≥99) 🔗 view

Thresholds: Perf ≥ 96 · A11y ≥ 99 · BP ≥ 99 · SEO ≥ 99
commit 2354a2d · full workflow run

@shouze
shouze marked this pull request as ready for review September 19, 2026 09:27
Copilot AI lite review requested due to automatic review settings September 19, 2026 09:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The consolidation feature appears fully removed across code, tests, completions, and docs with no remaining references found in the repository.

Review effort: Lite
Findings: None

What changed in this PR

This PR removes the deprecated consolidated-rendering mode for team-prefix grouping (--group-by-team-prefix-consolidate) end-to-end, aligning the CLI/TUI/replay/docs with the newer direction of resolving ambiguous combined sections via --pick-team (and supersession by --pick-team-auto in #199).

Changes:

  • Removes the CLI flag, replay/TUI threading, and the underlying hierarchy-consolidation implementation and tests.
  • Updates shell completions and docs to eliminate the option and its documentation section.
  • Updates the pending v2.0.0 changelog summary to no longer mention consolidated rendering.
File Description
github-code-search.ts Removes the CLI option, import/call, and replay/TUI plumbing for consolidation.
src/​group.ts Deletes consolidateTeamHierarchy/consolidateNode while keeping shared tree helpers.
src/​group.test.ts Removes unit tests and import coverage for the deleted consolidation feature.
src/​output.ts Removes consolidateTeamSections from replay options and replay-command emission.
src/​output.test.ts Removes replay-command tests that asserted the consolidation flag behavior.
src/​tui.ts Removes the consolidation parameter and stops forwarding it into output/replay.
src/​completions.ts Removes the completion entry for the deleted CLI flag.
src/​completions.test.ts Removes completion-script assertions for the deleted flag.
docs/​usage/​team-grouping.md Deletes the “Advanced: consolidated rendering” docs section and related wording.
docs/​reference/​cli-options.md Removes the CLI options table row for the deleted flag.
CHANGELOG.md Updates the pending v2.0.0 summary to drop “consolidated rendering”.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage after merging feat/team-hierarchy-remove-consolidate into feat/team-hierarchy-docs will be

96.82%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   aggregate.ts100%100%100%100%
   api-utils.ts93.20%100%93.75%93.13%101–103, 65, 73, 86–87, 91–92
   api.ts94.74%100%100%94.07%340–344, 405, 422, 63–69
   cache.ts94.67%100%100%94.29%139–141, 39
   completions.ts99.42%100%100%99.37%270
   group.ts99.07%100%98.10%99.26%487, 493, 572, 704
   output.ts99.36%100%95.83%99.66%80
   regex.ts99.39%100%100%99.34%329
   render.ts90.99%100%88.24%91.09%177, 201–206, 208–210, 212–213, 234, 427–428, 528–532, 562–569, 571–579, 581–584
   scroll-cooldown.ts100%100%100%100%
   style.ts100%100%100%100%
   upgrade.ts88.38%100%94.44%87.89%128, 131, 133, 153, 167–168, 188–195, 198–204, 209, 214, 250–253
src/render
   filter-match.ts97.44%100%92.31%100%
   filter.ts100%100%100%100%
   highlight.ts96.63%100%90.40%99.31%284–285
   layout-constants.ts100%100%100%100%
   mouse-hit.ts100%100%100%100%
   mouse.ts100%100%100%100%
   rows.ts99.42%100%100%99.38%239
   selection.ts100%100%100%100%
   summary.ts100%100%100%100%
   team-pick.ts100%100%100%100%
   terminal.ts100%100%100%100%

@shouze
shouze merged commit df81d56 into main Sep 19, 2026
8 checks passed
@shouze
shouze deleted the feat/team-hierarchy-remove-consolidate branch September 19, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[8/10] Remove --group-by-team-prefix-consolidate and consolidateTeamHierarchy

2 participants