Skip to content

Expose mobile PR indicator labels to accessibility#3828

Merged
juliusmarminge merged 5 commits into
mainfrom
feature/mobile-pr-number-indicator
Jul 9, 2026
Merged

Expose mobile PR indicator labels to accessibility#3828
juliusmarminge merged 5 commits into
mainfrom
feature/mobile-pr-number-indicator

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Marks the mobile thread row PR indicator as an accessible text element.
  • Uses the existing provider-aware PR accessibility label for screen readers.

Testing

  • Not run (PR content generated from provided commit and diff metadata).

Note

Low Risk
UI and accessibility-only changes in mobile thread list presentation with updated unit tests; no auth, data, or API impact.

Overview
Thread list rows now announce pull request context to screen readers by setting the row accessibilityLabel to thread title plus the existing provider-aware PR label (e.g. #3774 pull request merged), instead of only the title.

Visual tweaks: the branch SymbolView is removed from the subtitle row, and the on-screen PR number drops the # prefix (3774 vs #3774) while accessibilityLabel still includes # and GitLab merge-request wording. Unused muted-color styling tied to the branch icon is cleaned up, and the PR subtitle container no longer carries its own accessibilityLabel.

Reviewed by Cursor Bugbot for commit d0d1129. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Expose PR indicator labels to accessibility in mobile thread list rows

  • The ThreadListRow accessible name now includes PR info (title + pr.accessibilityLabel) when a PR is present, instead of just the thread title.
  • The branch SymbolView icon preceding the subtitle text is removed from the thread list row.
  • presentThreadPr label is changed from #${pr.number} to String(pr.number), dropping the leading # from the compact PR label. Tests are updated to match.
  • Behavioral Change: consumers of ThreadPrPresentation.label (e.g. displayed PR badges) will no longer show a # prefix on the PR number.

Macroscope summarized d0d1129.

juliusmarminge and others added 3 commits July 9, 2026 15:11
- Add shared PR presentation for compact #number labels
- Render PR state icons with theme-aware colors

Co-authored-by: codex <codex@users.noreply.github.com>
- Add accessible change request labels that say merge request for GitLab
- Keep compact thread list labels as PR numbers
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9f00ddf5-8257-4d2c-9f91-3556c8ba4705

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/mobile-pr-number-indicator

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

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Jul 9, 2026
Co-authored-by: codex <codex@users.noreply.github.com>
@github-actions github-actions Bot added size:S 10-29 changed lines (additions + deletions). and removed size:L 100-499 changed lines (additions + deletions). labels Jul 9, 2026
@juliusmarminge juliusmarminge enabled auto-merge (squash) July 9, 2026 13:40
Comment thread apps/mobile/src/features/threads/thread-list-items.tsx Outdated
@juliusmarminge juliusmarminge disabled auto-merge July 9, 2026 13:42
@macroscopeapp

macroscopeapp Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

1 blocking correctness issue found. An unresolved review comment flags that the branch indicator icon (arrow.triangle.branch) was removed from thread rows, which may be an unintended user-visible regression. Human review needed to confirm whether this removal was intentional.

You can customize Macroscope's approvability policy. Learn more.

Co-authored-by: codex <codex@users.noreply.github.com>
tintColor={compact ? iconSubtleColor : effectiveMuted}
type="monochrome"
/>
<Text

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.

🟡 Medium threads/thread-list-items.tsx:497

The branch indicator icon (arrow.triangle.branch SymbolView) was removed from the subtitle row, so every thread row that shows branch/environment metadata no longer renders the branch icon. This is a user-visible regression affecting both compact and sidebar thread lists. If removing the icon was intentional, consider documenting the rationale; otherwise, restore the SymbolView before the subtitle text.

Suggested change
<Text
<>
<SymbolView
name="arrow.triangle.branch"
size={10}
tintColor={compact ? iconSubtleColor : undefined}
type="monochrome"
/>
<Text
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @apps/mobile/src/features/threads/thread-list-items.tsx around line 497:

The branch indicator icon (`arrow.triangle.branch` `SymbolView`) was removed from the subtitle row, so every thread row that shows branch/environment metadata no longer renders the branch icon. This is a user-visible regression affecting both compact and sidebar thread lists. If removing the icon was intentional, consider documenting the rationale; otherwise, restore the `SymbolView` before the subtitle text.

@juliusmarminge juliusmarminge enabled auto-merge (squash) July 9, 2026 13:47
@juliusmarminge juliusmarminge merged commit f61fa94 into main Jul 9, 2026
19 of 20 checks passed
@juliusmarminge juliusmarminge deleted the feature/mobile-pr-number-indicator branch July 9, 2026 14:00
eyeveil added a commit to eyeveil/t3code that referenced this pull request Jul 9, 2026
… + desktop packaging)

Merge upstream/main into the fork. Notable upstream changes: Clerk stack
upgrade (pingdotgg#3821), mobile offline persistence + preferences refactor (pingdotgg#3795),
mobile PR number badges + a11y (pingdotgg#3827, pingdotgg#3828), font embedding (pingdotgg#3823),
worktree metadata preservation during branch sync (pingdotgg#3822), codex reasoning
labels (pingdotgg#3824), desktop native optional dependency packaging (pingdotgg#3816).

Preserved fork features across conflicts: iOS personal-team build support,
Material3 dynamic accent theming, verbose work-log, mobile visible queue,
MarkdownCodeBlock, native Android composer/header layout, and the fork's
asar:false + afterPack/afterSign node_modules copy hooks for desktop packaging.
Lockfile regenerated on pnpm 11 (upstream lock as base).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant