Repository navigation
fix(frontend): improve native select readability in dark mode - #683
Conversation
|
Warning Review limit reachedNext included review available in 57 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughNative ChangesNative select theming
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Native select and option colors now follow the application theme, with Electron coverage for light, dark, and system theme transitions. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
Greptile SummaryThe PR adds shared theme-aware styling for native select controls and expands real-Electron regression coverage across explicit and system theme transitions.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| frontend/src/app/globals.css | Adds shared foreground, background, and color-scheme rules for native select controls and options. |
| frontend/e2e/desktop/theme.electron.spec.ts | Adds real-Electron assertions for native select styling across dark, light, and System theme transitions and resolves the prior historical-tag comment issue. |
Reviews (2): Last reviewed commit: "Update frontend/e2e/desktop/theme.electr..." | Re-trigger Greptile
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
SummaryCoverage spans product creation and editing, unit and quantity rules, theme persistence and rapid switching, readable native dropdowns across product and settings flows, and successful build and lint behavior. It includes normal user flows, persistence checks, UI rendering across light, dark, and system themes, and an adversarial review of tax controls when taxes are disabled. Safe to merge — no failures are attributable to this PR, with no regressions, new failures, or previously flagged PR-related failures remaining. The observed behavior is broadly healthy; the tax-control observation was independently judged intentional rather than a product defect. Tests run by Ito
Tip Reply with @itoqa to send us feedback on this test run. |

Intent
Fix GitHub issue #681: make every native HTML select and its option popup readable in the app's dark mode, including Add Product category, sale unit, tax selectors, Staff role, Support, Settings language, Print Method, printer settings, Orders, and Tax controls. Use a shared renderer-side CSS solution that follows the light/dark/System theme, explicitly themes native select and option foreground/background colors, and leaves Radix dropdown components unchanged. Keep backend, API, database, translations, and Electron main code untouched. Include executable real-Electron regression coverage for dark, light, and System theme transitions against the actual Add Product native selects. Deliver from the isolated feature branch through the no-mistakes pipeline, including review, tests, lint, push, PR creation, and CI validation. Do not touch the unrelated codex/settings-request-storm branch or its settings PR.
What Changed
Risk Assessment
✅ Low: The change is narrowly scoped to shared renderer CSS and real-Electron theme regression coverage, with no backend, API, database, translation, or Electron main-process changes found.
Testing
Built the backend and renderer, then ran the focused real-Electron theme regression across Dark, Light, System transitions and persisted relaunch; Add Product select and option colors were asserted against actual computed theme colors. All focused tests passed, direct Add Product dark-mode evidence was captured, generated test/build artifacts were cleaned, and only the two intended source files remain changed. Lint and full-suite validation were not run per this test-phase boundary.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm cicd frontend && npm cinpm run buildcd frontend && npx cross-env NEXT_BUILD_MODE=desktop npm run buildFLO_E2E_EVIDENCE_DIR=... npx playwright test e2e/desktop/theme.electron.spec.ts --config=playwright.electron.config.ts --project=electron-desktopDirect real-Electron Add Product screenshot/evidence checkVisual inspection of captured screenshotsFinalgit statusand diff scope verification✅ **Document** - passed
✅ No issues found.
frontend/e2e/desktop/theme.electron.spec.ts- Targeted frontend ESLint could not run because the local eslint executable/dependencies are unavailable (eslint: command not found).✅ **Push** - passed
✅ No issues found.
Summary by CodeRabbit