Commit Graph

349 Commits

Author SHA1 Message Date
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
131dfe793b improve LocationDeleteForm toggle layout
- Center the delete toggle horizontally within the form using justify-center
- Add consistent spacing between label and toggle input with gap-4
- Improves visual balance and readability of the delete confirmation form

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 11:05:37 +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
2cf338c50a improve development authentication setup
- Replaced manual code commenting with environment variable controlled mock auth
- Added development env vars to VS Code launch.json for automatic mock authentication
- Removed unused LinkedIn provider import
- Authentication now automatically uses mock session when launched via VS Code debug
- Zero security impact on production (env vars only exist during debug sessions)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 10:47:55 +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
eef93528e3 set current year as default active year
Changes default year from first available year in database to current year (Date.now) when no year parameter is provided in URL.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 10:10:45 +02:00
491b11e86d fixing types 2025-07-23 13:40:14 +02:00
36f2f74e64 implemented scanning PDF docs for multiple 2D codes 2025-07-23 13:12:13 +02:00
87d6928a97 BugFix: fixing types 2025-01-13 16:32:38 +01:00
103e371d5f mongo projekcija proširena property-em "hasAttachment" 2025-01-13 16:05:15 +01:00
492750df92 komentiranje debug koda 2024-12-14 09:59:47 +01:00
86b6c777c4 opzimizacija: stranica za prikaz godine je dohvaćala i QR kodove = slow 2024-12-14 09:56:50 +01:00
4a7f899103 za potrebe testiranja podešen konkretan userID 2024-12-14 09:56:14 +01:00
9c9ddc28c1 povećavanje UI elemenata na view ekranu 2024-12-14 09:12:03 +01:00
40e421a32a podešen styling ikone 2024-12-14 09:04:15 +01:00
74a9229ffa link ikona zamijenjena sa share ikonom 2024-12-14 09:01:09 +01:00
4ab61f9917 implementiran share by link 2024-12-13 17:50:12 +01:00
439de9d305 implementirano kopiranje linka 2024-12-13 15:38:48 +01:00
3799baa712 BugFix: attachment route moved under [locale] 2024-03-12 09:05:43 +01:00
dc5e25639c changed default language to croatian 2024-03-07 13:20:49 +01:00
a4b687d1f7 implemented webview detection & warning 2024-03-07 13:19:19 +01:00
78f8d1e1c3 BugFix: barcodes were not reset while copying to another month 2024-02-29 08:55:38 +01:00
c4a621e503 disabled linkedin provider 2024-02-19 12:49:51 +01:00
160c4f00f5 BugFix: delete button did not use locale path prefix 2024-02-19 10:21:25 +01:00
dead2e1200 adding location set to available in every month 2024-02-19 10:19:11 +01:00
7197d1de5f fix: LinkedinProvider config was incorrect 2024-02-19 09:42:44 +01:00
b66d911e11 fixed SingInButton spacing 2024-02-19 09:32:38 +01:00
3ec395dfd3 updated version in compose file 2024-02-19 09:14:29 +01:00
89eb50b61a supported login via linkedin 2024-02-19 09:11:59 +01:00
52c5672662 LocationCard: added visible tooltip 2024-02-17 11:12:12 +01:00
188505aacf AddMonth/LocationButton: fixed tooltip width 2024-02-17 10:55:08 +01:00
99ee9594ad fixed AddLocationButton toltip translation 2024-02-17 10:35:48 +01:00
440ab6a815 Fixed LocationCard translation 2024-02-17 10:34:34 +01:00
f7b92931a9 i18n: fixing form validaton messages 2024-02-17 10:17:17 +01:00
fc6243f9b8 i18n: minor fixes 2024-02-17 10:14:46 +01:00
db42fa29dd BugFix: switching locale for home page did not work 2024-02-17 09:48:27 +01:00
cc8c6968f6 BugFix: restored location forms 2024-02-17 09:46:36 +01:00
fcd94408fe BugFix: fixed translation formating 2024-02-17 09:41:35 +01:00
b6a9d14c61 renamed manifest file 2024-02-17 09:14:06 +01:00
74fbfef125 implemented web manifest 2024-02-17 09:01:01 +01:00
8145f149aa added opengraph metadata 2024-02-17 08:51:36 +01:00
1c66940287 added language switcher 2024-02-17 08:32:53 +01:00
4f6d31a7c1 moved page under locale 2024-02-17 07:44:22 +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
a8e40dd759 attached i18n to html language 2024-02-16 17:21:38 +01:00
3240f746d1 refactor: moving locale definition 2024-02-16 17:02:33 +01:00