Skip to content

fix(mobile): PR label filter keeps a host label's color after its search changes - #43839

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/mobile-pr-label-filter-dot-color
Nov 27, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/mobile-pr-label-filter-dot-color

Conversation

@only21mil

Copy link
Copy Markdown
Contributor

Problem

The mobile label filter searches the host as you type. If you pick a label the host found that no loaded PR carries, its color dot disappears once the search text changes, though the label stays selected. Dot colors came only from the current search's host answer and the loaded rows. The web counterpart is #43655.

Change

PullRequestFilterSearchScreen now remembers every label color the host has returned while the sheet is open. A newer host answer updates a remembered color, and colors from loaded rows still win. A screen test renders the sheet, selects a host-only label, and changes the search.

Verification

An AI agent ran the screen test, vp run check:changed, and before/after captures on Android and iOS. The test fails on f4b25230 (expected '' to be '#d73a4a') and passes on this branch.

Setup: Android 16 emulator and iOS 26.5 simulator, fresh isolated server data. A loopback GitHub Enterprise stub serves three PRs labeled bug and docs; the repository also has release-blocker and other labels.

Captures were taken at 9d5634aa, before a rebase onto 314f59d1. The fix and test are identical at ef340100.

Steps: PRs → Filter by label → Search labels… → type release → select release-blocker → change the search to docs

Android

Before (f4b25230) After (9d5634aa)
Android, f4b25230: the selected release-blocker label has no color dot after the search changes to docs Android, 9d5634aa: release-blocker keeps its red dot after the search changes to docs

iOS

Before (f4b25230) After (9d5634aa)
iOS, f4b25230: the selected release-blocker label has no color dot after the search changes to docs iOS, 9d5634aa: release-blocker keeps its red dot after the search changes to docs

Not shown: Web and desktop are unchanged.

Generated with Claude Opus 5.5 in T3 Code Nightly

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ef34010 and 4ea449e.

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

No actionable comments were generated in the recent review.

Walkthrough

The screen now retains host-provided label colors when later search results omit them. A test verifies that a label dot keeps its color after the search query is cleared.

Changes: Label color retention

Layer / File(s) Summary
Retain host label colors across searches
apps/mobile/src/features/pull-requests/PullRequestFilterSearchScreen.tsx, apps/mobile/src/features/pull-requests/PullRequestFilterSearchScreen.test.tsx, apps/mobile/vite.config.ts
The screen merges new host label colors with stored colors, while labelColors values take precedence. The test checks that a label dot retains its color after clearing the query. The test is added to the React test project.

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

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · previous review ef340

This change keeps a selected label's color dot visible after the search text changes. It affects only the mobile label-filter sheet, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the actual change: the mobile PR label filter now keeps a host-returned label color after the search changes. It matches the raw summary, which says the screen retains host-provided la…
Description check Passed The description follows the template sections (Problem, Change, Scope, Verification). Problem and Change are clear and specific. Scope links the web counterpart (#43655) but does not link a mobile iss…
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: Title check

Explanation

The title names the actual change: the mobile PR label filter now keeps a host-returned label color after the search changes. It matches the raw summary, which says the screen retains host-provided label colors across searches. It follows the conventional commit format from the repository template.

Full details: Description check

Explanation

The description follows the template sections (Problem, Change, Scope, Verification). Problem and Change are clear and specific. Scope links the web counterpart (#43655) but does not link a mobile issue or state why no issue is needed, and it does not say whether a maintainer requested the PR. Verification is strong: it names the failing test output, the passing result, the commands run, and before/after captures on Android and iOS. The template's 'Not shown' note and agent attribution are present. The template's comment asks to state what could not be checked; the description only says web and desktop are unchanged, which does not say whether they were tested.

Resolution

Optional improvements: in Scope, link the mobile issue that shows the bug, or explain why no issue is needed. In Verification, state whether web and desktop were checked or what was not checked.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7068f98 and ef34010.

Files selected for processing: 3

  • apps/mobile/src/features/pull-requests/PullRequestFilterSearchScreen.test.tsx
  • apps/mobile/src/features/pull-requests/PullRequestFilterSearchScreen.tsx
  • apps/mobile/vite.config.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.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Real iOS app, iPhone 17 Pro / iOS 27.2, light theme, 402×874 viewport; separate fresh databases with the same synthetic project setup and real host labels.

Open PRs → Filter by label → Search labels… → search bug → dismiss keyboard → select bug → replace search with docs → wait six seconds → dismiss keyboard. The selected row loses its dot on base and retains it on head.

Before After
Selected bug loses its dot Selected bug retains its red dot
b79a254620 4ea449ee20
Before recording After recording

Interaction driver · Seed script

Both final stills passed pixel-identical stability checks. The base recording includes an idle pause caused by a device-command timeout; selection and the subsequent dot disappearance are visible near its end.

Not shown:

  • Clearing the search was not separately demonstrated; this proof covers changing the search to docs.
  • Android was not exercised; the real-app comparison used iOS.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 27, 2026
@juliusmarminge
juliusmarminge merged commit 1bd40a6 into pingdotgg:main Nov 27, 2026
56 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 27, 2026
juliusmarminge added a commit to only21mil/t3code that referenced this pull request Nov 27, 2026
Main fixed the mobile label filter in pingdotgg#43839; take its version and drop
the duplicate mobile change from this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants