fix(web): find French theme color labels with decomposed accents #48292
main fromrefs/pull/48292/head·opened View on GitHubProblem#
The advanced theme color filter can hide a color when the pasted text is canonically equivalent to its displayed French label but uses separate accent marks.
Deterministic repro on origin/main (4b8199987cb63f82912b8f3dbe9de6a96cdb057b)
- In a fresh local web app, open Settings → General and set Language to Français. No provider account is needed.
- Open Appearance → Créer un thème → Avancé. Enter the precomposed
Surface surélevéeinFiltrer les couleursand confirm that the color row appears. - Replace the filter with the exact output of
node -e 'process.stdout.write("Surface sure\u0301leve\u0301e")'(two U+0301 combining acute accents).
Observed: the filter displays Aucun résultat. and removes the Surface surélevée row. Expected: both spellings show the same raised surface row and its editable hex value.
Change#
Normalize the query and the existing family and role labels to NFC before the case-insensitive substring comparison. The shared editor covers web and Electron; there is no native mobile editor or server change.
Scope#
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification#
- The focused browser regression failed on the pinned base with
AssertionError: expected null not to be null, then passed with the fix. - An isolated real-app Chromium scenario switched to French, pasted the exact decomposed value, and found zero matching rows on base and the visible raised surface row with the fix. Before/after screenshots and runnable scenario (download and open
before-after.htmlto view the captures). vp run check:changedexited 0, including all 14 tests in the theme editor browser suite.
Not shown: Packaged Electron, other locales, or remote/tunnel connections were not exercised separately.
Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).
- 1
tanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
6006b23Macroscope's review found this PR approvable — Theme color search now matches canonically equivalent accented text consistently. The change is confined to UI filtering and does not alter saved theme values or product defaults.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Walkthrough
-
The advanced color filter now normalizes the query and searchable labels to Unicode NFC before matching. A French-locale browser test checks matching with composed and decomposed accents.
Changes: Advanced color filtering
Layer / File(s) Summary Normalize filter inputs and verify matching
apps/web/src/components/settings/ThemeEditorPanel.tsx,apps/web/src/components/settings/ThemeEditorPanel.browser.test.tsxThe filter normalizes the query and searchable labels to NFC before the existing lowercase substring match. The browser test checks composed and decomposed accents in French. Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix
Suggested reviewers:
bil0000
Merge Risk:
Minimal · up to6006b-
The advanced theme color filter will now find French labels when the query uses decomposed accents. The change is narrowly scoped and carries no known merge risk.
Pre-merge checks:
4-
Check name Status Explanation Title check The title "fix(web): find French theme color labels with decomposed accents" names the main change. The summary shows that the advanced theme color filter now normalizes the query and the family and r… Description check The description follows the template closely. It has Problem, Change, Scope, and Verification sections. The Problem section gives a clear reproduction with expected and observed behavior. The Change s… 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 "fix(web): find French theme color labels with decomposed accents" names the main change. The summary shows that the advanced theme color filter now normalizes the query and the family and role labels to NFC before matching, so a decomposed-accent query finds French labels such as "Surface surélevée". The title is specific and follows conventional commit form. It is 64 characters, which is within a reasonable length.
Full details: Description check
-
Explanation
The description follows the template closely. It has Problem, Change, Scope, and Verification sections. The Problem section gives a clear reproduction with expected and observed behavior. The Change section explains the NFC normalization and states that no native mobile or server changes are needed. The Scope section says the fix is small and needs no issue under CONTRIBUTING.md. The Verification section lists the focused browser regression, a real-app Chromium scenario, and the passing check run, and it states what was not tested. The template asks for before/after screenshots for UI changes. The author links them through an external gist rather than embedding them, which is acceptable under the template. The description also names the model used, which the template asks for when an agent did the work.
-
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-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: d54e1eb
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
eafd6fb6-146d-4fb3-9598-c6e929623290
Commits-
Reviewing files that changed from the base of the PR and between d54e1ebfdb5d9ea4fdd5aa61487a8016cbe0d664 and 6006b235ee37cf6aacae63fc1b57781b6eeed722.
Files selected for processing: 2-
apps/web/src/components/settings/ThemeEditorPanel.browser.test.tsxapps/web/src/components/settings/ThemeEditorPanel.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
-
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes