Commit Graph

18 Commits

Author SHA1 Message Date
a6d0cc77ac add update scope options for location editing
- Added radio button group to LocationEditForm with three update modes:
  1. Current month only (default) - updates specific location
  2. Current and all future months - updates current and subsequent months
  3. All months - updates all locations with same name across all time periods
- Enhanced updateOrAddLocation action with smart update logic based on scope
- Uses name-based matching to find related locations across months
- Added compact radio button styling with reduced spacing and indentation
- Added translations for update scope options in Croatian and English
- Maintains backward compatibility with existing single-location updates

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 11:42:48 +02:00
80e30deace add conditional warning for destructive delete operation
- Added React state to track toggle status and show warning only when enabled
- Implemented modern custom border warning style with left red border and subtle background
- Added responsive width constraints (max-w-[24rem]) and word wrapping for proper layout
- Warning includes ⚠️ emoji and clear messaging about irreversible operation
- Fixed JSON syntax errors in translation files (replaced HTML entities with escaped quotes)
- Enhanced translations: "Also delete" phrasing and detailed warning messages
- Warning appears dynamically when bulk deletion option is activated

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 11:24:09 +02:00
1eac116a55 add option to delete location in all subsequent months
- Added toggle in LocationDeleteForm for deleting locations from future months (disabled by default)
- Modified deleteLocationById action to support batch deletion across subsequent months
- When enabled, deletes all locations with same name in current and future months/years
- Only deletes user's own locations with proper data isolation
- Added translations for toggle text in Croatian and English
- Removed unused imports and variables to fix TypeScript warnings
- Uses efficient MongoDB deleteMany operation for bulk deletions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 11:01:16 +02:00
78a6c18ba5 add option to create location in all subsequent months
- Added toggle in LocationEditForm for adding locations to future months (disabled by default)
- Modified updateOrAddLocation action to support batch creation across subsequent months
- Only creates locations in months where no location with same name exists
- Added translations for toggle text in Croatian and English
- Fixed unused variable warning in deleteLocationById
- Improved auth.ts development comments for clarity

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 10:27:31 +02:00
36f2f74e64 implemented scanning PDF docs for multiple 2D codes 2025-07-23 13:12:13 +02:00
4ab61f9917 implementiran share by link 2024-12-13 17:50:12 +01:00
a4b687d1f7 implemented webview detection & warning 2024-03-07 13:19:19 +01:00
f2832d9f10 fixed <br/> in translations 2024-02-29 08:54:06 +01:00
4c1ddeb7ca BugFix: translations used incorrect label 2024-02-17 10:50:28 +01:00
440ab6a815 Fixed LocationCard translation 2024-02-17 10:34:34 +01:00
fcd94408fe BugFix: fixed translation formating 2024-02-17 09:41:35 +01:00
327bc99d35 completed HR translation 2024-02-17 07:39:58 +01:00
30b3da9c31 i18n support added to all form validations 2024-02-17 07:28:47 +01:00
1da6479c80 i18n enabled for bill form validation 2024-02-16 22:25:09 +01:00
d30bd50e1a enabled i18n for all components 2024-02-16 21:56:41 +01:00
017d52f86e localized login screen 2024-02-16 18:03:28 +01:00
bc23025575 localized page footer 2024-02-16 17:40:45 +01:00
64bd026d46 configured localization 2024-02-16 15:46:48 +01:00