vault-link/sync-server
Andras Schmelczer 7dc0f4316e
Some checks failed
Check / build (pull_request) Has been cancelled
E2E tests / build (pull_request) Has been cancelled
Publish CLI / publish-docker (pull_request) Has been cancelled
Publish server Docker image / publish-docker (pull_request) Has been cancelled
Remove history-ui workspace and supporting server endpoints
Splits history-ui out of asch/fix-everything into its own branch. This
commit removes from asch/fix-everything: the Svelte workspace under
frontend/history-ui, the three dedicated server endpoints (list_vaults,
fetch_vault_history, fetch_document_versions) and their router wiring,
the SPA asset embedding in index.rs, the rust-embed/mime_guess deps,
the build.rs dist-dir creation, the matching response types and
database methods (list_vaults, get_vault_stats, get_vault_history,
get_document_versions, VaultStats, VaultHistoryRow), and the TS mirror
types in sync-client.

Note: Cargo.lock, frontend/package-lock.json, and sync-server/.sqlx/
will need regeneration via `cargo build`, `npm install`, and
`cargo sqlx prepare` to clean up stale entries. The history-ui mentions
in CLAUDE.md and scripts/update-api-types.sh predate this branch (also
present on main) and were left as-is.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 11:44:05 +01:00
..
src Remove history-ui workspace and supporting server endpoints 2026-05-09 11:44:05 +01:00
.dockerignore Extract reconcile (#85) 2025-07-13 11:06:42 +01:00
.env Extract reconcile (#85) 2025-07-13 11:06:42 +01:00
build.rs Remove history-ui workspace and supporting server endpoints 2026-05-09 11:44:05 +01:00
Cargo.lock claude 2026-05-05 21:50:27 +01:00
Cargo.toml Remove history-ui workspace and supporting server endpoints 2026-05-09 11:44:05 +01:00
config-e2e.yml eh 2026-04-28 22:20:31 +01:00
Dockerfile Bump rust from 1.90-slim-trixie to 1.91-slim-trixie in /sync-server (#156) 2025-11-02 17:52:18 +00:00
README.md Add migration docs 2025-10-19 11:53:58 +01:00
rust-toolchain.toml Bump rust and node 2026-03-25 19:59:19 +00:00

Sync server

Creating/resetting the Database for development

rm -rf db.sqlite*
sqlx database create --database-url sqlite://db.sqlite3
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3
cargo sqlx prepare --workspace

Updating the DB schema through a migration

sqlx migrate add --source src/app_state/database/migrations <name>
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3