Fix honeycomb grid sizing, alpha, and stroke styling

- Fix hex sizing to use aspectRatio layout instead of GeometryReader
- Remove hardcoded height estimation that caused gap between header and grid
- Set fill alpha to 0.3 and add 0.7 alpha stroke on colored hexagons
- Use 12 rows consistently
- Add forceRefresh parameter to getResidence

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-14 00:44:41 -05:00
parent 7689027bdd
commit cf2e6d8bcc
2 changed files with 54 additions and 68 deletions

View File

@@ -136,7 +136,7 @@ class ResidenceViewModel: ObservableObject {
}
}
func getResidence(id: Int32) {
func getResidence(id: Int32, forceRefresh: Bool = false) {
if UITestRuntime.shouldMockAuth {
selectedResidence = Self.uiTestMockResidences.first(where: { $0.id == id })
isLoading = false
@@ -149,7 +149,7 @@ class ResidenceViewModel: ObservableObject {
Task {
do {
let result = try await APILayer.shared.getResidence(id: id, forceRefresh: false)
let result = try await APILayer.shared.getResidence(id: id, forceRefresh: forceRefresh)
if let success = result as? ApiResultSuccess<ResidenceResponse> {
self.selectedResidence = success.data