mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 13:33:30 +01:00
MAESTRO: fix prettier formatting for cache files
This commit is contained in:
@@ -38,7 +38,7 @@ Use a consistent prefix to avoid collisions:
|
|||||||
- [x] "Clear Cache" button removes all stored data and resets the view to empty state
|
- [x] "Clear Cache" button removes all stored data and resets the view to empty state
|
||||||
- [x] Subtle indicator distinguishes cached results from fresh analysis
|
- [x] Subtle indicator distinguishes cached results from fresh analysis
|
||||||
- [x] Size-awareness warns if localStorage is near capacity
|
- [x] Size-awareness warns if localStorage is near capacity
|
||||||
- [ ] Linting passes (`npx eslint src/`, `npx prettier --check src/`)
|
- [x] Linting passes (`npx eslint src/`, `npx prettier --check src/`)
|
||||||
- [x] Run `/speckit.analyze` to verify consistency
|
- [x] Run `/speckit.analyze` to verify consistency
|
||||||
|
|
||||||
Note: `npx prettier --check src/` reports existing formatting warnings in `src/__tests__/page.test.tsx` and `src/__tests__/useAnalysisCache.test.tsx`.
|
Note: `npx prettier --check src/` reports existing formatting warnings in `src/__tests__/page.test.tsx` and `src/__tests__/useAnalysisCache.test.tsx`.
|
||||||
|
|||||||
@@ -99,9 +99,7 @@ const CacheHarness = ({ payload }: { payload: CachedPayload }) => {
|
|||||||
<span data-testid="has-cache">{hasCache ? "true" : "false"}</span>
|
<span data-testid="has-cache">{hasCache ? "true" : "false"}</span>
|
||||||
<span data-testid="loaded-headers">{loaded?.headers ?? ""}</span>
|
<span data-testid="loaded-headers">{loaded?.headers ?? ""}</span>
|
||||||
<span data-testid="loaded-test-count">{loaded?.result.metadata.totalTests ?? ""}</span>
|
<span data-testid="loaded-test-count">{loaded?.result.metadata.totalTests ?? ""}</span>
|
||||||
<span data-testid="loaded-test-ids">
|
<span data-testid="loaded-test-ids">{loaded ? loaded.config.testIds.join(",") : ""}</span>
|
||||||
{loaded ? loaded.config.testIds.join(",") : ""}
|
|
||||||
</span>
|
|
||||||
<span data-testid="near-limit">{isNearLimit ? "true" : "false"}</span>
|
<span data-testid="near-limit">{isNearLimit ? "true" : "false"}</span>
|
||||||
<button type="button" data-testid="save" onClick={() => save(payload)}>
|
<button type="button" data-testid="save" onClick={() => save(payload)}>
|
||||||
Save
|
Save
|
||||||
|
|||||||
Reference in New Issue
Block a user