Commit Graph

981 Commits

Author SHA1 Message Date
Knee Cola
f3e13b8e6c Merge branch 'feature/homepage-auth-detection' into develop 2025-11-29 13:13:42 +01:00
Knee Cola
06ba45bbeb Show 'Go to App' button for authenticated users on landing page
Instead of displaying sign-in buttons to already authenticated users,
the homepage now detects authentication status and shows a 'Go to App'
button that redirects to the home page.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 13:13:15 +01:00
Knee Cola
f3c37086a3 Merge branch 'release/2.10.0' into develop 2025-11-26 20:56:45 +01:00
Knee Cola
ed20f3b50a Merge branch 'release/2.10.0' 2025-11-26 20:56:44 +01:00
Knee Cola
68d843f214 2.10.0 2025-11-26 20:56:19 +01:00
Knee Cola
be2e711fd3 Merge branch 'feature/umami-tracking' into develop 2025-11-26 20:55:59 +01:00
Knee Cola
d898f79ba3 Add Umami analytics tracking for key user interactions
Integrates Umami analytics with production-only tracking script and event tracking for user login and location creation actions.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 20:55:05 +01:00
Knee Cola
86d3587fb7 Merge branch 'release/2.9.0' into develop 2025-11-26 20:33:51 +01:00
Knee Cola
8239985e45 Merge branch 'release/2.9.0' 2025-11-26 20:33:50 +01:00
Knee Cola
08b3564810 2.9.0 2025-11-26 20:33:20 +01:00
Knee Cola
5ddc8c389c Merge branch 'feature/location-card-simplification' into develop 2025-11-26 20:32:34 +01:00
Knee Cola
4f38fa4496 Add expand and fade-in animations to conditional form sections
Add smooth animations to form sections that appear when toggles are enabled, improving user experience with visual feedback.

Changes:
- Add expandFadeIn keyframe animation to Tailwind config
- Apply expand-fade-in animation to UserSettingsForm payment sections
- Apply expand-fade-in animation to LocationEditForm conditional fields
- Update account page HomeIcon color from green to white for consistency

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 20:31:41 +01:00
Knee Cola
eed92b5ac3 Replace seenByTenant boolean with seenByTenantAt timestamp field
Update location tracking to record when tenant views a location rather than just whether they've seen it. This provides better audit trail and enables future features like viewing history.

Changes:
- Convert seenByTenant (boolean) to seenByTenantAt (Date) in database schema
- Update setSeenByTenantAt action to store timestamp instead of boolean flag
- Modify LocationCard UI to display when location was seen by tenant
- Update all references across locationActions, monthActions, and view components
- Remove unused imports from ViewLocationCard

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 20:10:18 +01:00
4139e29de8 Merge branch 'release/2.8.0' into develop 2025-11-26 14:10:09 +01:00
4755ce10ae Merge branch 'release/2.8.0' 2025-11-26 14:10:08 +01:00
9460c605ea 2.8.0 2025-11-26 14:09:58 +01:00
b3356ccf18 Update browserslist database and Claude Code settings
- Update caniuse-lite from 1.0.30001588 to 1.0.30001757
- Add npm run build to Claude Code auto-approved commands

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 14:09:40 +01:00
ddfa0a5595 Fix ESLint warnings for img elements
Add ESLint disable comments for @next/next/no-img-element warnings where appropriate (barcode images with base64 data URIs don't benefit from Next.js Image optimization) and add missing alt attribute to PDF417 barcode component.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 14:07:27 +01:00
22ba5c4adc Merge branch 'feature/account-page-goto-home-button' into develop 2025-11-26 13:51:58 +01:00
985fb4bc41 Add smooth open/close animation to InfoBox component
Implements a slide-down fade-in animation when the InfoBox expands, improving the user experience with smooth visual transitions.

Changes:
- Add animateDown keyframe animation to Tailwind config
- Apply animation to InfoBox content div when opened
- Animation includes opacity fade, vertical slide, and max-height transition
- Update InfoBox width to use responsive sizing (17rem on mobile, 28rem on larger screens)
- Change icon color to green for better visual consistency

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 13:51:17 +01:00
364a12f9d6 Add home navigation button and improve account page UI
Enhances the account page navigation by adding a "Back to home" button and improving the overall user experience with better visual hierarchy and navigation flow.

Changes:
- Add home navigation button to account page with green icon
- Update logout button styling with red icon for visual emphasis
- Improve settings button label clarity
- Fix settings cancel button to navigate back to account page
- Increase account icon size in page header
- Update translation keys for consistency across EN/HR

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 13:26:19 +01:00
030af7f387 Merge branch 'develop' 2025-11-26 12:29:26 +01:00
982a8f0f88 Update backup retention policy and documentation for clarity 2025-11-26 12:29:16 +01:00
a080c92aae Merge branch 'develop' 2025-11-26 11:42:35 +01:00
19ed709faa (BugFix) standalone backup script had a simple error 2025-11-26 11:42:28 +01:00
0eacbca9ac Merge branch 'develop' 2025-11-26 11:21:38 +01:00
2375c1a193 Consolidate backup storage to single mongo-backup directory
- Unify all backup scripts to use ./mongo-backup/ directory
- Update db-backup--standalone.sh to store volume backups in mongo-backup/
- Update db-backup--swarm.sh to use mongo-backup as default directory
- Update db-restore-from-backup--swarm.sh to look in mongo-backup/
- Update all header comments and documentation to reflect new location
- Update .gitignore to ignore both backups/ and mongo-backup/
- Update README.md with consolidated backup directory paths

This simplifies backup management by having all backup types in one location.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 11:20:29 +01:00
5041d90970 Merge branch 'release/2.7.4' 2025-11-26 11:12:35 +01:00
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