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
dependabot[bot]
0c9403f898
build(deps): bump maplibre-gl from 5.9.0 to 5.14.0 ( #614 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 09:09:22 +00:00
dependabot[bot]
3f9684137b
build(deps-dev): bump @testing-library/react from 16.3.0 to 16.3.1 ( #626 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 08:35:42 +00:00
dependabot[bot]
3ed042199c
build(deps-dev): bump rollup from 4.53.3 to 4.53.5 ( #625 )
...
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>
2025-12-18 07:43:07 +00:00
dependabot[bot]
730ec7e0d4
build(deps): bump yet-another-react-lightbox from 3.26.0 to 3.27.0 ( #624 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 07:37:54 +00:00
dependabot[bot]
4a99aac524
build(deps-dev): bump @tailwindcss/postcss from 4.1.17 to 4.1.18 ( #629 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 07:30:36 +00:00
dependabot[bot]
4b5de77d23
build(deps): bump actions/download-artifact from f093f21ca4cfa7c75ccbbc2be54da76a0c7e1f05 to 37930b1c2abaa49bbe596cd826c3c89aef350131 ( #639 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 07:21:24 +00:00
dependabot[bot]
790ec34f97
build(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0 ( #638 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 08:16:09 +01:00
dependabot[bot]
4ad9e2a214
build(deps-dev): bump eslint-plugin-react-refresh from 0.4.24 to 0.4.26 ( #633 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 07:28:52 +01:00
4fa004aebe
make update item toast closeable
2025-12-17 08:12:42 +01:00
dependabot[bot]
4adba2e455
build(deps-dev): bump vite from 7.2.7 to 7.3.0 ( #632 )
...
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>
2025-12-17 07:12:25 +00:00
dependabot[bot]
535d79a3b5
build(deps): bump @tailwindcss/vite from 4.1.17 to 4.1.18 ( #630 )
...
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>
2025-12-17 08:08:14 +01:00
881777a4f0
npm audit fix
2025-12-17 07:59:36 +01:00
dependabot[bot]
600ff18c93
build(deps-dev): bump tailwindcss from 4.1.17 to 4.1.18 ( #636 )
...
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>
2025-12-17 06:20:11 +00:00
dependabot[bot]
6393f3af80
build(deps-dev): bump daisyui from 5.5.8 to 5.5.14 ( #627 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-17 07:15:51 +01:00
dependabot[bot]
7bcfaba12f
build(deps): bump react-photo-album from 3.2.1 to 3.3.0 ( #611 )
...
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>
2025-12-16 20:59:48 +00:00
dependabot[bot]
232e1586c0
build(deps): bump the tiptap group with 10 updates ( #596 )
...
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>
2025-12-16 21:55:38 +01:00
dependabot[bot]
14e96e7b2a
build(deps-dev): bump daisyui from 5.5.5 to 5.5.8 ( #609 )
...
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>
2025-12-16 21:48:13 +01:00
dependabot[bot]
92bd5b9877
build(deps-dev): bump eslint-plugin-json from 3.1.0 to 4.0.1 ( #550 )
...
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-16 21:37:47 +01:00
dependabot[bot]
132a8871d7
build(deps-dev): bump eslint from 8.57.1 to 9.39.1 ( #576 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-16 20:29:08 +00:00