Skip to content

fix(tasks): let Linear section headers collapse and expand - #34173

Merged
brennanb2025 merged 7 commits into
mainfrom
brennanb2025/tp-linear-collapse
Oct 27, 2026
Merged

brennanb2025 merged 7 commits into
mainfrom
brennanb2025/tp-linear-collapse

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​213 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​213
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​27 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24

Linear task sections showed a disclosure arrow, but clicking it did nothing because the header had no interaction or expansion state.

Section headers now collapse and reopen their own issues by click, Enter, or Space. The arrow and accessible expanded state follow the section, while its count stays visible. Folds survive refreshed rows within the mounted table; returning to a newly mounted table starts expanded. Keyboard focus stays visible inside the full-width 36px header.

Plan: reuse existing group identities and the established native disclosure pattern, keep expansion local to the table, and omit only the folded section’s rows. Preserve counts, sibling sections and existing issue actions.

Review path: full, promoted after a second fix round. The review added an operation-count contract for remembered collapsed keys, corrected primitive styling, then fixed the clipped focus ring demonstrated in the branch screenshot. Final correctness, architecture, performance and source-readiness reviews pass with no accepted negative user-facing tradeoff or deferred finding.

Validation: two named renderer/grouping files passed 15 tests; the exact final renderer suite passed 3/3, including mouse/keyboard activation, independent groups, counts, refresh/reorder, ungrouped rows, remount reset and the N/10N operation contract at 100/1,000 remembered keys. Normal pre-commit checks passed. These DOM/performance tests do not measure Electron input latency. The final branch screenshot passed on M4Air: full-width 36px target, complete inset focus ring, Todo 2 collapsed and In Progress 1 expanded. It uses provider-boundary fixture data in the actual app; live Linear authentication and larger-dataset scroll travel were not exercised. CI is green on merge head 59c403a after including main’s #34202 type fixes. The conflict-free merge changed no Linear disclosure, grouping, focus, scrolling or style code, so the existing screenshot evidence remains valid.

Builds on #21302 by @dev-isaacmello; the original contributor commit retains its author. The change keeps folding local to the table and omits extra model/reset bookkeeping.

Tracked in #21228. Tracked in STA-7782.

@brennanb2025
brennanb2025 marked this pull request as ready for review October 27, 2026 01:09
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

TaskPageLinearIssueTable now lets users collapse and expand issue sections. Collapsed sections hide their issue rows while retaining the section count. Tests cover keyboard interaction, state across refreshed rows, ungrouped issues, state reset after unmounting, and operation counts at two scales.

Priority: Normal

Merge Risk: Low · up to 59c40

The section row has an inconsistent idle appearance, and collapsing a section produces an abrupt layout change. These are bounded UI issues rather than blockers to using the feature.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description provides detailed change, rationale, implementation, testing, and review information. However, it does not follow the required template structure, does not include an actual linked iss… Rewrite the description using the repository template headings. Add a clickable issue link under Linked Issue, attach the required before/after visual proof or state N/A with a reason, complete the Testing and Checklist sections, and addres…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly describes the primary change: Linear section headers can now collapse and expand.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 4 functions across 2 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description provides detailed change, rationale, implementation, testing, and review information. However, it does not follow the required template structure, does not include an actual linked issue, and does not provide the required visual-proof attachment or an explicit N/A statement. Required checklist and disclosure sections are also missing.

Resolution

Rewrite the description using the repository template headings. Add a clickable issue link under Linked Issue, attach the required before/after visual proof or state N/A with a reason, complete the Testing and Checklist sections, and address the AI Disclosure and Agent skill upstream boundary sections as applicable.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brennanb2025

brennanb2025 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Linear Tasks showed disclosure arrows on section headers, but the headers could not collapse. This change lets click, Enter, or Space fold only that section’s issues while keeping its count visible. Refresh preserves an explicit fold within the mounted table; a new mount starts expanded.

Full-path review completed four correctness rounds and three bounded fix rounds on c57253d7bdb50b61145e3dbef8e6617b8b9a697a. The fixes added the required N/10N operation contract, corrected primitive styling, and replaced the clipped outset focus with the existing native disclosure pattern’s inset ring. Continued correctness, independent architecture/decider, final performance and readiness reviews found low merge risk and no identified negative user-facing tradeoff. No findings are deferred. The automated ghost-Button styling request is refuted: the muted section-heading surface already exists on main; this preserves it. The established native disclosure pattern keeps focus inside the clipped row. Applying the suggested decoration overrides to the shared Button repeats the CI rejection; its standard outset focus was demonstrated to clip in the earlier screenshot. The corrected native control passed source review, CI and the final screenshot.

Verification: 15 tests passed across the two named renderer/grouping files; the final renderer suite passed 3/3, including the real button’s 100/1,000-key operation contract. Normal pre-commit checks passed. The corrected-head full-app screenshot passed on M4Air: one full-width 36px native button, complete keyboard-focus ring, Todo count 2 collapsed and In Progress count 1 expanded with ENG-103 visible. The loop independently inspected this image. Provider-boundary fixture data was used in the actual app; live Linear authentication, larger-dataset scroll travel and Electron latency were not measured. The existing scrolling container is unchanged. All test-app/keeper processes exited gracefully, driver detached, ports freed and real config hashes remained unchanged.

Main’s type fixes from #34202 are included by conflict-free merge 59c403a3d581cf76eab11352670264d1d7c73ca7. The required merge-only lint-staged check passed. The merge changes no Linear disclosure, grouping, focus, scroll-container or style code, so the screenshot and renderer evidence remain on c57253d7bdb50b61145e3dbef8e6617b8b9a697a. CI is green on the merged head; no QA rerun was needed.

For Brennan’s review

linear-collapsed-final.png

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 183ef9e6-8ac8-4daa-bf7d-765b8c8afedb
Commits

Reviewing files that changed from the base of the PR and between 5edda3c and 59c403a.

Files selected for processing: 1
  • src/renderer/src/components/task-page/linear/IssueTable.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@brennanb2025
brennanb2025 merged commit 41755b5 into main Oct 27, 2026
34 checks passed
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.

2 participants