7 Commits

Author SHA1 Message Date
Anton Tranelis
171f6a2b59
fix: prevent 'Cannot read properties of undefined (reading '0')' errors (#385)
- Add proper array length checks before accessing error.errors[0]
- Secure error handling in App.tsx for both map loading and layer loading
- Fix unsafe array access in mapApi.ts error handler
- Prevent crashes when error.errors is undefined or empty array

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

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-15 11:47:09 +02:00
Anton Tranelis
75516b8c3a
fix(app): layer sort (#347)
* layer sort

* change dev port back to 5174
2025-09-02 14:11:07 +02:00
aa13c44cba
delete map user_type as it is no longer required (#309) 2025-08-14 07:08:14 +00:00
cfd7ca1a26
refactor(app): default backend: localhost (#303)
* use api config everywhere, default to localhost, ignore .env file, provide .env.dist

* fix lint
2025-08-13 23:12:39 +00:00
Max
1e7320b895
feat(app): qR invites (#267)
* Add component to show invite link (WIP)

* Show invite link with copy functionality and QR-Code, add tests

* Query secrets

* Update directus collections

* Add config and invite api

* Let vite resolve paths using tsconfig

* Redeem invite link when logged in or after logging in

* Redirect to inviting profile when redeeming

* Fix some logic with login and redeeming

* Use correct redeem flow

* Hide missing form error

* Add basic relations view

* Pass profile to redeem Api and adapt to changed redeem flow

* Remove unnecessary aliases in vite config

* Remove dead import

* gitignore mac specific file

* Remove lazy loading

* Fix linting

* add InviteApi import

* Change case of file name (tbd)

* Don't toast error if user profile was not loaded yet

* Fix casing

* avoid app crash when profile of a new item is opened

---------

Co-authored-by: Anton Tranelis <mail@antontranelis.de>
2025-07-11 13:37:05 +02:00
Max
c92695eea7
fix(frontend): update directus collections (#269)
* Update directus collections

* item_secrets is not a collection we call via directus client

---------

Co-authored-by: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
2025-07-03 07:21:31 +00:00
Anton Tranelis
729f97f38a
refactor(app): rename frontend directory (#273) 2025-07-01 16:51:46 +02:00