feat(bins): clickable bin cards with dedicated detail page
Clicking a bin on Locations now navigates to /bins/:id, showing the bin's site/room/name, created/updated metadata, and a paginated DataTable of parts currently in the bin. Admins can rename or delete the bin from the detail page; the BinGrid kebab menu still works without triggering navigation. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import Dashboard from './pages/Dashboard.js';
|
||||
import Parts from './pages/Parts.js';
|
||||
import PartDetail from './pages/PartDetail.js';
|
||||
import Locations from './pages/Locations.js';
|
||||
import BinDetail from './pages/BinDetail.js';
|
||||
import Manufacturers from './pages/Manufacturers.js';
|
||||
import ManufacturerDetail from './pages/ManufacturerDetail.js';
|
||||
import PartModels from './pages/PartModels.js';
|
||||
@@ -60,6 +61,7 @@ export default function App() {
|
||||
<Route path="/parts" element={<Parts />} />
|
||||
<Route path="/parts/:id" element={<PartDetail />} />
|
||||
<Route path="/locations" element={<Locations />} />
|
||||
<Route path="/bins/:id" element={<BinDetail />} />
|
||||
<Route path="/manufacturers" element={<Manufacturers />} />
|
||||
<Route path="/manufacturers/:id" element={<ManufacturerDetail />} />
|
||||
<Route path="/part-models" element={<PartModels />} />
|
||||
|
||||
Reference in New Issue
Block a user