Add authenticated circuit save and load - #34
Merged
Merged
Conversation
Add the Bun auth sidecar, isolated Drizzle auth schema, generated migration, credentialed CORS, proxy authorization endpoint, and Svelte login, registration, and logout flows. AI-Assisted-By: OpenAI Codex <https://openai.com/codex/>
Bind the Bun service to loopback, trust the edge client IP headers, and record the systemd and Caddy deployment configuration. AI-Assisted-By: OpenAI Codex <https://openai.com/codex/>
AI-Assisted-By: OpenAI Codex <https://openai.com/codex/>
Fix cross-origin session persistence for the Tauri and local web clients, add owner-scoped circuit CRUD, and expose save actions in the app. AI-Assisted-By: OpenAI Codex <https://openai.com/codex/>
Persist recognized circuits for signed-in users and order saved-circuit summaries by an explicit last-opened timestamp. AI-Assisted-By: OpenAI Codex <https://openai.com/codex/>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
EnderHubris
approved these changes
Sep 20, 2026
This branch was successfully deployed
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
Adds account-backed persistence for circuits, plus the auth flow needed to reach it.
LoginPageandRegisterPage, session hydration inauthClient, and a hardened auth sidecar deployment pointed at the deployed API.api_server/src/circuits.tsserves list, create, open, update, and delete over/api/circuits, scoped to the session owner.src/lib/circuitApi.tsandsrc/lib/stores/savedCircuits.tsdrive a save state machine, surfaced as a Save button inTopNavandMobileTopBarand aSavedCircuitsPagelisting recently opened circuits.0001through0003and a substantially reduceddb/schema.ts, withreference/postgresql.mdandreference/schema.sql.mdupdated to match.Known gaps
Two endpoints exist server-side but are not reachable from the UI yet:
activeSavedCircuitNameis never set from any component, so every save is stored asUntitled circuit.DELETE /api/circuits/:idis implemented, butcircuitApi.tshas no client function and the saved list has no delete control.Risks
The branch is 46 commits behind
main, so expect conflicts on merge. The schema changes remove a large amount ofdb/schema.tsand the older circuit modules underapi_server/src/circuit/; those deletions should be reviewed against whatever has landed onmainsince the merge base.Validation
Not performed in this session. No test suite was run and the flow was not exercised against a live API.
AI assistance