Server-side heatmap rendering, dark theme redesign, uv-based Docker build - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<iframe>on the status page with a server-side rendered "Opening Times" heatmap table. The data is fetched from Grafana's public dashboard query API, cached, and refreshed in a background thread so page loads never wait on the external call.requirements.txttopyproject.toml+uv(withuv.lockfor reproducible installs).uvinstead ofpip, and add acompose.ymlfor local development.lint.yml(ruff + hadolint on every push/PR) andbuild-test.yml(verifies the image still builds onmain);docker-build-push.ymlnow only publishes to GHCR on version-tag pushes (v*) instead of every push tomain.Why
The Grafana iframe made the page noticeably slow to load just to show a small 7x24 probability table. Fetching and caching that data server-side removes the dependency on Grafana's frontend entirely for end users, while the background refresh keeps the data reasonably fresh without ever blocking a request.
Test plan
docker compose up --buildbuilds and starts the container;/returns200and renders the heatmap table./simple.php,/api/v2/status.jsonetc. still respond correctly.pip/uvinstall works from a clean environment.