1741 Commits

Author SHA1 Message Date
mahula
f3fb7e919d test(lib): add coverage for setTagApi and allTagsLoaded signal paths 2026-02-06 16:07:43 +01:00
mahula
4f4810b3b7 fix(lib): address review comments on useTags hook
- Fix stale tagCount in setTagApi: use result.length instead of
  captured tagCount to determine allTagsLoaded (removes stale closure)
- Fix duplicate API calls in addTag: early-return on existing tags and
  eagerly update tagsRef to prevent same-tick duplicate createItem calls
- Fix act() warnings in tests: use await act() for async setTagApi
  calls so microtasks flush within act boundary
- Remove now-unused eslint-disable for react-hooks/exhaustive-deps
2026-02-06 15:46:24 +01:00
mahula
51879265e0
Merge branch 'main' into fix/hashtag-auto-creation 2026-02-06 15:26:23 +01:00
dependabot[bot]
529ee8cc81
build(deps-dev): bump eslint-plugin-react-refresh from 0.4.26 to 0.5.0 (#702)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 09:03:59 +00:00
dependabot[bot]
ab2380ec55
build(deps-dev): bump cypress from 15.9.0 to 15.10.0 (#698)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 09:53:46 +01:00
dependabot[bot]
afb280da14
build(deps-dev): bump happy-dom from 20.4.0 to 20.5.0 (#701)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 08:36:37 +00:00
dependabot[bot]
0f93c393a3
build(deps-dev): bump daisyui from 5.5.14 to 5.5.17 (#696)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 08:28:51 +00:00
dependabot[bot]
088516e3b7
build(deps): bump react-dropzone from 14.3.8 to 14.4.0 (#700)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 08:16:21 +00:00
dependabot[bot]
f3d282b29a
build(deps-dev): bump rollup from 4.57.0 to 4.57.1 (#697)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-04 09:10:07 +01:00
dependabot[bot]
6da1893078
build(deps-dev): bump @types/node from 24.10.2 to 25.0.10 (#687)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-03 04:49:18 +00:00
dependabot[bot]
d62f92d890
build(deps): bump vite-tsconfig-paths from 5.1.4 to 6.0.5 (#691)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-03 04:44:11 +00:00
dependabot[bot]
ed9d613db7
build(deps): bump maplibre-gl from 5.16.0 to 5.17.0 (#689)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-03 04:38:41 +00:00
dependabot[bot]
1d54110d2d
build(deps-dev): bump globals from 17.0.0 to 17.2.0 (#688)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-03 04:33:28 +00:00
dependabot[bot]
59c3ef52c9
build(deps-dev): bump the vitest-ecosystem group with 2 updates (#683)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-03 04:25:15 +00:00
dependabot[bot]
bfb23d9510
build(deps): bump react-router-dom from 7.12.0 to 7.13.0 (#684)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-02 23:52:59 +00:00
dependabot[bot]
ccc58ce8c3
build(deps-dev): bump rollup from 4.55.3 to 4.57.0 (#690)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-02 21:38:58 +01:00
dependabot[bot]
a9c318d6ea
build(deps-dev): bump happy-dom from 20.3.4 to 20.4.0 (#686)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-28 07:44:22 +00:00
dependabot[bot]
872add843f
build(deps): bump axios from 1.13.2 to 1.13.4 (#692)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-28 06:27:30 +00:00
dependabot[bot]
fe61c68183
build(deps): bump actions/checkout from 6.0.1 to 6.0.2 (#693)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-28 07:22:00 +01:00
mahula
8d52810449 test(lib): add unit tests for hashtag auto-creation feature
Add comprehensive tests for the useTags hook covering:
- Tag state management (initialization, adding, deduplication)
- API integration (persistence, existing tag handling, stale closure fix)
- Hashtag detection & auto-creation (extraction, skipping known tags, deduplication)
- Tag retrieval (text matching, offers/needs tags, case-insensitive matching)

15 test cases covering the hashtag auto-creation feature addressed in PR #673.
2026-01-24 10:59:48 +01:00
mahula
0c41cd2d0f a little linting 2026-01-24 09:54:24 +01:00
mahula
839fc6cd07
Merge branch 'main' into fix/hashtag-auto-creation 2026-01-24 09:36:11 +01:00
dependabot[bot]
0c3b4d7fa0
build(deps-dev): bump eslint-plugin-prettier from 5.5.4 to 5.5.5 (#680)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 19:35:01 +00:00
dependabot[bot]
9b5163e31e
build(deps-dev): bump @testing-library/react from 16.3.1 to 16.3.2 (#675)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 19:27:47 +00:00
dependabot[bot]
893ae85066
build(deps-dev): bump prettier from 3.7.4 to 3.8.0 (#678)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 19:22:19 +00:00
dependabot[bot]
1d8cbeab2b
build(deps-dev): bump rollup from 4.55.1 to 4.55.2 (#679)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 20:15:03 +01:00
dependabot[bot]
3d7a3f1163
build(deps-dev): bump happy-dom from 20.1.0 to 20.3.4 (#681)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 18:44:31 +00:00
dependabot[bot]
c08c7e5f89
build(deps): bump actions/setup-node from 6.1.0 to 6.2.0 (#682)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 19:39:02 +01:00
d3e7b7a9bb fix(tags): restore automatic hashtag creation for unknown tags
Two issues were preventing hashtags from being automatically added to the database:

1. **useTags.tsx - Stale closure bug**: The `addTag` function was using
   `tags` and `api` from the closure scope, which were stale when called.
   Fixed by using `useRef` for both `apiRef` and `tagsRef`, ensuring the
   function always accesses current values.

2. **PopupView.tsx - Tag creation in render**: New tags were detected
   inside the render `.map()` function with side effects - an anti-pattern.
   Moved tag processing to a dedicated `processItemsTags` function in
   useTags hook, called via useEffect when items are loaded.

Changes:
- Added `processItemsTags(items: Item[])` function to useTags hook
- Added `useProcessItemsTags` export hook
- Cleaned up PopupView.tsx to use the new hook via useEffect
- Removed side effects from render function

Now when items are loaded, any hashtags that don't exist in the database
are automatically created with a random color.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 06:39:53 +01:00
dependabot[bot]
081f4f5476
build(deps-dev): bump rollup from 4.54.0 to 4.55.1 (#653)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 08:47:18 +00:00
dependabot[bot]
25df15ef5e
build(deps-dev): bump globals from 16.5.0 to 17.0.0 (#654)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 09:42:07 +01:00
dependabot[bot]
e80b6da89f
build(deps-dev): bump the vitest-ecosystem group with 2 updates (#659)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 09:36:11 +01:00
dependabot[bot]
d5c35f824e
build(deps-dev): bump typedoc from 0.28.15 to 0.28.16 (#660)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 08:19:26 +00:00
dependabot[bot]
d81acb1919
build(deps-dev): bump @eslint-community/eslint-plugin-eslint-comments from 4.5.0 to 4.6.0 (#669)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 08:14:18 +00:00
dependabot[bot]
22775716f9
build(deps-dev): bump happy-dom from 20.0.11 to 20.1.0 (#661)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 08:07:51 +00:00
dependabot[bot]
087939636b
build(deps-dev): bump cypress from 15.8.1 to 15.9.0 (#663)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 08:02:41 +00:00
dependabot[bot]
dd3c94087a
build(deps-dev): bump vite from 7.3.0 to 7.3.1 (#664)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 07:57:26 +00:00
dependabot[bot]
ad7ad53d26
build(deps): bump maplibre-gl from 5.15.0 to 5.16.0 (#665)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 08:51:50 +01:00
b7f5b0092f added docs 2026-01-12 16:28:10 +01:00
dependabot[bot]
122091423b
build(deps-dev): bump rollup from 4.53.5 to 4.54.0 (#650)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-27 08:25:15 +00:00
dependabot[bot]
d270038f39
build(deps): bump react-photo-album from 3.3.0 to 3.4.0 (#649)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-27 08:19:00 +00:00
dependabot[bot]
fde73e5570
build(deps): bump react-router-dom from 7.10.1 to 7.11.0 (#645)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-27 08:12:29 +00:00
dependabot[bot]
91d49857e8
build(deps): bump yet-another-react-lightbox from 3.27.0 to 3.28.0 (#648)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-27 09:06:30 +01:00
Copilot
35acd015b8
fix(app): fix Directus API responses missing relational data (offers, needs, relations) (#619)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: antontranelis <31516529+antontranelis@users.noreply.github.com>
Co-authored-by: mahula <lenzmath@posteo.de>
2025-12-23 07:50:01 +01:00
dependabot[bot]
ed6613ac55
fix(deps-dev): resolve vitest v4 upgrade with breaking changes and dependabot grouping (#635)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mahula <lenzmath@posteo.de>
2025-12-20 02:02:58 +01:00
6aa37a7c39 npm audit fix 2025-12-18 18:25:13 +01:00
dependabot[bot]
9cd6616896
build(deps-dev): bump typedoc-plugin-coverage from 3.4.1 to 4.0.2 (#580)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 12:29:29 +00:00
dependabot[bot]
ce66c09273
build(deps-dev): bump typedoc-plugin-missing-exports from 3.1.0 to 4.1.2 (#557)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 12:23:57 +00:00
dependabot[bot]
24fea0f066
build(deps-dev): bump typedoc from 0.27.9 to 0.28.15 (#599)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 12:18:51 +00:00
dependabot[bot]
f099e7893d
refactor(deps): update react-router-dom from v6 to 7.10.1 and adapt to breaking changes (#579)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
Co-authored-by: mahula <lenzmath@posteo.de>
2025-12-18 13:01:42 +01:00