Skip to content

chore(admin): fix pre-existing lint errors (CI green)#80

Merged
electron-rare merged 2 commits into
mainfrom
chore/lint-typecheck-green
May 30, 2026
Merged

chore(admin): fix pre-existing lint errors (CI green)#80
electron-rare merged 2 commits into
mainfrom
chore/lint-typecheck-green

Conversation

@electron-rare
Copy link
Copy Markdown
Contributor

Clears the 13 long-standing biome lint errors (a11y on CampaignControls modals + a useless switch case) that kept CI red on main. No behaviour change; typecheck and all builds pass. Makes pnpm lint exit 0.

Clear the 13 long-standing biome errors that kept CI red (failure on
main since before this work):
- CampaignControls.tsx: modal backdrops were clickable <div>s with no
  keyboard path. Add Escape-to-close onKeyDown + tabIndex (a11y/
  useKeyWithClickEvents), mirroring the existing click-to-close; inner
  content gets matching keydown stopPropagation. Click behaviour
  unchanged.
- CampaignStatusCard.tsx: drop the redundant `case 'IDLE'` that fell
  through to default with identical output (noUselessSwitchCase).
- biome safe autofixes (whitespace / import ordering) elsewhere in admin.

No behaviour change; typecheck + builds still pass.
Copilot AI review requested due to automatic review settings May 30, 2026 10:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<div
className="max-h-[80vh] w-full max-w-2xl overflow-y-auto rounded bg-white p-6 shadow-lg"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
<div
className="w-full max-w-md rounded bg-white p-6 shadow-lg"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
<div
role="dialog"
aria-modal="true"
tabIndex={-1}
<div
role="dialog"
aria-modal="true"
tabIndex={-1}
<div
className="max-h-[80vh] w-full max-w-2xl overflow-y-auto rounded bg-white p-6 shadow-lg"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
<div
className="w-full max-w-md rounded bg-white p-6 shadow-lg"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
Both are reasoning models (the gateway's inference_defaults give them
max_tokens=2048); the chat playground omitted them from
REASONING_ALIASES, so they defaulted to 1024 and truncated the thinking
phase. Fixes the 2 pre-existing failing ChatPlayground tests.
@electron-rare electron-rare merged commit 9e639ac into main May 30, 2026
1 check passed
@electron-rare electron-rare deleted the chore/lint-typecheck-green branch May 30, 2026 10:42
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.

2 participants