Commit Graph

13 Commits

Author SHA1 Message Date
seb
406684f4a2 slug fix 2026-08-04 01:35:48 +02:00
seb
686a192b1a fix: properly sync category lists when article categories change
- Update patchArticleInLists reducer to add/remove articles from category lists
- Articles are now correctly added to rootArticles and current category's articles
- Articles are correctly removed when no longer in a category
- Remove unnecessary loadCategoryTree dispatch (reducer handles sync now)
2026-08-03 09:17:50 +02:00
seb
404a7f4fce Add category image upload with thumbnail backdrop in category tiles
- Add category image API methods (upload/delete) to src/api/index.js
- Add uploadCategoryImage/deleteCategoryImage thunks and extraReducers in categorySlice
- Add CategoryBackdrop component showing ThumbHash placeholder with full thumb overlay
- Add photo upload/delete tab to CategoryEditTile settings cycle
- Category tile label band uses semi-transparent black overlay with white text
- Pass thumbHash/fullHash to both CategoryTile and CategoryEditTile
2026-08-03 07:57:44 +02:00
seb
4bbe9caf55 Directly patch posterminalIds in Redux instead of reloading the category tree
After toggling a POS category, update the category's posterminalIds array
in-place rather than re-fetching the entire tree. This keeps the settings
cycle open on the same terminal. Also fix off-by-one in terminal cycling
and ensure posterminals load on category page mount.
2026-08-03 07:22:08 +02:00
seb
f302eb9e67 u 2026-08-03 07:13:42 +02:00
seb
5b5c77f870 u 2026-08-03 03:57:12 +02:00
seb
8577a63b06 u 2026-08-03 00:22:46 +02:00
seb
2dd14bac91 Add category rename and drag-and-drop reordering in edit mode
- Edit toggle behind the "Kategorien" title enables an edit mode.
- In edit mode all category tiles become inline rename fields (no outline,
  distinct background, small margins); articles and "new article" are hidden.
- Rename via PATCH /api/category/:id; reorder via PUT /api/category/order
  (parentId + categoryIds) with SortableJS.
- Only call backend when order actually changed; revert DOM order on error
  so further dragging keeps working.
- Redux: renameCategory + reorderCategories thunks, renameMode state.
2026-08-02 19:43:38 +02:00
seb
5309b1174b u 2026-08-02 19:21:21 +02:00
seb
335f808421 Add editable article prices with gross input and staffel tiers.
Wire PUT /prices, de-DE formatting, tax/staffel pills, and keep the category list cache in sync after photo/price updates.
2026-08-01 05:44:34 +02:00
seb
6141e71e2f Remove deleted articles from the category list cache.
After DELETE, the category view kept showing the article until a full reload because Redux still held it.
2026-08-01 03:49:41 +02:00
seb
a6a9777f31 u 2026-07-31 17:51:57 +02:00
seb
797ea59bed u 2026-07-31 08:34:51 +02:00