Skip to content

Center plain Project table cells and label the linked PR overflow - #34532

Merged
brennanb2025 merged 11 commits into
mainfrom
brennanb2025/tp-linked-pr-links
Oct 29, 2026
Merged

brennanb2025 merged 11 commits into
mainfrom
brennanb2025/tp-linked-pr-links

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​23 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​12

In the GitHub Project table, the plain-text columns (Repository, Parent issue, Linked pull requests, Sub-issues progress) sat at the top of each row instead of lining up with the Title and Type columns. The linked pull requests column also ended with a bare "+2" that didn't say what it counted, and in a normal-width column that "+2" was cut off behind the ellipsis anyway.

This PR is styling only:

  • Those four plain-text cells are now vertically centered, like the rest of the row.
  • The overflow reads "+2 more" instead of "+2", and stays visible: only the PR numbers truncate.
  • The PR numbers stay plain text. They are not links or buttons (an earlier version made them clickable; that was dropped).

Tracked in #34185.

Why: the row cell is a stretched flex container, so a plain text span inside it stuck to the top. Adding self-center (plus min-w-0 so long text still truncates) centers it without changing the cell. The dark-mode background difference in an earlier screenshot came from the screenshot fixture, not the app; production colors are unchanged.

Verification: the three tests that read these cells pass (41/41) with the "+2 more" text. Screenshots render the real ProjectViewList, ProjectRow and ProjectCell in a component fixture with two rows (2 PRs, and 10 of 12 PRs); "main" swaps in main's ProjectCell.tsx, everything else identical.

Dark, main:
main dark

Dark, this PR:
branch dark

Light, main:
main light

Light, this PR:
branch light

Review path: full, because the no-repeat criterion is not met by the branch history. QA remains the light UI/copy row (qa=tests).

  • Size: 31 changed production lines in one component; catalog and three tests excluded by the review skill.
  • Risk: rendering/classes/copy only; no saved state, ownership, process, auth, wire or lifecycle changes.
  • History: earlier branch commit 264ab3e965d repaired count clipping; the styling cut briefly restored combined truncation before 05caf386a31 separated the suffix again.
  • Effect: local cell alignment, truncation and overflow copy.

Plan: reuse the existing cell, row styles and translation mechanism; center the plain-text cells and reserve the overflow suffix. The suffix takes some horizontal room from the loaded numbers, which retain the table’s existing ellipsis behavior. No new control or opening behavior.

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

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent 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: 2c69af6a-d9b6-4ecd-9963-4b80d6c290de
Commits

Reviewing files that changed from the base of the PR and between 48fef9d and 264ab3e.

Files selected for processing: 1
  • src/renderer/src/components/github-project/ProjectCell.tsx
Files skipped from review as they are similar to previous changes: 1
  • src/renderer/src/components/github-project/ProjectCell.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.

Walkthrough

Linked pull requests now appear as individual buttons instead of plain text. Each button opens its pull request URL and stops event propagation. When the reported total exceeds the loaded pull requests and the item has a URL, an overflow button opens that URL and shows a localized label in a tooltip. New fixtures cover linked pull requests and overflow counts. Tests cover button interactions and inspect rendered column cells directly.

Priority: Low

Merge Risk: Low · up to 264ab

Linked PRs may still be hard to distinguish when their numbers and titles match, and the overflow label may use plural wording for one remaining PR. These are bounded concerns, but should be checked before merge.

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 with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description follows most of the template: ELI5, What Changed, Why, Linked Issue ("Tracked in #34185" but not in the required "Fixes #" form), Visual Proof (before/after screenshots for dark and li… Add an ELI5 section in plain language. Replace "Tracked in #34185" with the required "Fixes #" line, or state why no linked issue applies. Complete the Testing section: state whether manual testing was done, name the platforms teste…
Passed Passed checks: 3 passed
Check name Status Explanation
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.
Title check Passed The title accurately covers cell alignment and overflow labeling, which are real changes, but it omits the primary behavior change: linked pull request numbers are now clickable buttons that open PR U…
Full details: Title check

Explanation

The title accurately covers cell alignment and overflow labeling, which are real changes, but it omits the primary behavior change: linked pull request numbers are now clickable buttons that open PR URLs.

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 with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 6 files.

Resolution

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

Full details: Description check

Explanation

The description follows most of the template: ELI5, What Changed, Why, Linked Issue ("Tracked in #34185" but not in the required "Fixes #" form), Visual Proof (before/after screenshots for dark and light themes), and Testing. It is missing the Testing checklist ticks, the AI Disclosure section, the Review section, the Agent skill upstream boundary checkbox, the Notes section, and the Checklist. The ELI5 section is absent. The Linked Issue reference is not in the required form. The Testing section describes automated tests only and does not list the platforms tested (macOS, Linux, Windows, SSH) or state manual testing.

Resolution

Add an ELI5 section in plain language. Replace "Tracked in #34185" with the required "Fixes #<number>" line, or state why no linked issue applies. Complete the Testing section: state whether manual testing was done, name the platforms tested, and tick the checkboxes that apply. Fill in or mark N/A for AI Disclosure, Agent skill upstream boundary, and the Checklist items (lint, typecheck, test, build). Add a Notes entry covering security, cross-platform, SSH, backwards compatibility, and performance.

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.

@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: 69d6b88d-1dea-4e74-8d42-3cce3cac60f1
Commits

Reviewing files that changed from the base of the PR and between 4e326e2 and d7ab3b7.

Files selected for processing: 4
  • src/renderer/src/components/github-project/ProjectCell.fixture.tsx
  • src/renderer/src/components/github-project/ProjectCell.linked-pr.test.tsx
  • src/renderer/src/components/github-project/ProjectCell.test-fixture.tsx
  • src/renderer/src/components/github-project/ProjectCell.tsx

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

@brennanb2025

brennanb2025 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

The GitHub Project table’s Repository, Parent issue, Linked pull requests, and Sub-issues progress text sat above the other cells. The linked-PR overflow count was also clipped behind the numbers.

This styling-only revision centers those four text cells and keeps “+N more” visible while the PR numbers truncate. Per Brennan’s latest ruling, the numbers remain plain text; no links, buttons, tooltips, or opening behavior are added. The earlier focus and accessible-name findings no longer apply because the controls were removed. No production background colors changed; the earlier dark-mode blocks came from the fixture surface.

Full-path review complete: fresh adversarial review, an independent architecture challenge, and the final checklist/performance pass all found no actionable issues and rated merge risk LOW. Full path was used because earlier branch history contains a repair for the same count-clipping symptom. No current findings were deferred and no additional production edits were needed. Reserving the suffix leaves fewer PR-number characters before the ellipsis; no action or data is lost.

Verification: the lane’s tc-gate run passed 41/41 tests across the three affected named renderer suites through tc-gate; CI passed on reviewed head 0bd311fbda6b396e6fd350d507815f66f5250586. No unresolved threads or merge conflicts. The QA table classifies these flows as light UI/copy (qa=tests): renderer tests plus screenshots, with no Electron round or agent runs required.

The screenshots use the real ProjectViewList, ProjectRow, and ProjectCell in a temporary component fixture, with identical data on main and the branch: two linked PRs, and ten of twelve linked PRs. They were captured on 05caf386a3119c8376a16acffac9ce35c6de4ce7; only the main merge 0bd311fbda6 followed, so the screenshots carry under the review skill’s merge rule. The fixture was removed and its server stopped.

For Brennan’s review

Theme Main This PR
Dark Main dark PR dark
Light Main light PR light

Text alignment and overflow rendering.

@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: 2


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: 5b37f38c-61bf-4e4d-a0e7-257f38f39322
Commits

Reviewing files that changed from the base of the PR and between 256ca8e and 6744b0d.

Files selected for processing: 6
  • src/renderer/src/components/github-project/ProjectCell.fixture.tsx
  • src/renderer/src/components/github-project/ProjectCell.linked-pr.test.tsx
  • src/renderer/src/components/github-project/ProjectCell.test-fixture.tsx
  • src/renderer/src/components/github-project/ProjectCell.tsx
  • src/shared/github/project-relations.test-fixture.ts
  • tests/e2e/github-project-provider-columns.unit.test.ts

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

@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: 6a37fe79-a9b3-4a91-a2db-4823be7bf71a
Commits

Reviewing files that changed from the base of the PR and between 6744b0d and 48fef9d.

Files selected for processing: 2
  • src/renderer/src/components/github-project/ProjectCell.tsx
  • src/renderer/src/i18n/locales/en.json

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

Comment thread src/renderer/src/i18n/locales/en.json Resolved
Drop the clickable linked PR numbers: the numbers stay plain text as
before. Plain text cells (repository, parent issue, linked pull requests,
sub-issue progress) now center vertically like the other cells, and the
linked PR overflow reads "+N more" instead of a bare "+N".
@brennanb2025 brennanb2025 changed the title Make linked PR numbers in GitHub Projects clickable Center plain Project table cells and label the linked PR overflow Oct 28, 2026
@brennanb2025
brennanb2025 merged commit d2d61ba into main Oct 29, 2026
56 of 58 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/tp-linked-pr-links branch October 29, 2026 22:05
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.

1 participant