Einzelstueck-Liste: Web-Seite /items + iOS-Liste (filterbar nach Lagerort)

Neue Seite 'Einzelstuecke' (Web, /items, in der Sidebar) listet alle physischen Exemplare ueber alle Produkte in der DataTable - je Spalte filterbar (Lagerort als Pfad, Produkt, Kategorie, Shop, ...), Lagerort und Shop inline aenderbar. iOS bekommt dieselbe Liste als schlichte, filterbare Ansicht (Kachel unter 'Listen'): Suche + Lagerort-/Kategorie-Filter, Tippen oeffnet das Einzelstueck. Item-Model/ItemOut um Kategorie ergaenzt; neuer APIClient.allItems().

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-27 14:58:03 +02:00
parent 76acf57edf
commit 6b7ada33b3
7 changed files with 244 additions and 0 deletions

View File

@@ -752,6 +752,8 @@ struct Item: Codable, Identifiable, Hashable {
let createdAt: String
let productName: String?
let productBrand: String?
let categoryId: Int?
let categoryName: String?
let documents: [ItemDocument]
enum CodingKeys: String, CodingKey {
@@ -767,6 +769,8 @@ struct Item: Codable, Identifiable, Hashable {
case createdAt = "created_at"
case productName = "product_name"
case productBrand = "product_brand"
case categoryId = "category_id"
case categoryName = "category_name"
}
}