Offer supply suggestions, drop the circuit column, center cells

The Versorgung field suggests ELT and MSR (plus values already used in
the balance) through a datalist and still accepts free text. The circuit
number column is not needed in early design phases; it is removed from
the data model, the regenerated migration 0010, the editor and the
print. All cells are centered except "Verbraucher / Flächen", group
titles and total labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Grovy311 2026-09-26 17:56:53 +02:00
parent e06c7d91e2
commit 72189d23a5
12 changed files with 60 additions and 42 deletions

View file

@ -27,7 +27,6 @@ CREATE TABLE `estimate_rows` (
`group_id` text NOT NULL,
`sort_order` integer DEFAULT 0 NOT NULL,
`supply` text,
`circuit_ref` text,
`name` text DEFAULT '' NOT NULL,
`quantity` real DEFAULT 0 NOT NULL,
`unit` text DEFAULT 'piece' NOT NULL,

View file

@ -1,7 +1,7 @@
{
"version": "6",
"dialect": "sqlite",
"id": "6df688bd-a78a-46a1-ba7a-4068119bf8bd",
"id": "5376ae9f-67c7-4603-b3d2-8527136436f9",
"prevId": "2cd9adef-2f08-4635-b3d9-ecf71f624c7f",
"tables": {
"buildings": {
@ -1322,13 +1322,6 @@
"notNull": false,
"autoincrement": false
},
"circuit_ref": {
"name": "circuit_ref",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",

View file

@ -75,7 +75,7 @@
{
"idx": 10,
"version": "6",
"when": 1790425784626,
"when": 1790438092269,
"tag": "0010_estimate_balances",
"breakpoints": true
}

View file

@ -44,7 +44,6 @@ export const estimateRows = sqliteTable(
.references(() => estimateGroups.id, { onDelete: "cascade" }),
sortOrder: integer("sort_order").notNull().default(0),
supply: text("supply"),
circuitRef: text("circuit_ref"),
name: text("name").notNull().default(""),
quantity: real("quantity").notNull().default(0),
unit: text("unit", { enum: ["piece", "area"] }).notNull().default("piece"),