Skip to content

Fix the Biome errors that fail CI on main - #6

Merged
almas-alright merged 1 commit into
mainfrom
fix/biome-errors
Oct 27, 2026
Merged

almas-alright merged 1 commit into
mainfrom
fix/biome-errors

Conversation

@almas-alright

@almas-alright almas-alright commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Why

biome ci . has failed on main since #3 (47 errors), so every PR's "Lint, types, tests, build" check is red for reasons outside the PR. This makes it pass; the 5 warnings CI already allowed remain.

What

  • Safe fixes from Biome: formatting and import order across 18 files.
  • biome.json: parse Tailwind's CSS directives (@theme in globals.css was a parse error).
  • A real bug: the receipts list's filter didn't recompute when receipts changed (receipts was missing from its useMemo list).
  • Connect page: destination is a stable callback listed in its effect.
  • Accessibility: role="group" containers are now <fieldset>s (receipt filters, heatmap day grid, theme picker), with min-w-0 so they still shrink and scroll. The heatmap's outer box is a labelled <section>; aria-label is dropped from plain divs, and the less/more scale is hidden from screen readers (each day's button already says its amount).
  • Suppressed with the reason in place: autofocus on the new-space name field, the dialog backdrop click and the drop zone (Escape, the close button and the file button cover keyboards), index keys for the server's issue list and for rows whose inputs are controlled, and the app shell's refresh-on-navigation dependency.
  • Test: no longer reads .body from a possibly undefined value.

Tested

  • biome ci on every tracked file: 0 errors, 5 warnings.
  • typecheck, vitest (29), next build.
  • In a browser with the sample account: heatmap grid, receipt filter row (scrolls inside itself, no page overflow) and theme picker lay out as before.

Note

Touches many files, so other open branches will need a merge after this lands (#5 conflicts in one file; I'll resolve it there). Seen while testing, not changed here: the selected receipt filter pill has white text on a white background.

🤖 Generated with Claude Code

`biome ci .` has failed on main since #3 with 47 errors. This makes it pass
(5 warnings remain, as before).

- Biome's safe fixes: formatting and import order across 18 files.
- biome.json parses Tailwind's CSS directives (`@theme` was a parse error).
- The receipts list's filter now recomputes when receipts change (receipts
  was missing from its useMemo list: a stale list after loading).
- The connect page's destination is a stable callback listed in its effect.
- role="group" containers are fieldsets (receipt filters, the heatmap's day
  grid, the theme picker), with min-w-0 so they still shrink and scroll.
- The heatmap's outer box is a labelled section; aria-label is dropped from
  plain divs, and the less/more scale is hidden from screen readers (each
  day's button already says its amount).
- A few rules are suppressed with the reason next to them: autofocus on the
  new-space name, the backdrop click and drop zone (Escape, the close button
  and the file button cover the keyboard), index keys for the server's issue
  list and for rows whose inputs are controlled, and the app shell's
  refresh-on-navigation dependency.
- A test no longer reads .body from a possibly undefined value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c09cec78-bf75-4be1-8201-43f952439cf7
  • 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T05:55:48.091768Z d8636a8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@almas-alright
almas-alright merged commit 1489661 into main Oct 27, 2026
1 of 3 checks passed
@almas-alright
almas-alright deleted the fix/biome-errors branch October 27, 2026 09:33
almas-alright added a commit that referenced this pull request Oct 27, 2026
Main brought the Biome cleanup (#6), which reformatted the files this
branch touches. Took main's versions of app-shell, profile-menu and the
upload dialog and re-applied this branch's few lines: the UpgradeDialog
mount, PlanSummary in Subscription, and ScansLeft in the upload dialog;
formatted the export line in the receipts page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
almas-alright added a commit that referenced this pull request Oct 27, 2026
Main's Biome cleanup (#6) reformatted the old sign-in page and made its
destination a stable callback; this branch replaces that page entirely
(and already has the stable callback), so its version is kept and
formatted. The app shell's ?code= hand-off and the heading focus rule
merged cleanly.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant