Commit Graph

115 Commits

Author SHA1 Message Date
Daniel Volz 0ad98c26fc fix: ensure safe access to takenBy property to prevent errors 2025-12-28 19:55:33 +01:00
Daniel Volz 69ca8fd3ba feat: implement per-person dose tracking and update migration process
- Enhanced the database migration process to ensure compatibility with existing production databases, including detailed steps for adding/modifying columns.
- Updated the client-side logic to support tracking doses taken by multiple users, including changes to the data structure and UI components.
- Added new styles for per-person dose tracking to improve user experience and visual clarity.
2025-12-28 19:47:14 +01:00
Daniel Volz c7ac7fbf75 feat: remove icons from stock calculation mode settings for cleaner UI 2025-12-28 18:46:38 +01:00
Daniel Volz 0a85b1725a feat: add form state management and reset functionality in medication editor 2025-12-28 18:41:22 +01:00
Daniel Volz 618190d20d feat(i18n): add pill emoji to medication reminder titles for better visibility 2025-12-28 18:27:32 +01:00
Daniel Volz 4a6aab338f feat: migrate taken_by to taken_by_json for multi-person support
- Added `taken_by_json` column to `medications` table to store an array of names.
- Updated migration scripts to convert existing `taken_by` data into JSON format.
- Modified backend routes to handle the new `taken_by_json` structure, including parsing and filtering logic.
- Updated frontend to support multi-value input for "Taken By" using tags.
- Adjusted validation and state management for the new array format in forms.
- Enhanced UI for displaying multiple names and added autocomplete suggestions for input.
- Updated translations for input placeholders to reflect new functionality.
- Added CSS styles for tag input components.
2025-12-28 18:22:32 +01:00
Daniel Volz abffd66e9c feat: add expiration date to share tokens and enhance error handling for expired links 2025-12-28 17:47:49 +01:00
Daniel Volz 0e52a03f7a feat: add stock calculation mode to user settings with automatic and manual options 2025-12-28 15:03:24 +01:00
Daniel Volz 78ee668c8b feat: enhance medication reminder system with improved notifications and user settings updates
- Added new translation keys for empty and low stock notifications in both English and German.
- Implemented user authentication for planner routes and improved user settings loading.
- Separated empty and low stock medications for clearer notifications.
- Enhanced email notifications with detailed alerts for empty and low stock medications.
- Updated user settings in the database when reminders are sent for both intake and stock notifications.
- Improved form validation in the frontend with character limits and error messages.
- Added CSS styles for form validation feedback and character count display.
2025-12-28 14:42:51 +01:00
Daniel Volz 30156ebd60 feat(ui): increase notes character limit to 2000 and add auto-resize functionality for textareas 2025-12-28 13:51:57 +01:00
Daniel Volz 47ae762e72 feat(ui): improve table layout with left-aligned text and status chips 2025-12-28 13:26:14 +01:00
Daniel Volz fad92a0b24 feat(ui): enhance email status bar layout with improved styling and responsiveness 2025-12-28 13:14:47 +01:00
Daniel Volz b539738d1e feat(ui): adjust button styles for better accessibility and consistency 2025-12-28 13:08:54 +01:00
Daniel Volz e386ce1fcb feat(ui): enhance tabs styling with improved hover effects and primary state 2025-12-28 12:56:32 +01:00
Daniel Volz 8fcf96997b feat(ui): refine user menu button styles and add dropdown item danger state 2025-12-28 12:53:37 +01:00
Daniel Volz fcd8d0da14 feat(ui): implement modal background scroll prevention and enhance button styles 2025-12-28 12:47:54 +01:00
Daniel Volz d60aeff7bd feat(ui): enhance medication detail modal layout and improve scrolling behavior 2025-12-28 12:07:36 +01:00
Daniel Volz 415dd87117 feat(ui): improve modal footer layout and enhance mobile form styling 2025-12-28 11:56:55 +01:00
Daniel Volz fb1732bd4a feat(ui): update medication icons alignment and styling for improved mobile display 2025-12-28 11:23:57 +01:00
Daniel Volz 02caa0619e feat(ui): enhance medication display layout and improve responsiveness in App component 2025-12-28 11:03:33 +01:00
Daniel Volz 0ecb892a15 feat: add Escape key handling to close modals and dialogs in App and UserProfile components 2025-12-28 03:07:08 +01:00
Daniel Volz f3da765f7c feat(db): add new columns to medications and users tables for enhanced data tracking
feat(oidc): refactor setAuthCookies to use centralized cookie options for consistency
feat(nginx): update configuration to pass cookies through proxy for improved session handling
2025-12-28 02:32:45 +01:00
Daniel Volz 17a535866b feat(oidc): handle missing sub claim in token and redirect with error 2025-12-28 02:15:26 +01:00
Daniel Volz 5ad260a465 feat(auth, oidc): add user avatar URL to auth response and update redirect URLs to use frontend URL 2025-12-28 02:08:34 +01:00
Daniel Volz 3ffdb8a5fe feat(oidc): implement OIDC authentication flow and user management 2025-12-28 01:13:03 +01:00
Daniel Volz bd5c864e84 feat: add user avatar functionality and update related routes
- Implemented avatar upload and deletion in the Auth context.
- Updated UserProfile component to handle avatar display and actions.
- Modified backend routes to return anonymous user ID when auth is disabled.
- Added avatar_url column to users table in the database.
- Enhanced UI for user menu and profile modal to support avatar display.
- Updated translations for new avatar-related strings.
- Improved stock status calculation for medications in the planner.
2025-12-28 00:43:45 +01:00
Daniel Volz be68fb5dad feat(schedule): add schedule header with title and tooltip for configuration hints 2025-12-27 23:21:02 +01:00
Daniel Volz 27af4dd14b feat(edit-modal): implement mobile edit modal for medication with responsive design 2025-12-27 23:15:14 +01:00
Daniel Volz d378b081c6 feat(med-detail-footer): enhance layout and styling for footer actions and buttons 2025-12-27 22:36:50 +01:00
Daniel Volz a3cb24ccfe feat(settings): improve email and push notification settings validation and state management 2025-12-27 22:32:44 +01:00
Daniel Volz d2324640f4 feat(past-days): enhance past days toggle with missed doses indication and styling 2025-12-27 22:11:51 +01:00
Daniel Volz cfb8494be3 feat(auth): add 'remember me' functionality and token refresh logic 2025-12-27 21:59:21 +01:00
Daniel Volz 65f007732a feat(stock-status): implement stock status indicators for medication days and update styles 2025-12-27 21:46:04 +01:00
Daniel Volz 57377aeead feat(blister-form): update blister form structure to include separate start date and time fields 2025-12-27 15:32:47 +01:00
Daniel Volz 6b6c20bdc3 feat(med-details): enhance medication detail display with current stock and package details 2025-12-27 15:19:14 +01:00
Daniel Volz 9ccb5b1f0f Add past days toggle and update terminology for blisters
- Added translations for showing/hiding past days and past days count in German and English.
- Renamed "slices" to "blisters" in both translation files.
- Updated CSS styles to reflect the change from slices to blisters, including layout and hover effects.
- Introduced new styles for past days toggle button and past day blocks.
2025-12-27 15:01:54 +01:00
Daniel Volz d69c38e141 feat(image-upload): add pending image state and preview for medication creation 2025-12-27 14:36:23 +01:00
Daniel Volz b66b750be9 feat(docker): streamline entrypoint script by removing redundant checks and improving write access testing 2025-12-27 14:11:46 +01:00
Daniel Volz 7713ddbbde feat(docker): improve entrypoint script with enhanced mount info and write test feedback 2025-12-27 13:53:50 +01:00
Daniel Volz fe1f83e305 feat(docker): enhance entrypoint script with ownership checks and provide fix suggestion for permission issues 2025-12-27 13:36:53 +01:00
Daniel Volz 3d497ea6a8 feat(db): add Client type to database client declaration for improved type safety 2025-12-27 13:12:52 +01:00
Daniel Volz f7bad32d68 feat(docker): enhance entrypoint script with gosu for privilege handling and improve healthcheck command 2025-12-27 12:48:19 +01:00
Daniel Volz bedf90d316 feat(docker): add PUID and PGID environment variables for user/group ID handling in Docker setup 2025-12-27 12:39:32 +01:00
Daniel Volz d39ab010a0 feat(docker): update Dockerfile for improved security and add entrypoint script for permission handling 2025-12-27 08:54:54 +01:00
Daniel Volz dd943f7fb2 feat(auth): implement default user ID handling when auth is disabled across routes 2025-12-27 01:30:23 +01:00
Daniel Volz 89d0c3f3f1 feat(auth): enhance error handling in requireAuth and add authError state in AuthProvider 2025-12-27 00:59:47 +01:00
Daniel Volz 777f49df16 feat(database): add initial table creation for users, medications, and settings in runMigrations 2025-12-27 00:46:32 +01:00
Daniel Volz 64026ab658 feat(schedule): prevent resetting taken doses on error and refine future dose logic 2025-12-27 00:14:40 +01:00
Daniel Volz f34c2c9578 feat(schedule): enhance dose button styles for better user experience and add visual cues for future doses 2025-12-26 23:54:15 +01:00
Daniel Volz c0959f681a feat(share): update description for sharing schedule to include dose tracking visibility 2025-12-26 23:18:18 +01:00