fix: improve calculator accessibility and async result handling
This commit is contained in:
1 parent
ea2f0fbe05
commit
bb21a767d7
9 files changed
+473
-105
No files matched your search
@@ -130,3 +130,12 @@ Inspection results persist the base score for the number of inspections and each
|
||||
Calculator/admin share `web/weather-effect.js` and `.css`, served through `/api/weather/effect.*` so existing gateway routing works. `app/belki/weather.py` reads only the fixed public ULLI raw METAR endpoint: observed wind/gusts control speed/drift, RA/DZ and SN/SG select rain/snow/mixed particles, intensity controls density. Trends/remarks/vicinity do not change observed weather. The cache is process-local (5 min success, 1 min failure), timeout 3 s, payload cap 64 KiB; observations expire after 2 h. Failure restores leaves. Browser polling is every 5 min, hidden tabs pause, reduced motion keeps at most seven faint static particles. No dependencies or storage changes. Remote test-zone MCP was unavailable; local fixtures and browser checks were used. On this Mac, Python HTTPS required `SSL_CERT_FILE=/etc/ssl/cert.pem`; never bypass TLS verification. Production is unverified until a separately requested push/deployment.
|
||||
|
||||
- 2026-10-18 20:19 MSK: operator's `98182c17` weather rollout verified live. Web/bot/gateway Ready, zero restarts; public `/api/weather/ulli` matched ULLI wind 3 m/s/CAVOK, CSS/JS matched local commit, calculator/admin rendered leaves with reduced motion respected and no console errors. This supersedes the earlier unverified-production status for the leaves/current-weather path; production rain/snow remain fixture-only evidence.
|
||||
|
||||
## Frontend contracts and LongMemory identity — 2026-11-14
|
||||
|
||||
- The owner explicitly chose LongMemory `project_id="catwar"`; root `project-info.txt` is the canonical literal identity. Do not derive a different namespace from the repository name. Initial project context/recall had no matching knowledge.
|
||||
- `/belki` section choices are real links with URL/history behavior; calculation modes are native radios. Keep browser keyboard semantics and `aria-current`/pressed states aligned with visible selection. File pickers in both application forms must remain visible and keyboard reachable.
|
||||
- Editing a report or changing modes invalidates its prepared payload/output. Ignore calculation responses whose version is older than the current form state; guard concurrent preparation/application requests. These frontend guards are not server-side idempotency.
|
||||
- Training points have scalar `result.kitten_points` (25); coaching points use an array. Both shapes must render, and hidden activity fields must stay disabled for browser validation. The points renderer uses text nodes instead of HTML interpolation.
|
||||
- Regression coverage is `tests/browser/calculator.cjs` with external Playwright and an isolated loopback server; see AGENTS.md. 49 focused Python checks and desktop/mobile browser flows passed in the local fallback environment. Other browsers and real assistive technology remain unverified; no deployment was made.
|
||||
- Chrome extension guidance was reviewed, but the legacy CatWar entries are userscripts and were not converted to Manifest V3. Existing licensing/attribution and asset URLs remain intact.
|
||||
Reference in new issue
Block a user