feat: editable unit/group IDs with full cascade

- Unit ID rename: updates group.baseUnitId refs + {old-id:*} in all descriptions
- Group ID rename: updates unit.group refs + {old-id:*} in all descriptions
- Admin form ID fields unlocked; hint text updated
- renameIdInDescription() shared helper in both PUT handlers
This commit is contained in:
Falkan
2026-03-18 20:46:36 -04:00
parent 7d79284fd7
commit 1308b1f96f
4 changed files with 86 additions and 17 deletions

View File

@@ -24,7 +24,9 @@
"labelPlural": "barrels",
"symbol": "bbl",
"group": "dickloads",
"toBase": 19
"toBase": 13.319,
"description": "Weight is based on pure water at 4 degrees celsius.",
"hidden": false
},
{
"id": "hogshead",
@@ -101,6 +103,14 @@
"group": "another-group",
"toBase": 1,
"hidden": true
},
{
"id": "us-fluid-bbl",
"label": "US fluid barrel",
"labelPlural": "US fluid barrels",
"symbol": "us fluid bbl",
"group": "dickloads",
"toBase": 9.9894438
}
],
"groups": [