feat: persist shared demo routes in PostgreSQL #59
+817
−1
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.
Routes currently live in browser localStorage. This adds PostgreSQL persistence and a GraphQL contract for creating and listing routes for the existing shared demo account (
ola-normann).createRoute(input: CreateRouteInput!): SavedRoute!and paginatedmyRoutes, composed in a separate GraphQL module.Validation: backend typecheck and build pass; all 65 backend tests pass, including 8 new route tests covering migration reversal, ordering, owner filtering, pagination, constraints, rollback and API recreation. Targeted Prettier and git diff checks pass.
Part of #23. This draft is ready for discussion of the route contract with Aleks and Kasper. The current frontend still uses localStorage. After review/merge, Aleks coordinates the VM migration and backend deployment, followed by frontend integration. All visitors share the demo account; individual-user authentication and private routes are later work. No live database changes have been made.