Commit Graph

626 Commits

Author SHA1 Message Date
85c69756b7 feat: add MCP configuration for Serena and Context7 servers 2025-08-29 22:19:08 +02:00
55f64ebca5 chore: add Serena AI assistant entries to .gitignore
Add .serena/ directory and *.serena-memory files to prevent
tracking of AI assistant configuration and memory files.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 22:17:55 +02:00
8b845261d2 fix: prevent empty file from overwriting existing bill attachments
Fix updateOrAddBill to check file size before processing attachment,
preventing empty blob files from overwriting existing attachments
when updating bill properties.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 22:12:23 +02:00
71631ba7ce Merge branch 'master' into develop 2025-08-29 21:45:15 +02:00
044645a1ca restore: replace dual flags with single --do-pre-backup=true/false parameter 2025-08-24 08:54:45 +00:00
b4a6b8d4d3 restore: add interactive pre-backup prompt with automation flags 2025-08-24 08:49:21 +00:00
99f65b1433 restore: store pre-restore safety backups in backups/ directory 2025-08-24 08:46:22 +00:00
9c29838092 backup/restore: use MONGO_SERVICE variable for service name 2025-08-24 08:29:01 +00:00
64496b8cd8 restore: add restore.sh script to restore mongo backups by timestamp 2025-08-24 08:22:23 +00:00
dda78da815 backup: write backups to backups/ and rotate (keep 7), gitignore backups/ 2025-08-24 08:13:57 +00:00
8c46cd5e47 gitignore: ignore mongo-volume backup tarballs 2025-08-24 08:10:52 +00:00
e7ce372e5d backup: append timestamp to mongo-volume backup filename 2025-08-24 08:08:40 +00:00
3e3b03fb45 Merge branch 'hotfix/1.37.1' into develop 2025-08-11 14:19:38 +02:00
4fd65fe3a7 Merge branch 'hotfix/1.37.1' 2025-08-11 14:19:38 +02:00
af94917ebb fixing deploy script 2025-08-11 14:19:30 +02:00
e65fa6a620 Merge branch 'release/1.37.0' 2025-08-11 14:13:11 +02:00
511c9c6529 simplified build script 2025-08-11 14:12:56 +02:00
30e18f88a9 Merge branch 'feature/improving-build-script' into develop 2025-08-11 14:10:56 +02:00
e41f322e20 chore(deploy): use IMAGE_VERSION env var and read version from package.json 2025-08-11 14:10:29 +02:00
3e3b4e2834 Merge branch 'hotfix/1.36.2' into develop 2025-08-11 13:59:08 +02:00
088ea276c7 Merge branch 'hotfix/1.36.2' 2025-08-11 13:59:07 +02:00
daa9b2a134 locationAction: query optimization 2025-08-11 13:58:57 +02:00
fade52a49f billActions: projection optimization 2025-08-11 13:57:36 +02:00
aab0afd045 locationAction: fixed optional form fields 2025-08-11 13:57:07 +02:00
21da2f0d49 optimization: projecting only what's needed 2025-08-11 13:38:59 +02:00
35df2cdca7 Merge branch 'hotfix/1.36.1' into develop 2025-08-11 13:01:32 +02:00
dababe6880 Merge branch 'hotfix/1.36.1' 2025-08-11 13:01:32 +02:00
a30c541aa7 updated image version in docker-compose 2025-08-11 13:01:23 +02:00
1528e67907 Merge branch 'release/1.36.0' into develop 2025-08-11 12:59:09 +02:00
a3f0fbbe63 Merge branch 'release/1.36.0' 2025-08-11 12:59:08 +02:00
76e864b53f Dockerfile: upgraded Node version 18>24 2025-08-11 12:59:00 +02:00
0a16afb1b6 Dockerfile: fixed ENV var syntax 2025-08-11 12:58:29 +02:00
d42a7da75b fixed typescript error 2025-08-11 12:49:10 +02:00
be104561c2 Merge branch 'feature/default-active-year' into develop 2025-08-11 12:25:13 +02:00
44cdcf8cec optimized queries 2025-08-11 12:19:29 +02:00
3ce158825e add bulk bill deletion across subsequent months
Implement ability to delete bills from all subsequent months
with toggle option and warning message similar to location deletion.
Includes centered warning box and efficient bulk operations.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 12:11:10 +02:00
71895229ec add bulk bill creation across subsequent months
Implement ability to add newly created bills to all subsequent months
with toggle option (disabled by default). Includes duplicate checking
and efficient bulk operations.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 12:01:18 +02:00
6d6a8782ab optimize database queries by excluding bills field
- Added projections to exclude bills field from location lookup queries
- Optimized updateOrAddLocation currentLocation query (line 79)
- Optimized duplicate check query for subsequent months (line 201)
- Optimized deleteLocationById location lookup query (line 372)
- Reduces network traffic and memory usage by avoiding unnecessary bills data
- Improves query performance especially for locations with many bills or large attachments

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 11:50:47 +02:00
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
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
02a3023f7a add CLAUDE.md with development guidance for Claude Code
Provides architectural overview, development commands, and key patterns for future Claude instances working with this codebase.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 10:00:07 +02:00
a6ed155277 Merge branch 'hotfix/1.35.1' into develop 2025-07-23 13:40:25 +02:00
1ef3f01f86 Merge branch 'hotfix/1.35.1' 2025-07-23 13:40:24 +02:00
491b11e86d fixing types 2025-07-23 13:40:14 +02:00
46730aa249 Merge branch 'release/1.35.0' 2025-07-23 13:13:43 +02:00