Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@
// Action buttons
VStack(spacing: WizardDesign.Spacing.elementGap) {
if commStatus.isSuccess {
Button(nextStepButtonTitle) {

Check warning on line 92 in Sources/KeyPathAppKit/InstallationWizard/WizardCommunicationPage.swift

View workflow job for this annotation

GitHub Actions / code-quality

Interactive UI element (Button/Toggle/Picker) should have .accessibilityIdentifier() modifier. See ACCESSIBILITY_COVERAGE.md (require_accessibility_identifier)
navigateToNextStep()
}
.buttonStyle(WizardDesign.Component.PrimaryButton())
.keyboardShortcut(.defaultAction)
.padding(.top, WizardDesign.Spacing.sectionGap)

Button("Re-check Status") {

Check warning on line 99 in Sources/KeyPathAppKit/InstallationWizard/WizardCommunicationPage.swift

View workflow job for this annotation

GitHub Actions / code-quality

Interactive UI element (Button/Toggle/Picker) should have .accessibilityIdentifier() modifier. See ACCESSIBILITY_COVERAGE.md (require_accessibility_identifier)
Task { await checkCommunicationStatus() }
}
.buttonStyle(WizardDesign.Component.SecondaryButton())
} else if commStatus.canAutoFix {
Button(commStatus.fixButtonText) {

Check warning on line 104 in Sources/KeyPathAppKit/InstallationWizard/WizardCommunicationPage.swift

View workflow job for this annotation

GitHub Actions / code-quality

Interactive UI element (Button/Toggle/Picker) should have .accessibilityIdentifier() modifier. See ACCESSIBILITY_COVERAGE.md (require_accessibility_identifier)
Task { await performAutoFix() }
}
.buttonStyle(WizardDesign.Component.PrimaryButton(isLoading: isFixing))
Expand All @@ -110,19 +110,25 @@
.frame(minHeight: 44)
.padding(.top, WizardDesign.Spacing.itemGap)

Button("Re-check Status") {

Check warning on line 113 in Sources/KeyPathAppKit/InstallationWizard/WizardCommunicationPage.swift

View workflow job for this annotation

GitHub Actions / code-quality

Interactive UI element (Button/Toggle/Picker) should have .accessibilityIdentifier() modifier. See ACCESSIBILITY_COVERAGE.md (require_accessibility_identifier)
Task { await checkCommunicationStatus() }
}
.buttonStyle(WizardDesign.Component.SecondaryButton())
.disabled(isFixing)
} else if commStatus == .checking || isAuthTesting {
Button("Checking...") {}
.buttonStyle(WizardDesign.Component.PrimaryButton(isLoading: true))
.disabled(true)
.frame(minHeight: 44)
.padding(.top, WizardDesign.Spacing.itemGap)
// Show an honest progress indicator rather than a disabled
// button, which reads as a frozen/unresponsive control (#680).
HStack(spacing: WizardDesign.Spacing.labelGap) {
ProgressView()
.controlSize(.small)
Text("Checking…")
.foregroundStyle(.secondary)
}
.frame(minHeight: 44)
.padding(.top, WizardDesign.Spacing.itemGap)
.accessibilityIdentifier("wizard-comm-checking-indicator")
} else {
Button("Re-check Status") {

Check warning on line 131 in Sources/KeyPathAppKit/InstallationWizard/WizardCommunicationPage.swift

View workflow job for this annotation

GitHub Actions / code-quality

Interactive UI element (Button/Toggle/Picker) should have .accessibilityIdentifier() modifier. See ACCESSIBILITY_COVERAGE.md (require_accessibility_identifier)
Task { await checkCommunicationStatus() }
}
.buttonStyle(WizardDesign.Component.PrimaryButton())
Expand Down Expand Up @@ -445,7 +451,7 @@
Task {
if let nextPage = await stateMachine.getNextPage(for: systemState, issues: issues),
nextPage != stateMachine.currentPage
{

Check warning on line 454 in Sources/KeyPathAppKit/InstallationWizard/WizardCommunicationPage.swift

View workflow job for this annotation

GitHub Actions / code-quality

Opening braces should be preceded by a single space and on the same line as the declaration (opening_brace)
stateMachine.navigateToPage(nextPage)
} else {
stateMachine.navigateToPage(.summary)
Expand Down
Loading