Repository navigation
Port newer dashboard from sean-michael.dev; serve under /tides; push to Docker Hub - #2
Merged
Merged
Conversation
…to Docker Hub The copy embedded in the site kept evolving after this repo's last commit. Bring those changes back here so BTO is the one source of truth again: - Frontend: mobile app layout, drag-to-zoom InteractiveChart, updated Charts/FocusPanel/Sidebar and styles. Fixed react-hooks lint errors in the ported code (refs read during render, setState in effect, self- referencing retry callback) without changing behavior. - Backend: stale-if-error NOAA cache with retries; bootstrap drops a failing station instead of failing the whole dashboard. - Paths: UI at /tides (Vite base), API at /api/tides, / redirects to /tides, public files (favicon, background) served under /tides. - CI: push <dockerhub user>/bto:latest after tests and image scan on main.
- backend: anyio 4.14.2, starlette 1.8.0, urllib3 2.8.0, pydantic-settings 2.16.0, zeep 4.3.3, with floors in pyproject so they can't regress. - frontend: refresh lockfile within existing ranges (vite 8.3.4, undici, brace-expansion, nanoid, postcss, browserslist, source-map-js). - frontend-dev image: npm vendors stale undici/brace-expansion even at its latest release, so remove npm after `npm ci` and run Vite with node. All three images scan clean at --fail-on high --only-fixed locally.
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.
The copy of the dashboard embedded in sean-michael.dev kept evolving after this repo's last commit (May 27). The site is being stripped down to a plain blog, so this brings those changes back here and makes BTO the one source of truth, deployed as its own container behind the site's Traefik.
What changed
Frontend
src/mobile/,styles/mobile.css) and the drag-to-zoomInteractiveChart, plus the newer Charts / FocusPanel / Sidebar / styles.react-hookslint errors in the ported code without changing behavior: the drag band read a ref during render (now mirrored in state), zoom reset used setState in an effect (zoom now remembers which range it was made in), and the retry callback referenced itself before declaration.public/instead of the main site's/static/images/.Backend
/bootstrapdrops a failing station instead of failing the whole dashboard (502 only if every station fails).Paths: everything lives under
/tidesso it can share the domain with the main site/tides(Vitebase: '/tides/'), assets at/tides/assets, public files (favicon, background) under/tides/./api/tides/*(bootstrap, stations, health)./redirects to/tides.index.htmlis servedno-cache; anything outside/tidesand/api/tides404s (the main site owns it).CI
pushjob: after backend, frontend, and the image scan pass onmain, publishes<dockerhub user>/bto:latest(+ sha tag). Needs repo secretsDOCKERHUB_USERNAMEandDOCKERHUB_TOKEN.Testing
/tides/-prefixed assets.Deploy (after merge)
DOCKERHUB_USERNAME/DOCKERHUB_TOKENsecrets to this repo./opt/app/.env:tidesservice and Traefik routes are already in Sean-Michael.dev'sdocker-compose.yaml.🤖 Generated with Claude Code