- Implemented ThemeProvider to manage theme state and preferences.
- Added ThemeControl component for users to switch between system, light, and dark themes.
- Integrated localStorage for theme preference persistence.
- Updated document styles based on theme changes.
test: add tests for permanent deletion of habits and related records
- Created tests to ensure permanent deletion of habits removes all dependent records.
- Verified that deletion requires ownership, authentication, and checks for archived habits.
- Added tests to confirm rollback behavior on deletion failures.
test: add tests for habit palette and progress card functionality
- Implemented tests for habit color progression and theme-based color shading.
- Added tests for progress card calculations and calendar display logic.
feat: define theme types and preferences
- Introduced Theme and ThemePreference types for better type safety.
- Created utility functions for resolving theme based on user preference and system settings.
- Defined theme palettes for light and dark modes to ensure adequate contrast.
- Created home.css with comprehensive styles for the home page layout, including typography, buttons, and responsive design adjustments.
- Created landing.css to style the landing page, focusing on typography, layout, and responsive behavior for various screen sizes.
Add persistent user and session storage, protected profile requests, and React sign-in controls. Capture and preserve each user's timezone, and load development and production configuration before migrations and server startup.
Configure Bun SQLite with WAL mode, foreign keys, and a shared database path for development and production.
Add migration commands and startup migration handling, check database connectivity in the health endpoint, and document configuration while excluding local database files from Git.