You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mobile): PR label filter keeps a host label's color after its search changes - #43839
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
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
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.
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.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
PullRequestFilterSearchScreennow 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 onf4b25230(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
buganddocs; the repository also hasrelease-blockerand other labels.Captures were taken at
9d5634aa, before a rebase onto314f59d1. The fix and test are identical atef340100.Steps: PRs → Filter by label → Search labels… → type
release→ selectrelease-blocker→ change the search todocsAndroid
f4b25230)9d5634aa)iOS
f4b25230)9d5634aa)Not shown: Web and desktop are unchanged.
Generated with Claude Opus 5.5 in T3 Code Nightly