Commit Graph

953 Commits

Author SHA1 Message Date
ba2a278d7e Merge branch 'feature/improving-backup' into develop 2025-11-26 11:12:09 +01:00
4454ea3b7e Enhance backup system with comprehensive scripts and documentation
Database Backup Scripts:
- Add db-dump--standalone.sh for online database dumps (no downtime)
- Add db-restore-from-dump--standalone.sh for restoring from dumps
- Rename backup scripts with double-dash convention for clarity
- Add comprehensive header comments to all backup/restore scripts
- Document online vs offline, standalone vs swarm deployment types
- Add KEEP variable default (7) to dump script for rotation

Docker Configuration:
- Add mongo-backup volume mount to docker-compose-standalone.yaml
- Add mongo-backup volume mount to docker-compose-debug.yml
- Add container names to debug compose for consistency with standalone

Documentation:
- Add comprehensive Database Backup & Restore section to README.md
- Document all backup scripts with usage examples
- Document automated cron schedule (04:00 daily)
- Sunday: Full volume backup (KEEP=2, offline)
- Monday-Saturday: Database dumps (KEEP=7, online)
- Document backup directories and log file locations

Git Configuration:
- Add mongo-backup/ to .gitignore
- Fix missing newline at end of .gitignore

File Cleanup:
- Remove db-scheduled-backup.sh (superseded by cron jobs)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 11:11:17 +01:00
941ee57c90 Merge remote-tracking branch 'origin/develop' 2025-11-26 09:42:39 +01:00
dc5698d7d6 Improve backup scripts with logging and remove duplicate rotation
db-backup-standalone.sh:
- Add logging with timestamps to backups/db-backup-standalone.log
- Add SCRIPT_DIR to make all paths relative to script location
- Add detailed logging for each backup step (stop, backup, rotate, start)
- Log rotation status and which old backups are removed

db-scheduled-backup.sh:
- Remove duplicate backup rotation logic (now handled in standalone script)
- Comment out cleanup code to avoid redundant operations

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 09:42:20 +01:00
a3dcc22c8c Merge branch 'release/2.7.3' 2025-11-26 09:30:41 +01:00
f98a2a5908 Merge branch 'feature/fixing-backup' into develop 2025-11-26 09:29:55 +01:00
ecd1516c80 Add logging with timestamps to scheduled backup script
- Add log file at backups/scheduled-backup.log (overwritten on each run)
- Create log() function that outputs to both console and log file
- Add timestamp prefix to all log messages in format [YYYY-MM-DD HH:MM:SS]
- Replace all echo statements with log function calls

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 09:29:39 +01:00
Knee Cola
197f8d4235 Merge branch 'release/2.7.2' 2025-11-25 22:31:40 +01:00
Knee Cola
248a173795 Merge branch 'feature/daily-backup-script' into develop 2025-11-25 22:30:55 +01:00
Knee Cola
66cfdf779e Add scheduled database backup script
Add db-scheduled-backup.sh that calls db-backup-standalone.sh and removes backup files older than 7 days using find -mtime +7.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 22:30:33 +01:00
Knee Cola
f2481a7291 Merge branch 'develop' 2025-11-25 22:14:56 +01:00
Knee Cola
86e3084d3a (bugfix) logout link was leading to non-exiting page 2025-11-25 22:13:12 +01:00
Knee Cola
610c59612a Merge branch 'release/2.7.0' 2025-11-25 22:06:56 +01:00
Knee Cola
d62b8b7a73 Merge branch 'release/2.7.0' into develop 2025-11-25 22:06:56 +01:00
Knee Cola
1856a07027 2.7.0 2025-11-25 22:06:44 +01:00
Knee Cola
37503c27b1 Merge branch 'feature/fixing-folder-structure' into develop 2025-11-25 22:06:26 +01:00
Knee Cola
b5405009ba Fix homepage link in PageHeader component 2025-11-25 22:03:53 +01:00
Knee Cola
f980ac3be2 Check pathname instead of session for account link visibility
- Replace useSession with usePathname from next/navigation
- Show account link only when pathname includes '/home' (restricted pages)
- More efficient than checking session state
- Aligns with middleware logic that protects /home routes

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 22:00:46 +01:00
Knee Cola
8fd9da8210 Hide account link for anonymous users in PageHeader
- Add useSession hook from next-auth/react
- Conditionally render account icon link only when user is authenticated
- Anonymous users on public pages will not see the account button

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 21:58:21 +01:00
Knee Cola
47b99c05e0 Add locale to PageHeader links
- Convert PageHeader to client component to use useLocale hook
- Update home logo link to include locale: /${locale}/home
- Update account icon link to include locale: /${locale}/home/account/

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 21:56:08 +01:00
Knee Cola
15133286c9 Fix cancel button links in edit forms to redirect to /home
- Update BillEditForm cancel button to redirect to /home
- Update LocationEditForm cancel button to redirect to /home
- Update UserSettingsForm cancel button to redirect to /home

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 21:51:47 +01:00
Knee Cola
b9f73e9a90 Restructure application to use /home for authenticated pages
- Move authenticated home page from /[locale] to /[locale]/home
- Move login page from /[locale]/login to /[locale] (new landing page)
- Move all restricted pages (bill, location, year-month, print, account) under /[locale]/home
- Simplify middleware to protect all routes under /home instead of using publicPages array
- Update auth config: change signIn page from /login to /
- Update SignInButton callback URL to redirect to /home after login
- Update all internal links throughout the application to reflect new structure
- Update server action redirects in navigationActions.ts
- Public share routes (/share/*) remain unchanged

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 21:49:01 +01:00
Knee Cola
02c68fee5b Merge branch 'hotfix/2.6.2' into develop 2025-11-25 21:13:07 +01:00
Knee Cola
92deca1a25 Merge branch 'hotfix/2.6.2' 2025-11-25 21:13:06 +01:00
Knee Cola
f8d578faf6 2.6.2 2025-11-25 21:12:46 +01:00
Knee Cola
07422826e0 removed unused messages 2025-11-25 21:12:06 +01:00
Knee Cola
42040c7918 Implement logout functionality for account page
- Create LogoutButton client component using signOut from next-auth/react
- Update account page to use LogoutButton instead of static link
- Convert account page to async server component for proper i18n
- Add locale-aware routing for settings link
- Add logging-out-message translations (EN/HR)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 21:11:41 +01:00
Knee Cola
572466497b Clean up whitespace in account page
Remove extra blank lines for cleaner formatting.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 20:49:47 +01:00
Knee Cola
62d0cb81a7 Refactor account page structure and update UI
- Move user settings form to dedicated /account/settings route
- Update PageHeader icon from Settings to AccountCircle for clarity
- Update debug log labels in auth config for better readability

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 20:49:33 +01:00
Knee Cola
a8a1253067 Add internationalization to account page
Replace hardcoded text with next-intl placeholders for proper i18n support.
- Add translation keys for page title, settings button, and logout button
- Add translations for both Croatian (hr) and English (en) locales

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 20:48:49 +01:00
Knee Cola
4ca379aa1e Merge branch 'release/2.6.0' into develop 2025-11-25 20:08:58 +01:00
Knee Cola
6f0ba15eb8 Merge branch 'release/2.6.0' 2025-11-25 20:08:58 +01:00
Knee Cola
4bf7494820 2.6.0 2025-11-25 20:08:48 +01:00
Knee Cola
48e86ef686 Merge branch 'feature/auth-troubleshooting' into develop 2025-11-25 20:05:56 +01:00
Knee Cola
3bac2306f8 BugFix: after an dependency update the authentication no longer used proper ID for the user 2025-11-25 20:05:44 +01:00
Knee Cola
fc3ad168fa Add debug logging for JWT and session handling in authConfig 2025-11-25 19:50:55 +01:00
Knee Cola
fe356081c4 Merge branch 'release/2.5.1' 2025-11-25 19:29:00 +01:00
Knee Cola
d84cbebcf5 Merge branch 'feature/improved-backup' into develop 2025-11-25 19:28:27 +01:00
Knee Cola
5832e9e691 Refactor deployment scripts to separate standalone and swarm modes
- Remove ambiguous docker-compose-deploy.yml and debug-deploy.sh
- Update deploy-standalone.sh to use docker-compose-standalone.yaml
- Update deploy-swarm.sh to use docker-compose-swarm.yml
- Standardize error messages to English in deployment scripts
- Add db-backup-swarm.sh for swarm-specific backups
- Unify network naming to util-bills-mongo-network across configs
- Fix MongoDB credentials in swarm compose file

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 19:28:16 +01:00
Knee Cola
c1686c4cb8 Update db-backup-standalone.sh to use docker compose
- Replace docker service scale with docker compose stop/start
- Update service name from utility-bills-tracker_mongo to mongo
- Reference docker-compose-standalone.yaml compose file
- Update comments to reflect container operations vs swarm service

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 19:25:51 +01:00
ea8101b6f1 Merge branch 'release/2.5.0' 2025-11-25 14:53:22 +01:00
7f087b8e10 Merge branch 'release/2.5.0' into develop 2025-11-25 14:53:22 +01:00
51aa4b1891 2.5.0 2025-11-25 14:52:44 +01:00
0cbe33b92b Merge branch 'feature/fixing-cellphone-layout' into develop 2025-11-25 14:50:53 +01:00
fe924d0ee4 (style) LocationCard: fixing shared button position, compacting layout 2025-11-25 14:48:55 +01:00
cd8c4cf370 (style) reduced print button width so it fits on screen 2025-11-25 14:24:34 +01:00
819d0de481 MongoDB: in dev env configured the same initial admin pass 2025-11-25 13:58:56 +01:00
Knee Cola
f7fd8dcfc4 Merge branch 'release/2.4.0' 2025-11-24 23:10:18 +01:00
Knee Cola
ff24bf1ca9 Merge branch 'release/2.4.0' into develop 2025-11-24 23:10:18 +01:00
Knee Cola
1b5d6b91a6 2.4.0 2025-11-24 23:10:01 +01:00