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(settings): a row's sentence is cut out over every control outside the rows - #3844
A Settings row's sentence (#3758) can lie over a button outside the rows and take its click. Two CI runs on unrelated PRs timed out on such a click, 30 s each:
In both, Playwright found the button visible, enabled and stable, but div.settings-help intercepted pointer events. The test had left the mouse resting on a row after a click, so that row's sentence opened, and a long Japanese or Korean sentence reached the button.
place() cut the sentence out (#3810) only over the controls of other .settings-rows: their children other than .settings-row-text. A page's Back is in the dialog's header, and the Alerts repair button is in a row's condition, inside .settings-row-text, so the sentence lay on both, and the pointer there was the sentence's. A user moving the mouse to either button met the same.
sentenceControls(row) now also counts every button, link and field in the row's dialog that is outside this row and outside the sentence, so the sentence is cut out over them as over another row's controls. This follows the rule #3810 set for the sentence: where it lies on a control, the pointer is the control's.
Validation
bun scripts/settings-rows-demo-regression.ts, settings-segmented-demo-regression.ts, push-health-demo-regression.ts and settings-pages-demo-regression.ts pass with the change (after bun run build).
Not reproduced locally. Six regression designs, from 1440 px down to 320 px, in English and Japanese, with the mouse resting on rows and with the keyboard on every control of Appearance and Alerts, found no sentence lying on Back, on main or with the change, so this PR adds no check that fails on main. The two CI logs above are the evidence for the cause; the next run of those scripts under load is the check that it is gone.
Seen on the way, not changed here: at 320 px in Japanese at text size 20, the Theme file row's ファイル形式 link lies over the row's name.
Auto incremental 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.
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.
Summary
Summary by CodeRabbit
Bug Fixes
Fixed settings sentences overlapping buttons outside their row, including the page’s Back button and buttons shown conditionally. These controls can now receive clicks as expected.
Settings sentence placement now considers interactive controls across the dialog, not only controls in other rows. This includes buttons outside the settings rows, such as Back and the conditional Alerts button.
Changes: Settings sentence placement
Layer / File(s)
Summary
Collect and use dialog controls src/components/SettingsControls.tsx, changelog.d/settings-sentence-clears-buttons.md
sentenceControls gathers controls from other rows and remaining dialog buttons, links, and form fields. RowSentence uses the expanded set when measuring controls. The changelog describes the affected buttons.
Settings sentences should no longer intercept clicks on Back or the conditional Alerts button. No concrete merge-blocking risk was found. The author could not reproduce the original failure locally, so the next CI runs under load will confirm the fix.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a Settings row's sentence is cut out over controls outside the rows. It matches the changeset, which extends sentenceControls to buttons, links and fields in the dialo…
Description check
The description follows the template. The Change section explains the problem (a row sentence lies over Back and Alerts buttons outside the rows), the cause (place() only checked other .settings-row c…
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 main change: a Settings row's sentence is cut out over controls outside the rows. It matches the changeset, which extends sentenceControls to buttons, links and fields in the dialog outside the row. The title is specific and accurate, though it does not name the Back and Alerts buttons.
Full details: Description check
Explanation
The description follows the template. The Change section explains the problem (a row sentence lies over Back and Alerts buttons outside the rows), the cause (place() only checked other .settings-row children), and the resulting behavior. The Validation section lists the commands run, their results, and the unreproduced local status. It does not mention contract-test coverage, which the template asks for only on HTTP/WS changes. The changelog entry is present in the summary, though the description does not state the changelog file explicitly.
Finishing Touches
Generate unit tests (beta)
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.
Reviewing files that changed from the base of the PR and between af26e3a and ee511ef.
Files selected for processing: 2
changelog.d/settings-sentence-clears-buttons.md
src/components/SettingsControls.tsx
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
Merged head fa3e50d7e940 as 0970ad536682 on GitHub's checks, with no unresolved review threads.
Reviewer
Verdict
Note
claude
CLEAR
codex
CLEAR
Two reviewers at this head: Claude (Opus) CLEAR, Codex Terra CLEAR. Two heads were reviewed; this one adds the <summary> toggles both reviewers found missing (the More settings / Experimental fold, SaveFailure's Details, the panels' summaries) and tells other rows' controls apart by closest(). src/ only; outside the release freeze. From ci-loop: the fix for a flake family in which a Settings row's hover sentence lay over the page's Back button or the alerts hint's button and took the click (two CI logs; it never reproduced locally, so no check fails on main, as the PR says). A user moving to those buttons met the same.
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
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.
Summary
A Settings row's sentence (#3758) can lie over a button outside the rows and take its click. Two CI runs on unrelated PRs timed out on such a click, 30 s each:
scripts/settings-page.ts:21insettings-segmented(Japanese, 320 px, text size 20), the click on 設定に戻る (Back to settings).scripts/push-health-demo-regression.ts:248(Korean), the click on 알림 다시 켜기 (Turn alerts on again), twice.In both, Playwright found the button visible, enabled and stable, but
div.settings-helpintercepted pointer events. The test had left the mouse resting on a row after a click, so that row's sentence opened, and a long Japanese or Korean sentence reached the button.place()cut the sentence out (#3810) only over the controls of other.settings-rows: their children other than.settings-row-text. A page's Back is in the dialog's header, and the Alerts repair button is in a row's condition, inside.settings-row-text, so the sentence lay on both, and the pointer there was the sentence's. A user moving the mouse to either button met the same.sentenceControls(row)now also counts every button, link and field in the row's dialog that is outside this row and outside the sentence, so the sentence is cut out over them as over another row's controls. This follows the rule #3810 set for the sentence: where it lies on a control, the pointer is the control's.Validation
bun scripts/settings-rows-demo-regression.ts,settings-segmented-demo-regression.ts,push-health-demo-regression.tsandsettings-pages-demo-regression.tspass with the change (afterbun run build).bun run check fastpasses, on main 6c64181.