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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user