Commit Graph

13 Commits

Author SHA1 Message Date
syntaxbullet
c7aa5a1c65 feat: add live Discord sharing functionality with dynamic habit progress images
- Implemented live card image generation for user habits using canvas.
- Created API endpoints for starting and managing live Discord sharing sessions.
- Added tests for live Discord sharing to ensure functionality and reliability.
- Introduced CSS styles for the live Discord sharing interface.
- Enhanced error handling and state management for Discord message updates.
2026-09-07 11:36:47 +02:00
syntaxbullet
00729096bf feat: add theme provider and control components for light/dark mode
- 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.
2026-09-05 10:07:28 +02:00
syntaxbullet
16d92f171c test: verify request references on database failures 2026-09-04 18:38:58 +02:00
syntaxbullet
ecc2620a4c feat: add Home page with user dashboard and habit tracking features
- Implemented Home component with user authentication and loading states.
- Created Welcome component for unauthenticated users with a sign-in option.
- Developed Dashboard component to display user's habits and progress.
- Added functionality for habit management, including adding, updating, and deleting habits.
- Integrated HabitChart and HabitHistory components for visual representation of habits.
- Introduced sharing functionality for progress via Discord integration.

feat: establish Discord sharing configuration and routes

- Added DiscordSharingConfig type and readDiscordSharingConfig function for environment variable management.
- Created sharing contracts for input validation and data structure.
- Implemented sharing routes for previewing and sending progress images to Discord.
- Added tests for sharing routes to ensure authentication and proper error handling.
2026-09-04 17:48:54 +02:00
syntaxbullet
084603bb6e Add new styles for home and landing pages
- 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.
2026-09-04 11:50:24 +02:00
syntaxbullet
f520d73bbc fix(habits): surface impossible schedules and harden calendar edge cases 2026-09-04 09:51:03 +02:00
syntaxbullet
adb1cf43c1 fix(api): serialize dated writes after request body parsing 2026-09-04 09:49:00 +02:00
syntaxbullet
18a1af9dfc fix(habits): preserve task state and original occurrence expiry 2026-09-04 09:46:22 +02:00
syntaxbullet
724b1423eb fix(api): preserve omitted fields in task and chart patches 2026-09-04 09:44:22 +02:00
syntaxbullet
ff7ec68262 feat(calendar): add Nivo data adapter and verify durable API behavior 2026-09-04 09:16:09 +02:00
syntaxbullet
9a7180ce78 feat(habits): add opt-in partial count carryover with daily reset defaults 2026-09-04 09:11:11 +02:00
syntaxbullet
e9cc591576 feat(api): implement authenticated habit tracking and combined calendars 2026-09-04 09:08:50 +02:00
syntaxbullet
7fefe0c7d8 feat(db): add versioned habits and calendar domain contracts 2026-09-04 09:00:21 +02:00