Commit Graph

24 Commits

Author SHA1 Message Date
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
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
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
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
492750df92 komentiranje debug koda 2024-12-14 09:59:47 +01:00
4a7f899103 za potrebe testiranja podešen konkretan userID 2024-12-14 09:56:14 +01:00
4ab61f9917 implementiran share by link 2024-12-13 17:50:12 +01:00
c4a621e503 disabled linkedin provider 2024-02-19 12:49:51 +01:00
7197d1de5f fix: LinkedinProvider config was incorrect 2024-02-19 09:42:44 +01:00
89eb50b61a supported login via linkedin 2024-02-19 09:11:59 +01:00
3240f746d1 refactor: moving locale definition 2024-02-16 17:02:33 +01:00
8992aa76bd implemented sign-in policy 2024-02-16 16:59:58 +01:00
b11be8e717 Fix: sign-in redirect URL is set 2024-02-14 16:50:16 +01:00
2cf6e8590b adde diagnostic logging 2024-02-14 16:44:30 +01:00
199159c208 added custom login screen 2024-02-13 16:07:50 +01:00
25948cf033 docker-compose: added traefik 2024-01-15 14:00:56 +01:00
c7b4829d03 withUser throws an error if the user is not authenticated 2024-01-09 14:39:17 +01:00
3b88b78cdf enabled paging while fetching locations 2024-01-09 10:58:48 +01:00
c0b108bc65 added total monthly expenditure 2024-01-09 10:44:25 +01:00
8a90c58417 multi-user support 2024-01-08 16:32:08 +01:00
adae452399 session.user extended with id prop 2024-01-08 15:50:03 +01:00
cd9060c97e refactoring: simplifying file names 2024-01-08 15:24:26 +01:00