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.
This commit is contained in:
seb
2026-08-06 20:08:56 +02:00
parent 8d50d083f5
commit 4896b1dc36
26 changed files with 1356 additions and 1103 deletions

View File

@@ -86,7 +86,18 @@ export function resolveActiveSub(pathname, sectionPath) {
sectionPath === '/kunde' && rest && !knownSegments.has(rest);
const isLieferungDetail =
sectionPath === '/lieferung' && rest && !knownSegments.has(rest);
if (isArticleDetail || isKundeDetail || isLieferungDetail) return null;
// Angebot neu/edit: /auftrag/neu or /auftrag/:quoteId (not a known sub)
const isAngebotDoc =
sectionPath === '/auftrag' && rest && !knownSegments.has(rest);
if (isArticleDetail || isKundeDetail || isLieferungDetail || isAngebotDoc) {
return null;
}
// Keep Bestellung/Ausliefern/Retoure active for nested paths
// (e.g. /auftrag/bestellung/neu).
if (sectionPath === '/auftrag' && rest && knownSegments.has(rest)) {
return rest;
}
const active = subNav.find((item) => {
if (item.segment === 'kategorien') {