feat(detail) : add consultation pages for piece, composant, product
Add read-only detail pages with edit/view toggle for piece, composant and product, matching the existing machine detail pattern. Empty fields and documents section are hidden in consultation mode. Catalogs and cross-links updated to point to the new detail pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -243,9 +243,9 @@ const handleResolve = async (commentId: string) => {
|
||||
|
||||
const ENTITY_ROUTE_MAP: Record<string, (id: string) => string> = {
|
||||
machine: (id: string) => `/machine/${id}`,
|
||||
piece: (id: string) => `/pieces/${id}/edit`,
|
||||
composant: (id: string) => `/component/${id}/edit`,
|
||||
product: (id: string) => `/product/${id}/edit`,
|
||||
piece: (id: string) => `/piece/${id}`,
|
||||
composant: (id: string) => `/component/${id}`,
|
||||
product: (id: string) => `/product/${id}`,
|
||||
piece_category: (id: string) => `/piece-category/${id}/edit`,
|
||||
component_category: (id: string) => `/component-category/${id}/edit`,
|
||||
product_category: (id: string) => `/product-category/${id}/edit`,
|
||||
|
||||
Reference in New Issue
Block a user