Skip to content

v0.2.1 – Web UI fixes

Latest

Choose a tag to compare

@rasidi3112 rasidi3112 released this 03 Dec 03:37
· 1 commit to main since this release

Helios Collective v0.2.1

A small fix release for the web UI introduced in v0.2.0. It came out of hands-on testing in the browser, and makes the result view more honest and easier to trust.

Fixes

  • Honest result labeling: the result no longer shows a green "completed" just because the run finished and its records verify. It now says answered (green) only when every research question was answered, partly answered (yellow) when some were, and not answered when none were. For example, a question about Bangkok in offline mode answers where Bangkok is, but has no recorded climate data, so it is now shown as partly answered instead of completed.
  • Per-research-question summary: the result shows how many research questions were answered and names the ones that were not, e.g. "1 of 3 answered (RQ2 failed, RQ3 failed)". The API adds this as complete and questions (each question's id, kind, status and notes) in the GET /inquiry/{run_id} result. The existing ok field keeps its meaning: the run finished and its provenance verifies.
  • No lone English tab: the language tabs are hidden again when there is no translation. A CSS rule had overridden the hidden attribute.
  • Run links restore the question: opening a run from its link (/#run_…) now fills the question box and the Enable debate and Thai locale options from that run, so the form matches the result on screen.

How to run the web UI

uv sync --locked
make web

Then open http://127.0.0.1:8000. make web runs offline from the recorded NASA POWER and OpenAlex responses, so no API keys are needed. For live data, run uv run python -m helios_api.

Testing

The test suite has 211 tests: 209 pass, and 2 need a live PostgreSQL and are skipped otherwise. A new API test covers a partly answered run. The fixes were also checked by hand in a browser.

Known limitations

The limitations listed for v0.2.0 still apply. The Docker Compose web service is untested, run status is kept in memory, and the API has no authentication. See STATUS.md.

Full changelog: v0.2.0...v0.2.1