Skip to content

Thread Grid View Indicator -> Primary - #978

Merged
arul28 merged 2 commits into
mainfrom
ade/thread-grid-view-indicator
Jul 31, 2026
Merged

Thread Grid View Indicator -> Primary#978
arul28 merged 2 commits into
mainfrom
ade/thread-grid-view-indicator

Conversation

@arul28

@arul28 arul28 commented Jul 31, 2026

Copy link
Copy Markdown
Owner

ADE   Open in ADE  ·  ade/thread-grid-view-indicator branch  ·  PR #978

Summary by CodeRabbit

  • New Features

    • Added a grid membership indicator to session cards, showing whether a session is actively connected to a grid.
    • The indicator is available in both compact and full session layouts.
  • Tests

    • Added coverage to verify the indicator appears next to the session status.

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ade Ignored Ignored Preview Jul 31, 2026 7:41am

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@arul28, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 34 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 15612a6b-21fb-4901-acd9-5a7f9ea90c9b

📥 Commits

Reviewing files that changed from the base of the PR and between 6afc014 and 345f195.

📒 Files selected for processing (2)
  • apps/desktop/src/renderer/components/terminals/SessionCard.test.tsx
  • apps/desktop/src/renderer/components/terminals/SessionCard.tsx
📝 Walkthrough

Walkthrough

Changes

Session grid indicator

Layer / File(s) Summary
Indicator rendering and validation
apps/desktop/src/renderer/components/terminals/SessionCard.tsx, apps/desktop/src/renderer/components/terminals/SessionCard.test.tsx
SessionCard renders active or inactive grid membership indicators in compact and full rows. Documentation identifies grid membership as persistent metadata. A test verifies the indicator appears before the status slot.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • arul28/ADE#973: Both changes update SessionCard.tsx and its tests for grid-membership indicator behavior.

Suggested labels: desktop

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title identifies the thread grid view indicator, which matches the primary change to restore the grid session indicator.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ade/thread-grid-view-indicator

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

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
apps/desktop/src/renderer/components/terminals/SessionCard.test.tsx (2)

109-126: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Cover both layouts and both membership states.

This test covers only the default full layout and gridBadge="active". Add cases for compact={true} and gridBadge="inactive". Keep the position assertion for each case.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/desktop/src/renderer/components/terminals/SessionCard.test.tsx` around
lines 109 - 126, Expand the SessionCard layout test to cover both full and
compact rendering with both active and inactive grid membership states. Add
cases using compact={true} and gridBadge="inactive", and retain the assertion in
every case that the grid indicator immediately precedes the status element.

121-125: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Assert the accessibility tree contract.

getByLabelText("In the active grid") only verifies the current label attribute. After the source fix, query the explicit accessible role and name, for example getByRole("img", { name: "In the active grid" }). This prevents a DOM-only label from passing the test. (w3.org)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/desktop/src/renderer/components/terminals/SessionCard.test.tsx` around
lines 121 - 125, Update the indicator assertion in the SessionCard test to query
the explicit accessible role and name, using getByRole with role "img" and
accessible name "In the active grid" instead of getByLabelText. Keep the
existing status-slot and sibling relationship assertions unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/desktop/src/renderer/components/terminals/SessionCard.tsx`:
- Around line 821-833: Give the gridIndicator span in SessionCard.tsx a namable
semantic role, preferably img, while preserving its existing active/other grid
label and visual behavior. Update SessionCard.test.tsx at lines 121-125 to
assert the indicator through its role and accessible name rather than
getByLabelText.

---

Nitpick comments:
In `@apps/desktop/src/renderer/components/terminals/SessionCard.test.tsx`:
- Around line 109-126: Expand the SessionCard layout test to cover both full and
compact rendering with both active and inactive grid membership states. Add
cases using compact={true} and gridBadge="inactive", and retain the assertion in
every case that the grid indicator immediately precedes the status element.
- Around line 121-125: Update the indicator assertion in the SessionCard test to
query the explicit accessible role and name, using getByRole with role "img" and
accessible name "In the active grid" instead of getByLabelText. Keep the
existing status-slot and sibling relationship assertions unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7d2e488c-b2ac-438d-bf2c-8cac6adbda21

📥 Commits

Reviewing files that changed from the base of the PR and between 80e65fb and 6afc014.

📒 Files selected for processing (2)
  • apps/desktop/src/renderer/components/terminals/SessionCard.test.tsx
  • apps/desktop/src/renderer/components/terminals/SessionCard.tsx

Comment thread apps/desktop/src/renderer/components/terminals/SessionCard.tsx
@arul28

arul28 commented Jul 31, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 345f195e8f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@arul28
arul28 merged commit 9a0d239 into main Jul 31, 2026
33 checks passed
@arul28
arul28 deleted the ade/thread-grid-view-indicator branch July 31, 2026 07:55
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