feat: Updates to home / landing page.
All checks were successful
CI / Linux Tests (push) Successful in 6m32s

This commit is contained in:
2026-02-08 19:12:52 -05:00
parent bb88d48eb3
commit e4ddec0d53
10 changed files with 354 additions and 208 deletions

View File

@@ -1,5 +1,5 @@
Name,Heating Load,Cooling Total,Cooling Sensible,Register Count,Delegated To
Bed-1,12345,1234,1321,1,
Bed-1,2345,1234,1321,1,
Entry,3456,2345,1234,1,
Kitchen,7654,3456,2453,2,
Bath-1,890,345,,1,Kitchen
Bath-1,890,345,,0,Kitchen
1 Name Heating Load Cooling Total Cooling Sensible Register Count Delegated To
2 Bed-1 12345 2345 1234 1321 1
3 Entry 3456 2345 1234 1
4 Kitchen 7654 3456 2453 2
5 Bath-1 890 345 1 0 Kitchen

View File

@@ -77,16 +77,13 @@ struct RoomTests {
let csvPath = Bundle.module.path(forResource: "rooms", ofType: "csv")
let csvFile = Room.CSV(file: try Data(contentsOf: URL(filePath: csvPath!)))
let rows = try await csvParser.parseRooms(csvFile)
print()
print("ROWS: \(rows)")
print()
let created = try await database.rooms.createFromCSV(project.id, rows)
print()
print("CREATED: \(created)")
print()
#expect(created.count == rows.count)
// Check that delegating to another room works properly.
let bath = created.first(where: { $0.name == "Bath-1" })!
let kitchen = created.first(where: { $0.name == "Kitchen" })!
#expect(bath.delegatedTo == kitchen.id)
}
}