Fix TokenStorage stale cache bug and add user-friendly error messages

- Fix TokenStorage.getToken() returning stale cached token after login/logout
- Add comprehensive ErrorMessageParser with 80+ error code mappings
- Add Suite9 and Suite10 UI test files for E2E integration testing
- Fix accessibility identifiers in RegisterView and ResidenceFormView
- Fix UITestHelpers logout to target alert button specifically
- Update various UI components with proper accessibility identifiers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-12-17 11:48:35 -06:00
parent b05e52521f
commit bcd8b36a9b
24 changed files with 1653 additions and 232 deletions

View File

@@ -82,9 +82,12 @@ struct ContractorFormSheet: View {
Section {
Button(action: { showingResidencePicker = true }) {
HStack {
Image(systemName: "house")
Image("house_outline")
.renderingMode(.template)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 20, height: 20)
.foregroundColor(Color.appPrimary)
.frame(width: 24)
Text(selectedResidenceName ?? L10n.Contractors.personalNoResidence)
.foregroundColor(selectedResidenceName == nil ? Color.appTextSecondary.opacity(0.7) : Color.appTextPrimary)
Spacer()