Skip to content

Task 005: Remove dead setup-database flow - #10

Merged
Igloczek merged 2 commits into
masterfrom
task/005-remove-setup-database-flow
Jun 30, 2026
Merged

Igloczek merged 2 commits into
masterfrom
task/005-remove-setup-database-flow

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/005-remove-setup-database-flow.md from the ponytail audit backlog.

Goal

Delete the database-backend selection UI and server bootstrap that never runs on fresh installs.

Scope

  • Delete src/server/setup-database.ts.
  • Delete src/pages/SetupDatabase.vue.
  • Remove /setup-database route from src/router.ts and setup-database branch in src/pages/Entry.vue.
  • Remove setupDatabase.start() / isNeedSetup() wiring from src/server/server.ts.
  • Remove /setup-database-info stub from src/server/bun-http-server.ts if only used by this flow.
  • Do not remove first-user setup (needSetup when user table is empty) — that stays.

Acceptance criteria

  • SetupDatabase class and SetupDatabase.vue are deleted.
  • Fresh install goes straight to DB connect + normal setup page (no users) or dashboard.
  • First-user setup (Setup.vue) still works when user count is 0.
  • bun run lint passes.
  • bun run test:backend passes.
  • bun run test-e2e passes (or targeted setup e2e if one exists).

Depends on

Task 004 (db-config removal).

Verification

bun run lint
bun run test:backend
bun run test-e2e
rg "setup-database|SetupDatabase" src

Audit reference

Finding #8 — setup-database bootstrap.

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Deleted dead setup-database flow and UI. First-user setup unchanged.

Lean already. Ship.

9 files changed, 50 insertions(+), 450 deletions(-)

@Igloczek
Igloczek force-pushed the task/005-remove-setup-database-flow branch from f4a16fc to 1917116 Compare June 30, 2026 11:44
Igloczek added 2 commits June 30, 2026 13:52
SQLite-only installs no longer need a database-backend selection step.
Delete SetupDatabase server bootstrap and Vue page, remove related
routes, API stubs, and socket wiring. Fresh installs connect directly
via Database.connect(), which auto-writes sqlite db-config.json.
Rebuild frontend without SetupDatabase.vue so the embedded asset
bundle matches the current dist output.
@Igloczek
Igloczek force-pushed the task/005-remove-setup-database-flow branch from 1917116 to 6db2c36 Compare June 30, 2026 11:56
@Igloczek
Igloczek merged commit 582efd2 into master Jun 30, 2026
1 check passed
@Igloczek
Igloczek deleted the task/005-remove-setup-database-flow branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant