Commit Graph

106 Commits

Author SHA1 Message Date
seb
74e932c5cf u 2026-09-27 18:32:39 +02:00
seb
f9383e717f u 2026-09-27 17:18:11 +02:00
seb
0f875f347e u 2026-09-27 16:19:08 +02:00
seb
559307675c u 2026-09-27 07:08:13 +02:00
seb
3ab9d904e6 u 2026-09-26 23:05:48 +02:00
seb
49057dc0d6 u 2026-09-22 13:45:22 +02:00
seb
5e13b8f9cd no redux 2026-09-22 07:20:31 +02:00
seb
536e7b1e2a u 2026-09-21 20:21:57 +02:00
seb
2046f96768 supplierAutomat 2026-09-21 10:55:17 +02:00
seb
4011ebfc61 nav 2026-09-19 18:33:27 +02:00
seb
795043fe99 feat(article): implement articlesupplier editor tab
- ApiClient: add getSuppliers, addSupplier, updateSupplier,
  orderSuppliers, deleteSupplier on article namespace
- api/index.js: expose same methods in legacy http client
- StorageManager: add #supplierWatchers Map and watchArticleSuppliers()
  backed by article-<sku> SSE signal; wired up as article.supplierWatch
- ArticleTileTab: pass article prop to ArticleSupplierTab
- ArticleSupplierDialog (new): dialog to assign / edit a supplier link
  (supplier autocomplete, Lief.-SKU, VPE, stock, EK Netto + MwSt.)
- ArticleSupplierTab: full supplier management table with reordering
  (up/down arrows → PUT /supplier/order), inline edit and delete,
  stock badge, purchase price display and empty state
2026-09-17 23:37:41 +02:00
seb
8bbd6fade1 u 2026-08-10 03:13:53 +02:00
seb
57fff72f12 Outsource custom GUI class components to dashgui library
Move reusable GUI primitives (PanelTile, EditablePanelTile, base Tile,
ElevatedPill, SingleLineTextEdit) into the shared dashgui package and
consume them via a file: dependency. EditablePanelTile now accepts an
onError prop so error notification stays app-side.
2026-08-08 16:17:16 +02:00
seb
4896b1dc36 Add shared Manifest UI for delivery, quote, and order.
Wire quote/order API clients and routes, then unify list/create/edit behind ManifestList/Form tiles so Lieferungen and Auftrag share one stack.
2026-08-06 20:08:56 +02:00
seb
1e0fedca3d u 2026-08-06 00:40:27 +02:00
seb
d8b48d96e1 u 2026-08-06 00:32:22 +02:00
seb
855710a198 u 2026-08-06 00:19:21 +02:00
seb
80ca59ab11 u 2026-08-05 23:54:20 +02:00
seb
caf08a3262 u 2026-08-05 20:15:39 +02:00
seb
ff79d5b92c u 2026-08-05 19:25:43 +02:00
seb
9fcee1f851 u 2026-08-05 19:05:36 +02:00
seb
4ccc92c01f Replace panel tileKey with a direct color prop.
Drop theme panelTiles keys and the ArticleView update callback wiring.
2026-08-05 18:38:21 +02:00
seb
1fda43b20d u 2026-08-05 18:17:48 +02:00
seb
0c12d99987 Drop tile titles and tileKey from article detail boxes. 2026-08-05 17:36:18 +02:00
seb
4352a02d4e Gate article detail on a store-backed cache so the view paints once.
Sku page loads/caches the article before mounting ArticleView; the view reads sync from StorageManager instead of fetching again.
2026-08-05 17:31:12 +02:00
seb
198e800fd3 sotre 2026-08-05 17:01:42 +02:00
seb
c1545b6114 Have historyWatch report errors via notifyError instead of an onError callback. 2026-08-05 09:54:33 +02:00
seb
44d69e541c Watch article history over SSE so the tab stays current while open. 2026-08-05 09:48:30 +02:00
seb
60e6858fd5 Show article history in a table via GET /article/{sku}/history. 2026-08-05 09:35:47 +02:00
seb
debd246012 u 2026-08-05 08:48:12 +02:00
seb
66f88e395b u 2026-08-05 08:40:12 +02:00
seb
8f371749c6 u 2026-08-03 23:43:57 +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
78be835388 Add category picker to article view with draft-based editing
- Add setCategories API method for PUT /api/article/:sku/categories
- Create CategoryPickerDialog component for selecting categories
- Add CategoryPills component with add/remove functionality
- Category changes are now draft-based (like name editing)
- Save button commits both name and category changes together
- Delete icons hidden when only one category remains
- Plus button only visible in edit mode

Implements category assignment flow similar to name editing pattern.
2026-08-03 08:57:32 +02:00
seb
26d7c4a021 Keep category pills visible in article name edit mode 2026-08-03 08:41:14 +02:00
seb
7ed6802070 Show category pills in article name view, delay new article button until loaded
- Display category breadcrumb chips below article name in ArticleViewName
- Only show NewArticleTile when articles are successfully loaded
2026-08-03 08:39:22 +02:00
seb
30ccda010f Remove unnecessary notistacks and dead terminal enable/disable code
- Remove 'Artikel angelegt.' snackbar from NewArticleTile
- Remove 'Kategorie angelegt.' snackbar from NewCategoryTile
- Remove dead handleEnableAllCategories method and binding from CompanySettingsDialog
2026-08-03 08:06:28 +02:00
seb
4db4948090 u 2026-08-03 05:11:50 +02:00
seb
b787549a85 u 2026-08-02 18:54:25 +02:00
seb
780f946eff Route article detail tabs in the URL and pin a preferred default.
Use /artikel/:sku/:tab with a localStorage-backed default, and a pin control to set which tab opens first.
2026-08-01 06:45:25 +02:00
seb
80f093649a Add article pack units with Redux-cached company unit list.
Edit amount/unit on the price tile (pc×1 = no pack unit), manage units in a dialog, and keep the default pc unit non-deletable.
2026-08-01 06:37:47 +02:00
seb
1b8652ceaf Enlarge the article price typography in the price tile. 2026-08-01 05:46:09 +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
09fb1da335 Enhance article photo handling and API documentation.
- Updated API documentation to reflect changes in article data structure.
- Improved ArticlePhoto component to support dynamic sizing and object fit options.
- Added performance logging for image upload in ArticlePhotosDialog and ArticlePhotoTile components.
- Enhanced ArticleTile to conditionally render photos and adjusted styling for better layout.
- Optimized image preparation process with configurable AVIF encoding speed.
2026-08-01 04:32:49 +02:00
seb
701487f525 Enlarge article tab icons and widen handle spacing.
Makes the icon-only tabs easier to hit and visually clearer.
2026-08-01 03:58:58 +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
41bc76303a u 2026-08-01 03:37:40 +02:00
seb
4ea593a0c8 u 2026-08-01 02:08:39 +02:00
seb
6d720d34ed u 2026-08-01 01:36:44 +02:00
seb
9582370b0b u 2026-07-31 20:37:43 +02:00