feat: update ingest, registry, and UI flows

This commit is contained in:
2026-02-15 21:50:35 +03:00
parent e6eca7cd50
commit 5518c3b405
35 changed files with 2615 additions and 497 deletions

View File

@@ -22,7 +22,7 @@
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Status</th>
<th>Name</th>
<th>Vendor Serial</th>
<th>Project</th>
@@ -34,11 +34,11 @@
{{range $i, $item := .Assets}}
{{if lt $i 5}}
<tr class="clickable" onclick="navigateToRow('/ui/assets/{{$item.ID}}')">
<td><a href="/ui/assets/{{$item.ID}}">{{$item.ID}}</a></td>
<td><span class="badge {{assetStatusClass (index $.AssetStatusByID $item.ID)}}">{{assetStatusText (index $.AssetStatusByID $item.ID)}}</span></td>
<td>{{$item.Name}}</td>
<td>{{$item.VendorSerial}}</td>
<td>{{$item.ProjectID}}</td>
<td>{{if $item.LocationID}}{{$item.LocationID}}{{else}}—{{end}}</td>
<td>{{projectName $item.ProjectID $.ProjectByID}}</td>
<td>{{locationName $item.LocationID $.LocationByID}}</td>
<td title="{{formatTimeFull $item.CreatedAt}}">{{formatTime $item.CreatedAt}}</td>
</tr>
{{end}}
@@ -57,7 +57,7 @@
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Status</th>
<th>Vendor Serial</th>
<th>Lot</th>
<th>First Seen</th>
@@ -68,9 +68,9 @@
{{range $i, $item := .Components}}
{{if lt $i 5}}
<tr class="clickable" onclick="navigateToRow('/ui/components/{{$item.ID}}')">
<td><a href="/ui/components/{{$item.ID}}">{{$item.ID}}</a></td>
<td>{{$item.VendorSerial}}</td>
<td>{{if $item.LotID}}{{$item.LotID}}{{else}}—{{end}}</td>
<td><span class="badge {{componentStatusClass (index $.ComponentStatusByID $item.ID)}}">{{componentStatusText (index $.ComponentStatusByID $item.ID)}}</span></td>
<td>{{componentLabelByID $item.ID $.ComponentLabelByID}}</td>
<td>{{lotCode $item.LotID $.LotCodes}}</td>
<td title="{{formatTimePtrFull $item.FirstSeenAt}}">{{formatTimePtr $item.FirstSeenAt}}</td>
<td title="{{formatTimeFull $item.CreatedAt}}">{{formatTime $item.CreatedAt}}</td>
</tr>