Skip to content

Document hierarchical team-prefix grouping and add CHANGELOG entry - #191

Open
shouze wants to merge 1 commit into
feat/team-hierarchy-clifrom
feat/team-hierarchy-docs
Open

Document hierarchical team-prefix grouping and add CHANGELOG entry#191
shouze wants to merge 1 commit into
feat/team-hierarchy-clifrom
feat/team-hierarchy-docs

Conversation

@shouze

@shouze shouze commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents the hierarchical team-prefix grouping feature built across
#177-#182, and prepares (but does not cut) the release entry for it.

  • docs/usage/team-grouping.md: full rewrite —
    • The / (nesting) and , (independent chains) grammar for
      --group-by-team-prefix, with examples.
    • The per-level grouping algorithm (unchanged in spirit from the flat
      version, now applied recursively) and automatic nesting of overlapping
      team names.
    • --group-by-team-prefix-consolidate, including the "JSON always gets
      the uncollapsed hierarchy" caveat from the PR Wire hierarchical team grouping into the CLI end-to-end #190 review fix.
    • Nested markdown output example, JSON section path example, and an
      indented TUI section mockup.
    • --pick-team at any depth: bare-label auto-resolve vs. an explicit
      "parent > combined" path.
  • docs/reference/cli-options.md: updated --group-by-team-prefix /
    --pick-team rows, added --group-by-team-prefix-consolidate.
  • CHANGELOG.md: added a _pending_ v2.0.0 row linking to EPIC EPIC: Hierarchical team-prefix grouping (multi-level headings) #125.

Release is intentionally NOT cut in this PR

Per AGENTS.md, actually cutting the release (bumping package.json,
writing the blog post, tagging) requires the user's interactively-provided
highlights and happens once all the stacked PRs in this EPIC are merged to
main — not before. This PR only prepares the documentation and a
changelog placeholder so that step is straightforward later.

Closes #183

Validation

  • bun run docs:build (no dead-link warnings)
  • bun run format:check
  • bun test (968 pass, unaffected by docs-only changes)
  • bun run knip

@github-actions

Copy link
Copy Markdown

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

96.83%

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.44%100%100%99.39%276
   group.ts99.11%100%98.17%99.29%546, 552, 631, 763
   output.ts99.37%100%95.83%99.66%84
   regex.ts99.39%100%100%99.34%329
   render.ts90.75%100%88.24%90.85%173, 197–202, 204–206, 208–209, 230, 423–424, 522–526, 556–563, 565–573, 575–578
   scroll-cooldown.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 marked this pull request as ready for review August 23, 2026 22:04
Copilot AI lite review requested due to automatic review settings August 23, 2026 22:04
@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

🔦 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 0c8b190 · full workflow run

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.

Pull request overview

Documents hierarchical team-prefix grouping and adds a pending v2.0.0 changelog entry without cutting the release.

Changes:

  • Rewrites team-grouping usage documentation with syntax, nesting, consolidation, JSON, TUI, and team-picking examples.
  • Updates grouping-related CLI option references.
  • Adds a pending changelog entry linked to EPIC #125.
  • Nit: the nested example’s summary does not match the displayed rows.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
docs/usage/team-grouping.md Documents hierarchical grouping behavior and workflows.
docs/reference/cli-options.md Updates grouping-related CLI options.
CHANGELOG.md Adds the pending v2.0.0 entry.
Suppressed comments (6)

docs/usage/team-grouping.md:193

  • This code fence is newly added without a language tag, but the documentation guidelines require every fenced block to declare one. Add text (or another appropriate language) after the opening fence so the page remains consistent and the docs formatting check does not flag it.
**docs/usage/team-grouping.md:48**
* At the top level, repos that do not match the current chain are not immediately put into an `other` section: they remain in the pool for later independent chains, and `groupByTeamHierarchy` adds one final top-level `other` only after all chains have run (`src/group.ts:112-128`). Please scope this step to nested levels or describe the final residual pool exception.
  1. Repos matching no team at this level → collected into an other section.
**docs/usage/team-grouping.md:183**
* This new statement conflicts with `docs/reference/keyboard-shortcuts.md:19`, which still says section headers are skipped automatically. The implementation makes these rows navigable so `p` can target a nested multi-team header; please update the reference page in the same documentation change.

Section header rows are navigable at any depth — / can land on them. Pressing p while the cursor rests on a multi-team section header enters team pick mode, regardless of its nesting level.

**docs/usage/team-grouping.md:39**
* The new grammar makes a trailing `/` a malformed segment, but `README.md:87` still presents `--group-by-team-prefix platform/` as a valid example. That command emits the malformed-segment warning; please update the README example to use a valid one-level prefix or a complete chain.

A chain can have as many levels as you need (gamme-/squad-/chapter-, …). Malformed segments (a stray leading/trailing/double , or /) are dropped with a warning on stderr rather than silently producing an empty prefix.

**docs/usage/team-grouping.md:220**
* The path parser recognizes the literal separator ` > ` (including spaces); a no-space form such as `parent>combined` is treated as a bare label and will not resolve. Describing the separator as just `>` implies that form is valid. Please document the exact spaced separator.
  • A fully-qualified path, joined with >, when the label is ambiguous or you'd rather be explicit:
**docs/usage/team-grouping.md:263**
* The undo mockup is in an untagged code fence (` ``` `). This documentation requires every code block to declare a language; tag this terminal mockup as `text` so it renders as a literal example.

── squad-core + squad-mobile ← all repos restored

</details>



---

💡 <a href="/fulll/github-code-search/new/feat/team-hierarchy-cli?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a `code-review` agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>

Nested levels render as consecutive markdown headings (`##`, `###`, `####`, …, capped at H6) — a sibling section that shares an ancestor with the previous one doesn't repeat that ancestor's heading:

```text
7 repos · 7 files · 8 matches selected
- docs/usage/team-grouping.md: full rewrite covering the / and , chain
  grammar, per-level grouping algorithm, automatic nesting of
  overlapping team names, --group-by-team-prefix-consolidate
  (including its JSON-is-uncollapsed caveat), nested markdown/JSON
  output examples, indented TUI section mockups, and --pick-team at
  any depth (bare label auto-resolve vs fully-qualified "parent > combined"
  path).
- docs/reference/cli-options.md: updated --group-by-team-prefix and
  --pick-team rows, added --group-by-team-prefix-consolidate.
- CHANGELOG.md: added a pending v2.0.0 row linking to EPIC #125 — the
  actual version bump, tag, and required blog post (with user-provided
  highlights, per AGENTS.md) are deferred to the release step once all
  stacked PRs are merged to main.

Part of EPIC #125. Closes #183.
@shouze
shouze force-pushed the feat/team-hierarchy-docs branch from 7178927 to 2f1de38 Compare August 24, 2026 00:14
@github-actions

Copy link
Copy Markdown

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

96.85%

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.44%100%100%99.39%276
   group.ts99.11%100%98.17%99.29%546, 552, 631, 763
   output.ts99.37%100%95.83%99.66%84
   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%

1 similar comment
@github-actions

Copy link
Copy Markdown

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

96.85%

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.44%100%100%99.39%276
   group.ts99.11%100%98.17%99.29%546, 552, 631, 763
   output.ts99.37%100%95.83%99.66%84
   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 self-assigned this Aug 24, 2026
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.

[7/7] Documentation & changelog

2 participants