The box editor rendered inside the landing page's overlay canvas, which
is pointer-events: none so the page underneath stays clickable; the
panel inherited it and ignored every click and keystroke. It is now
teleported to <body>.
Image and video files dropped onto a canvas in edit mode are uploaded
and each becomes an unframed box at the drop point, sized to its aspect
ratio. The upload code moves to home3/upload.js, shared with the
editor's "Insert upload".
The hand-written Demoman shrine is unrouted (and its slug unreserved)
so it can be remade as a canvas page. /shrines lists only canvas pages
and keeps the admin-only create form behind a "+ New shrine" button.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The /stp canvas is now BoxCanvas.vue, keyed by a page. Boxes carry a
page ("stp", "index" for the landing page's notes overlay, or a Page
slug) and an adminOnly flag that the boxes resolver filters server-side.
A new Page type lets the admin create canvas pages in the browser,
served at /<slug> by the router's catch-all (CanvasPage.vue), starting
from a Blank, Shrine or Notes-board layout. Slugs that an SPA or nginx
route would answer first are refused. Renaming a page moves its boxes;
deleting it deletes them.
The GTO, Evangelion and Skipskipbenben placeholder routes are dropped
in favour of canvas pages listed on /shrines, which the landing page
now links to. The box editor gains an admin-only toggle and an
upload-and-insert button, and there are Note, Heading, Text, Gallery
and Video templates.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
/stp is now views/home3/Home3.vue: boxes an admin creates, drags, resizes
and edits in the browser, saved to the database so every visitor sees the
same layout.
- backend: a Box GraphQL type (kind widget|html, x/y/w/h/z in px on a
1400px design canvas, framed, hideOnMobile). Public `boxes` query;
create/update/delete are @admin. Geometry is clamped rather than
rejected. Framed has no gorm default, since GORM would turn an explicit
false into true on insert.
- vue: widget boxes render the existing widgets from a registry; html
boxes render in an iframe sandboxed with allow-scripts and no
allow-same-origin, so admin script can't read cookies or call /api. The
site tokens and fonts (inlined as data: URLs) are injected into each
frame. The canvas scales to fit the window; phones get a single column
in (y, x) order. Edit mode saves geometry on release and has a
CodeMirror side panel (lazy-loaded) with a live HTML preview. Templates
cover Clock, Weather (Open-Meteo) and Image/GIF. "Import current layout"
recreates the old Home.vue grid on an empty canvas.
- Home.vue is kept with a STATUS: legacy header. Docs updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The job tracker has run from its own image at /jobs/ since 931b02c, so its
old copy here goes: the GraphQL schema, resolvers and models for
applications, references, sources, leads and the search profile; the
capture and email handlers and services; the Python posting reader, lead
scorer and email classifier; the Vue pages, stores and the capture-token
card on the Environment tab; and the userscript (nginx already redirects
its old URL to /jobs/).
The six old tables stay in the stp database: AutoMigrate never drops
anything, and dropping them is a manual step. The env variables stay in
the registry, where they already belong to the jobs service.
Docs (CLAUDE.md, DEPLOYMENT.md and the three READMEs) now describe the
site without the tracker, and DEPLOYMENT.md lists the jobs service and
./jobs-data.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tracker (applications, leads, email pipeline, capture userscript) now
lives in the adamf/job-tracker repo and runs here from its published image.
- docker-compose.yml: a `jobs` service with an explicit environment list
(its own database role; none of the site's other secrets), ./jobs-data
mounted at /data, and nginx waiting for it. The dev override seeds it.
- nginx: /jobs/ proxied to it with the prefix kept, and 301s from
/cv/jobs, /cv/leads and the old userscript URL.
- env_registry.json and .env.example: the email and job-lead variables now
belong to the jobs service; CLAUDE_* to python and jobs; new
POSTGRES_JOBS_* and JOBS_IMAGE_TAG. The compose environment test now
checks the jobs service's list as well as python's.
- backend: no longer starts the email and job-lead schedulers or serves
the capture and email routes, since the tracker reads the same settings
and would otherwise process everything twice. The old job code stays
until the tracker has run for a while.
- vue: the CV page's Jobs button goes to /jobs/; the old routes are gone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rescoreJobLeads (RescoreAll, "Rescore all" on /cv/leads) scores every
matched inbox lead again, for after the profile or the model has
changed. Scores are not wiped first: a lead keeps its old score until
the new one is saved, and the new scored_at column marks which leads the
job has reached, so a job that dies partway leaves no gaps. Leads that
had used up their attempts get them back.
The inbox can also be ordered by when a posting went up, falling back to
when it was found where the source gave no date.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A run caps its scoring at forty leads, so a first poll of several boards
left a backlog that could only be cleared by pressing "Check now"
repeatedly, re-fetching every source each time.
scoreJobLeads (JobLeadService.ScoreAll, "Score unscored" on /cv/leads)
re-applies the keyword filter and then scores every matched, unscored
lead, with no cap on the count and a one-hour limit on the time. A lead
Claude fails on is tried once per press rather than three times, so a
passing failure does not write it off. It shares the run lock and the
polled status with runJobLeadSync, and the page now reloads the leads
while either job is in flight.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tracker recorded applications but could not find jobs. A new
pipeline (services/job_leads.go, job_sources.go) polls a watch list of
sources on a timer or on request, files unseen postings as leads, marks
which pass a keyword and location pre-filter, and has Claude score those
against a single search profile through a fourth internal Python route,
/internal/jobs/score.
Sources are Greenhouse, Lever and Ashby company boards (public JSON) and
Adzuna and Reed keyword searches (API keys). The two search fetchers are
written from the providers' documentation and tested only against stubs.
Leads are their own table, not a job status, and are not soft deleted:
the (source_kind, external_id) index is the dedup, so a dismissed lead
has to remain a row. A lead reaches the tracker only by promotion, which
goes through UpsertJobApplication. That upsert moves from the capture
handler into services so promotion and the fetcher can share it; the
capture endpoint's behaviour is unchanged.
/cv/leads is the page: inbox, watch list and profile form. The timer is
off unless JOB_LEADS_ENABLED=true and never runs at start-up, so a
deploy spends no Claude calls.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
createCrudStore captures the places store's pattern and now backs
places, job applications and job references. JobApplications.vue no
longer calls gql() itself and is split into the applications table, the
references table and the add form, with the status vocabulary in
jobStatus.js.
api.js is a thin REST client that turns failures into an ApiError
carrying the backend's message; the admin views and Listening.vue use it
in place of raw axios and fetch.
The router guard waited on the home query's loaded flag, which is never
set when that query fails, so /admin and /cv/jobs could hang. It now
awaits a standalone me query owned by the auth store, and homeData gains
a settled flag for widgets that only need to know the fetch finished.
The Vite proxy targets are configurable through VITE_PROXY_*, and
build:js runs the Vite build without wasm-pack.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add an Environment tab to /admin that lists every variable in .env.example
and lets keys, OAuth settings, email settings and generated secrets be
changed without SSH. Secrets are write-only; infrastructure variables are
shown read-only.
The backend never writes .env or touches Docker. It validates an edit and
queues it in env-apply/run/request.json; env-apply/apply.py, run on the host
by a systemd path unit (env-apply/install.sh), rewrites .env atomically,
keeps .env.bak, and recreates only the services that read the change.
backend/services/env_registry.json is the single list of variables, shared
by the backend and the host script; a test keeps it in step with
.env.example. It replaces the drifted checklist in handle_admin.go. The job
capture token card moves to the new tab.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The userscript's bearer token was an env var, JOB_CAPTURE_TOKEN, so rotating
it meant editing .env and redeploying. It is now minted on the admin
diagnostics panel instead, and the env var is gone.
- services.CaptureToken keeps only a SHA-256 of the token, in
backend/token/job_capture_token.json beside the OAuth tokens, so it
survives rebuilds and cannot be read back. The token is shown once.
- GET/POST/DELETE /admin/capture-token report, generate (replacing any
existing token) and revoke it, behind the cookie-authenticated admin group.
- With no token generated the capture routes still answer 503.
- Userscript bumped to 1.0.1 for the changed prompt text.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Violentmonkey userscript, served by the site and installed from /cv/jobs,
adds the posting open in the browser (LinkedIn, an ATS, any company page) to
the tracker. Claude reads the title, company and location off the page text.
- Three token-guarded REST routes under /api/jobs/capture (status, extract,
upsert). They take a bearer token, JOB_CAPTURE_TOKEN, because the auth
cookies are SameSite=Lax and never sent from another origin. An unset token
switches the routes off.
- The upsert matches on a canonical posting URL, then (company, job title),
so a capture and the email pipeline do not make two rows for one job.
- The Claude call is a new internal Python route, /internal/jobs/extract,
alongside the rowing reader; the client and fence stripping they share move
to python/app/claude.py.
- New "saved" status ranked below "applied", and a description column holding
the posting text, shown per row on the tracker.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
POST /rowing in the Go backend no longer calls the Anthropic SDK. It keeps
the admin gate, EXIF date, duplicate check, sanity bounds and insert, and
sends the image to a new internal Python route, POST /internal/rowing/read,
which makes the Claude call and returns the three numbers it read.
The route spends a paid call and has no auth of its own, so nginx 404s
/py/internal/ and the route refuses anything carrying the proxy headers
nginx adds. The python container now receives CLAUDE_API_KEY.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Listening and Steam: fit the artwork to the cell instead of scrolling.
The image is now a flexible item that takes the height left over after
the text, so a wide/short cell or a wrapped title can no longer overflow.
- Below 1360px the two sidebars collapse into one tabbed panel (Chat,
Bookmarks, Commits, Steam) under the sheet instead of a long stack of
individually scrolling boxes. CSS-only: widgets stay mounted once.
- Phone: clamp song/artist to one line and give the grid a minimum
height so album art stays visible on short screens.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The wall was a wrapping flex row with a fixed 4-stamp min-width, so it only
overflowed (and so only bounced) when its cell was narrower than that. At
tablet widths the cell is wider, the wall fitted, and horizontal motion
stopped.
Lay it out as a fixed-track grid whose column and row counts come from the
cell's own size via a ResizeObserver, always one to two stamps larger than
the cell on both axes, cycling the stamps to fill every slot.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quartz was already replaced by silverbullet-public; its build context moves
to .deprecated/quartz. Hasura and autoheal are removed from the stack, with
their compose services (and Hasura's nginx blocks) kept verbatim under
.deprecated/ alongside a README on how to bring each back.
Removes the /hasura/ route from both nginx templates and the envsubst
allow-list, and updates the docs and comments that referred to the three
services. With autoheal gone nothing restarts an unhealthy container; the
healthchecks are now informational only, and the docs say so.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replaces gin's default logger with a custom formatter:
- /auth/validate-admin (nginx auth_request subrequests — the 5-seconds
flood that is not a user), /auth/refresh and /auth/check no longer log
a line at all on success; their failures are kept.
- Human latency units (15ms, not 153020ns).
- Lines for requests from outside the docker subnet carry the client IP
— the "who is using my site" line — while internal infrastructure
successes stay lean.
- 4xx lines carry " !!", 5xx " !!! SERVER ERROR", both greppable.
The admin panel's Diagnostics log pane gains a "visitors only" filter
that keeps just the IP-suffixed and error lines (on by default).
Co-Authored-By: Claude Code <[email protected]>
scrollTop saturates at scrollHeight - clientHeight, so scaling pos by the
full scrollHeight meant the drift ran out of travel before pos reached 1.
Co-Authored-By: Claude Code <[email protected]>
Two admin-only REST endpoints and a Diagnostics tab in the admin panel:
- GET /admin/config reports which known environment variables are set,
what each is for, and the value only for non-credential vars. Secrets
are never returned, only their presence.
- GET /admin/logs returns the tail of backend/logs/go.log (Gin traffic
plus application lines), bounded to 256 KiB and 500 lines so the read
is constant-size however large the file has grown.
tailLogFile is split out from the handler and tested for the line cap,
the partial-first-line rule, and the empty/missing cases.
Co-Authored-By: Claude Code <[email protected]>
- Backend logs a rate-limited (1/h) "not authenticated" line when a resolver
finds the Spotify client nil instead of silently degrading to null.
- New public-but-gated spotifyNeedsReauth query: false for everyone except
an admin session whose backend has no client.
- The /stp Listening widget offers admins a "Reconnect Spotify" button that
hits /api/spotify/auth and navigates to the returned authorisation URL;
non-admins still see the widget degrade as before.
Co-Authored-By: Claude Code <[email protected]>
nginx's admin auth_request gate bounces /notes/, /sb/ and /hasura/ to
/admin/login?redirect=<path>, but Login.vue completed that with
router.push(). Those paths are other containers, not Vue routes, so the
push matched the catch-all 404 route and the user never left the SPA.
Resolve the destination first: if it lands on the route named "404" there
is no Vue route for it, so use a real document request and let nginx
proxy it. Also reject non-site-relative destinations, since the value
comes straight from the query string.
Co-Authored-By: Claude Opus 5 <[email protected]>
The private channel was a toggle in the composer, which meant private
messages interleaved into the public feed (italic, with a lock icon) and
the send target was a piece of state separate from what you were reading.
Admins now get a Public/Private tab strip. The tab filters the list and
also decides whether a send or an upload is marked private, so you cannot
post into a channel you are not looking at. Non-admins see no tabs and no
change at all — the server already only sends private messages to admin
connections, so this is a view split, not a new trust boundary.
Co-Authored-By: Claude Opus 5 <[email protected]>
Quartz renders the vault but has no write path, so editing a note meant
editing files on the Pi or pushing through git. SilverBullet serves the same
vault as an editable PWA at /sb/, behind the same nginx admin gate /notes/
uses. Quartz stays as the read view; its --serve watcher picks up SilverBullet's
writes, so /notes/ follows within seconds.
The vault is now the `notes` repo rather than `obsidian_vault`, and the
silverbullet-git sidecar commits and pushes what the editor writes while
pulling what Obsidian pushes from elsewhere. The vault's own deploy workflow
has been removed in that repo: it pulled from the old remote and restarted
quartz, and a second git process in the same clone would race the sidecar.
Notes on the configuration:
- Single-space mode, auto-detected because the mounted folder is not empty.
SilverBullet writes no database or metadata into the vault, so the folder
stays plain markdown that quartz and Obsidian still understand.
- /sb/ is the one proxied app whose prefix is NOT stripped. SB_URL_PREFIX=/sb
tells the PWA its own base path and its service-worker scope is built from
that; stripping the prefix serves a blank page with nothing in the log.
- SB_SPACE_IGNORE mirrors quartz's ignorePatterns and must be newline
separated. A comma separated list is accepted silently and does nothing.
- No SB_USER is set, so the container is open to anything reaching it on
app-network. The nginx auth_request gate is the only protection.
- The sidecar runs as uid 1000 to match the vault's ownership, and is a
separate container rather than SilverBullet's own shell backend, which would
hand anyone past the nginx gate command execution inside the container.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BCQFvkvorAw1xwhd5gL2qZ
Correct the dates on the hospitality roles in the live CV template and
name the employers behind each venue (Rose Pubs Group, Greene King,
Benugo), including the second Rose Pubs site, The Montpelier.
Co-Authored-By: Claude Opus 5 <[email protected]>
- backend/services/auth_test.go: token-version normalisation, the
revocation rule, GenerateJWT/VerifyJWT claim handling. The happy path
of AuthenticateTokenWithClaims still needs a DB driver we don't have.
- python/tests: travelodge.py's pure functions and the NDJSON event
contract. pytest is a commented-out dev dep so the image stays slim.
- Timer.vue: the Paused screen now offers Resume, reaching pauseTimer's
previously unreachable un-pause branch.
- travelodge.py: warn when upstream parses but yields nothing usable, so
a field rename is distinguishable from sold-out inventory.
- CoverLetters.vue moved out of views/unused/ — it is live on /cv.
Co-Authored-By: Claude Opus 5 <[email protected]>
Security:
- Token revocation. User gains a TokenVersion counter embedded in both
tokens as a "tv" claim; AuthenticateToken rejects a token whose version
no longer matches the row. Logout bumps it, so logging out now kills
outstanding tokens rather than only clearing cookies. Costs one
primary-key SELECT per authenticated request, which is the price of
having revocation at all.
- Spotify OAuth CSRF. The fixed SPOTIFY_AUTH_STATE constant is replaced by
a per-request one-shot nonce, verified and consumed on callback.
- Private chat attachments. Attachments on private messages are written to
/backend/uploads/private/ and served at /uploads/private/, gated by the
same nginx auth_request admin check used for /hasura/ and /notes/.
Private uploads are rejected from non-admin callers.
- The icecast admin UI (/radio/admin/) is behind the admin gate; listener
traffic is untouched.
- Store caches are mutex-guarded, so -race is clean.
Bugs:
- The email pipeline no longer drops emails permanently on transient
failure. Failures record an attempt counter and are retried up to 3
times; the fetch window rewinds to the oldest retryable email's
ReceivedAt, without which a retry could never re-fetch it.
- Rowing duplicate detection distinguishes ErrRecordNotFound from a real
DB error, so a transient failure no longer causes a duplicate insert
plus a paid Claude call.
- DeletePost propagates its delete error instead of reporting success.
- RecentlyPlayed populates the cache it reads.
- main.go exits non-zero if r.Run fails, so a port conflict is visible.
- Python: the scan truncation flag is set on every deadline path;
timed_out is reported by the worker rather than inferred from the clock;
date validation uses Europe/London rather than server-local time.
- Vue: Time.vue and Radio.vue intervals are cleared on unmount; Feed.vue
guards a missing author; Timer.vue gets an explicit state machine and
compares total elapsed seconds; Elle.vue's comma-operator call and
per-frame console.log are fixed.
Simplification:
- One TTLCache replaces three near-identical cache implementations, with
the differing eviction rules as explicit parameters.
- run_scan's transport index no longer uses one object as both ordering
record and live output; its three phases are separate functions.
- _price_hotels submits all work to a single pool, so the nested-executor
deadlock hazard is gone by construction.
- The NDJSON event generators share one implementation.
- IMAP FETCH responses pair each line with its literal in the type, so
callers no longer hand-skip alternate entries.
- Shared helpers for slice-of-pointers, markdown fences and auth cookies.
- Vue: useHotelSearch, createMirrorStore, useRotation, useCreateForm,
useLinkAttrs, ListWidget and LinkTableItems replace duplicated blocks.
- nginx dev config's duplicated :80/:443 bodies share one partial.
Infra: certbot passes --deploy-hook touching a sentinel that nginx's
watcher reloads on, so renewed certs are served without a restart, and the
watcher also removes the manual restart after first issuance. db is gated
on service_healthy, autoheal is pinned, and the unused envsubst entries
are dropped.
Verified: go build/vet, npx vite build, py_compile, docker compose config
for both overlays, bash -n on all scripts, and an envsubst render of every
nginx template (no leftover placeholders, runtime vars preserved, braces
balanced).
Co-Authored-By: Claude Opus 5 <[email protected]>
Readability pass across all four areas of the stack. Comments explain why
rather than what, concentrated at the points where behaviour is non-obvious:
concurrency, caching, auth, scraping and nginx templating.
Backend: doc comments on every exported declaration across handlers,
services, models and resolvers. Resolver commentary lives inside function
bodies so gqlgen does not strip it on regeneration; schema files use #
comments rather than description blocks so introspection output is
unchanged. Extracted the duplicated auth-cookie blocks into helpers.
Frontend: header comments on every component, store and view, including
STATUS: notes marking which of the parallel/legacy views are still live.
Documented the non-reactive animation-state pattern, the homeData hub and
the WebSocket stale-socket guard. Removed a few dead imports and named the
reconnect-backoff and poll-interval constants.
Python: module and function docstrings covering the Travelodge scraping
contract, the deadline threading, the two-executor concurrency and the
NDJSON streaming protocol.
Infra: header blocks on every compose file, nginx template, Dockerfile and
entrypoint, covering the config selection, envsubst allow-lists, rate-limit
semantics and volume persistence. Hoisted the duplicated envsubst variable
list in nginx/entrypoint.sh.
New: backend/README.md, python/README.md, DEPLOYMENT.md, .env.example,
backend/graph/doc.go. Refreshed vue/README.md. Corrected CLAUDE.md, which
stated a 24h access token where main.go sets 7 days.
No behaviour change. go build/vet, vite build, py_compile and docker
compose config all pass.
Co-Authored-By: Claude Opus 5 <[email protected]>
The chat store bound its handlers to the shared socket ref, so when
Chat.vue reconnected after auth resolved (isAdmin flipping), the old
socket's onclose fired after the new socket existed, nulled it, and
scheduled another reconnect. Two live sockets then pushed every
broadcast, showing each sent message or upload twice.
Handlers now check they belong to the current socket. History is sent
as a single batch event so the message list is replaced in place
instead of being emptied and refilled, which kept unmounting and
reloading every image and jumping the scroll position.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Admins can flag a chat message as private so only other admin
connections receive it, and can delete any message. Admin status is
read from the auth cookies on the WebSocket upgrade request.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Gate the places query behind an authenticated user so the list is no
longer public, and relax the place mutations from admin-only to any
signed-in user. Hide the Places tab and skip the fetch entirely for
anonymous visitors.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UKvnE448c1FeepmxZkTezz
The Places tab already popped its create form up over the page; every other
/stp widget swapped its contents for the form instead, which meant losing
sight of the list you were adding to and a cramped form inside a grid cell.
Extract the Places modal into a shared components/util/Modal.vue (teleported
backdrop, click-outside and Escape to close) and use it for the Feed, Bookmarks,
Favorites, Consumption and Rowing create forms as well. Widget headers keep
their normal titles now that each form carries its own heading in the modal.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KcFtkisHcKJuTZAnv3fVzA
Backend: new Place GORM model (title, location, notes, image, category,
cost, priority, done) with auto-migration, a place.graphql schema, and
resolvers for the places query plus admin-only create/update/delete.
Regenerate gqlgen output against gqlgen v0.17.95, which requires Go 1.26 —
bump go.mod and the builder image to match.
Frontend: a places Pinia store, a CreatePlace admin form, and a
PlacesTable rendered as a new tab in the Collage cell, with inline
done-toggle and delete for admins. Rework the Admin page into a
sidebar-navigated panel layout (picking up the previously unreachable
CreateBookmark form) and give Login proper field labels, submit state,
and error feedback.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KcFtkisHcKJuTZAnv3fVzA
A second "Cheapest night" tab on /hotels scans every candidate check-in
between two dates (filtered by weekday, 1-7 nights, up to ~3 months),
keeps the N cheapest hotels per night, and prices TfL transport once per
unique hotel so the whole range fits in the streaming window.
Backend
- travelodge.py: extract _shortlist/_make_row/_price_hotels/_apply_transport
from run_search; add a 30-minute per-(location, dates, rooms) Travelodge
result cache, a deadline on page fetches, and run_scan (parallel date
fetches with per-date failure isolation, one TfL lookup per hotel).
- main.py: HotelRequestBase shared by search and scan requests,
HotelScanRequest with weekday/range validation, scan event models,
_guarded slot wrapper, POST /hotels/scan/stream (NDJSON).
- nginx: the streaming location now matches /py/hotels/(search|scan).
Frontend
- Split CheapHotels.vue into SingleStayPanel, CheapestNightPanel,
SharedFields, HotelRows, a shared form composable, stream/format helpers
and hotels-shared.css; shared fields keep their values across tabs.
- Vite dev server proxies /py to the Python API.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H5P3C1HbbEwLZEYsjwr7uV
Backend: fetch Travelodge pages in parallel batches, price TfL journeys
from a worker pool throttled to the anonymous 50/min limit (500/min with
TFL_APP_KEY), cache TfL journeys for two hours, and expose a streaming
NDJSON endpoint (/hotels/search/stream) that sends the hotel list first
and one line per hotel as fares arrive. A 20-hotel search now takes
about 10 seconds instead of minutes. Every hotel also gets a cycling
time from the origin (TfL cycle routing with an app key, otherwise a
distance estimate).
Frontend: consume the stream so hotels appear immediately with a
progress bar, show three picks (best value, cheapest room, quickest
cycle) instead of one, add a rank-by toggle (stay + transport, stay
only, cycle time, travel time) and a Cycle column, and raise the hotel
cap to 40.
Nginx: match both search routes and disable proxy buffering and gzip so
the stream reaches the browser as it is produced.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dphx7LL5JC8dAFYU7MMpoA
- Replace searxng and open-webui with a FastAPI `python/` service proxied
at /py/ (Travelodge hotel search, rate-limited in nginx)
- Add CheapHotels view and CreateToggle component
- Move design tokens into Tailwind @theme in styles.css and migrate
components/views to utility classes; CVLayout re-points tokens for light theme
- Update README, CLAUDE.md, and .gitignore accordingly
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dphx7LL5JC8dAFYU7MMpoA