Repository navigation
Spot price touch UX + dev QR/proxy - #981
Merged
Merged
Conversation
Rework the pörssisähkö chart interaction for the wall dashboard's touch screen: - Move the price readout from the overlapping Chart.js tooltip to the card title (next to "pörssisähkö"), reverting after a short idle timer. - Add a circular touch loupe that magnifies the bottom strip of the chart (bars + hour labels) above the fingertip, so you can aim at the hour your finger covers. - Handle touch at the grid level and select by x-position, so a drag can glide between the today/tomorrow charts and near-zero bars stay reachable. - Highlight the scrubbed bar with a solid accent fill instead of a border; give near-zero bars a minimum height so they're visible and aimable. - Show a plain 0.0 instead of -0.0 for tiny negative prices.
- Add vite-plugin-qrcode so `yarn dev --host` prints a scannable QR for the LAN URL. - Proxy /api to the backend in dev so the frontend can use same-origin relative URLs (VITE_API_URL=""), which keeps the dashboard reachable from other LAN devices instead of their own localhost.
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.
Spot price chart (touch UX)
Reworks the pörssisähkö chart interaction for the wall dashboard's touch screen:
-0.0→0.0for tiny negative prices.Mouse hover still works (Chart.js handles mouse; touch is handled at the grid level).
Dev tooling
vite-plugin-qrcodesoyarn dev --hostprints a scannable QR for the LAN URL./apidev proxy so the frontend uses same-origin relative URLs (VITE_API_URL=""), keeping the dashboard reachable from other LAN devices instead of their own localhost.