Skip to content

default sqlite version#3

Merged
newbe36524 merged 1 commit intomainfrom
feature/defaultsqlite
Feb 8, 2026
Merged

default sqlite version#3
newbe36524 merged 1 commit intomainfrom
feature/defaultsqlite

Conversation

@newbe36524
Copy link
Contributor

@newbe36524 newbe36524 commented Feb 8, 2026

Summary by CodeRabbit

  • New Features

    • Added SQLite as a lightweight database option with persistent data storage at /app/data.
    • Updated image tag default from "latest" to "0" (latest stable version).
    • Quick-Start profile now uses SQLite by default with no PostgreSQL configuration.
  • Documentation

    • Added comprehensive proposal and specification documentation for SQLite integration and image tag policy.
  • Bug Fixes

    • Updated favicon from SVG to PNG/X-icon format.
  • Tests

    • Updated test expectations to reflect new SQLite defaults and tag policy.

@coderabbitai
Copy link

coderabbitai bot commented Feb 8, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The changes introduce SQLite as a database option, update the default image tag from "latest" to "0", modify configuration defaults, enhance the UI to support SQLite selection, add internationalization support, and update comprehensive test coverage to validate the new functionality.

Changes

Cohort / File(s) Summary
Type System & Configuration
src/lib/docker-compose/types.ts, src/lib/docker-compose/defaultConfig.ts
Added 'sqlite' to DatabaseType union; updated default imageTag to '0' and databaseType to 'sqlite'.
Generator & Service Logic
src/lib/docker-compose/generator.ts
Enhanced buildAppService() to support SQLite provider with connection string; added hagicode_data volume for all database types; introduced conditional depends_on for internal PostgreSQL; updated volumes section to always include hagicode_data.
State Management & Persistence
src/lib/docker-compose/slice.ts
Added CONFIG_VERSION guard for localStorage cache invalidation; implemented version check on initialization; added automatic databaseType reset to sqlite when profile is quick-start; persisted version on config updates.
UI Components & Forms
src/components/docker-compose/ConfigForm.tsx
Replaced imageTag Select with free-text Input; expanded databaseType options to include SQLite; added conditional rendering for SQLite information block; updated logic to handle three-way database selection.
Internationalization
src/i18n/locales/en-US.json, src/i18n/locales/zh-CN.json
Updated quickStartDescription to mention SQLite; added new keys: sqliteDatabase, sqliteDescription, sqliteDataLocation with English and Chinese translations.
Test Suite Updates
src/lib/docker-compose/__tests__/__verify__/*.test.ts, src/lib/docker-compose/__tests__/bdd/*.test.ts, src/lib/docker-compose/__tests__/unit/generator.test.ts, src/lib/docker-compose/__tests__/helpers/config.ts
Updated test expectations to reflect SQLite defaults; changed imageTag assertions from 'latest' to '0'; added validations for hagicode_data volume presence and postgres_data absence; updated mock config defaults; adjusted postgres service expectations for quick-start scenarios.
Documentation & Proposals
openspec/changes/archive/2026-02-08-image-tag-and-sqlite-support/proposal-files/proposal.md, openspec/changes/archive/2026-02-08-image-tag-and-sqlite-support/proposal-files/specs/docker-compose-generator/spec.md, openspec/changes/archive/2026-02-08-image-tag-and-sqlite-support/proposal-files/tasks.md
New proposal documentation detailing SQLite integration strategy, volume management, image tag policy changes, UI behavior modifications, and comprehensive implementation checklist.
Web Assets
index.html
Changed favicon link type from image/svg+xml to image/x-icon and updated href to /favicon.ico.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 A rabbit hops through SQLite's gate,
Abandoning "latest" for tag "0" so great,
With volumes of data in /app/data we store,
Quick-start now lighter than ever before! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/defaultsqlite

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

✅ CI check result: Passed

Workflow: CI
Status: success
Branch: feature/defaultsqlite
Commit: 0b7775b

All tests passed and build completed successfully.

@newbe36524 newbe36524 merged commit 22256b3 into main Feb 8, 2026
3 of 4 checks passed
@newbe36524 newbe36524 deleted the feature/defaultsqlite branch February 8, 2026 06:45
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