13 Commits

Author SHA1 Message Date
5dad538577 fix: prettier formatting + add lint check hook
- Fix prettier formatting for localStorage utility
- Add pre-PR lint check script to prevent CI failures
- Create Claude Code hook configuration for automatic linting
2025-08-05 09:47:52 +02:00
63f9129d53 fix: add eslint disables for localStorage utility 2025-08-05 09:35:40 +02:00
a8828ae521 fix: add localStorage error handling to theme functionality
- Create safeLocalStorage utility for graceful error handling
- Update useTheme hook to use safeLocalStorage
- Update ThemeControl component to use safeLocalStorage
- Prevents SecurityError when localStorage is unavailable in theme features

This extends the localStorage fix from issue #212 to cover all localStorage usage in the codebase.
2025-08-05 09:33:06 +02:00
c4131ced0f fix: add eslint disable for console.warn in lib 2025-08-05 09:19:03 +02:00
743620280f fix: handle localStorage SecurityError gracefully
- Add try-catch blocks around localStorage access in authLocalStorage
- Return null instead of throwing when localStorage is unavailable
- Prevent endless loading screen in private browsing/strict privacy modes
- Add proper error logging with console.warn
- Fix nullish coalescing operator usage

Fixes #212

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 22:49:40 +02: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
Anton Tranelis
855ef3de29
fix(lib): base layer config (#276)
* add close button to custom info modal

* added attribution

* fix build examples workflow

* fix pending tests

* Revert "add close button to custom info modal"

This reverts commit 835c661009abbdc5c095a6bc86bbd6890e080e5f.
2025-07-04 08:39:13 +02:00
Anton Tranelis
12aba6a67e
fix(lib): fix labels (#278)
* fix labels

* more lables

* and the rest of the lables

* updated snapshots

* fix linting
2025-07-04 08:36:11 +02:00
Anton Tranelis
045ec726eb
fix(lib): auto close update position toast (#277)
* add close button to custom info modal

* auto close update position toat

* Revert "add close button to custom info modal"

This reverts commit cf5b9a407effe0772ed622ce2369cf16e0b82175.

* fix: reset position for new items without text
2025-07-03 13:18:10 +02:00
Anton Tranelis
712aa98ac2
refactor(other): repo setup (#271)
* direct library import

* running dev environment

* fix linting

* strickt null checks

* fix linting

* chunks

* fix jumping button

* don't exclude rollup-config from typechecks
2025-06-27 20:03:16 +02:00
Anton Tranelis
76d899dba2
fix(lib): fixed profile crash on browser translation (#270)
* fixed profile crash on browser translation

* fix linting
2025-06-26 20:36:16 +02:00
Anton Tranelis
1828f29cfb
fix(frontend): fixed gallery object on item update (#261)
* fixed gallery object on item update

* version
2025-06-18 13:19:01 +02:00
d32be08be8
move utopia-ui into subfolder lib 2025-06-12 10:46:01 +02:00