MAESTRO: fix lint issues

This commit is contained in:
Mariusz Banach
2026-02-18 04:31:42 +01:00
parent 86a368b14d
commit 3c393f13d2
4 changed files with 7 additions and 3 deletions

View File

@@ -46,5 +46,5 @@ This phase protects the analysis service from abuse with per-IP rate limiting an
- [x] All routers and CORS middleware are registered in `main.py` - [x] All routers and CORS middleware are registered in `main.py`
- [x] Application starts statelessly — no database, no session management. Verified `backend/app/main.py` registers only CORS + rate limiter middleware and does not initialize any DB/session services. - [x] Application starts statelessly — no database, no session management. Verified `backend/app/main.py` registers only CORS + rate limiter middleware and does not initialize any DB/session services.
- [x] CAPTCHA modal is keyboard accessible (Tab, Enter, Escape to close) - [x] CAPTCHA modal is keyboard accessible (Tab, Enter, Escape to close)
- [ ] Linting passes on both sides - [x] Linting passes on both sides
- [ ] Run `/speckit.analyze` to verify consistency - [ ] Run `/speckit.analyze` to verify consistency

View File

@@ -63,7 +63,10 @@ async def test_captcha_verify_returns_bypass_token() -> None:
) as client: ) as client:
response = await client.post( response = await client.post(
"/api/captcha/verify", "/api/captcha/verify",
json={"challengeToken": challenge.challenge_token, "answer": challenge.answer}, json={
"challengeToken": challenge.challenge_token,
"answer": challenge.answer,
},
headers={"x-forwarded-for": client_ip}, headers={"x-forwarded-for": client_ip},
) )

View File

@@ -189,6 +189,7 @@ export default function CaptchaChallenge({
<div className="mt-5 flex flex-col gap-4"> <div className="mt-5 flex flex-col gap-4">
<div className="rounded-xl border border-info/20 bg-background/50 p-4"> <div className="rounded-xl border border-info/20 bg-background/50 p-4">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img <img
src={`data:image/png;base64,${challenge.imageBase64}`} src={`data:image/png;base64,${challenge.imageBase64}`}
alt="CAPTCHA challenge" alt="CAPTCHA challenge"

View File

@@ -1,5 +1,5 @@
const createLocalStorageMock = () => { const createLocalStorageMock = () => {
let store = new Map<string, string>(); const store = new Map<string, string>();
return { return {
get length() { get length() {