Implement async manual CSV ingest, unified UI pagination/filters, and serial placeholder strategy

This commit is contained in:
2026-02-21 22:14:04 +03:00
parent ca762a658b
commit c84102d2f1
44 changed files with 3314 additions and 342 deletions

View File

@@ -10,7 +10,6 @@ import (
type EntityType string
const (
Project EntityType = "project"
Asset EntityType = "machine" // Renamed from asset
Component EntityType = "part" // Renamed from component
Installation EntityType = "installation"
@@ -22,7 +21,6 @@ const (
// Prefix mapping for each entity type
var prefixMap = map[EntityType]string{
Project: "PJ",
Asset: "ME", // Machine
Component: "PT", // Part
Installation: "IN",

View File

@@ -25,11 +25,11 @@ func TestParseIDInvalid(t *testing.T) {
}
func TestGetPrefix(t *testing.T) {
prefix, err := GetPrefix(Project)
prefix, err := GetPrefix(Asset)
if err != nil {
t.Fatalf("GetPrefix() error = %v", err)
}
if prefix != "PJ" {
if prefix != "ME" {
t.Fatalf("GetPrefix() = %s", prefix)
}
}