Skip to content

Conversation

@xameYeoh
Copy link
Collaborator

@xameYeoh xameYeoh commented Aug 6, 2025

  • Replace AB3 images in the app with ABM

  • Correct margins on UI screens with ABM images

  • Refactor and unify UI screens with ABM images under common ProgressFlowAB view

  • Fix issue with SD sync failing sometimes when having both Fixed and Mobile SD card data

@xameYeoh xameYeoh requested a review from mpanuszewska August 6, 2025 09:39
…handle "mobile&fixed" and "only fixed" as two separate processes to prevent simultaneous handling of fixed and mobile
Copy link
Collaborator

@mturnau mturnau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally I approve ;)

}

var syncImage: some View {
Image(airbeamImage)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not very important but is there sth like alt text for ios? like accessibility desc or sth

self.abImage = image(airbeamImageAsset)
self.continueButtonOnClickDestination = nil
self.continueButtonOnClick = continueButtonOnClick
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another minor remark: Is there a way to dry it out? not sure if this is the way to go in Swift (having multiple inits, even if they are v. similar). Maybe you can make structs or whatever like

enum ABImageSource {
    case view(AnyView)
    case asset(String)
}
enum ContinueAction {
    case navigation(AnyView)
    case action(@MainActor () -> Void)
    case none
}

and then have one init like

init(progress: Float, abImageSource: ABImageSource, title: String, message: String, continueAction: ContinueAction = .none
) {
    self.progress = progress
    self.abImageSource = abImageSource
    self.title = title
    self.message = message
    self.continueAction = continueAction
}

but possibly I'm thinking in over languages ;)

let title = if viewModel.isDownloadingFinished {
Strings.SyncingABView.finishingSyncTitle
} else if let progressTitle {
"Syncing \(progressTitle.lowercased()) \(progressCount ?? "")"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are't we keeping strings somewhere separate

@xameYeoh xameYeoh merged commit 01f5864 into develop Aug 29, 2025
1 check failed
@xameYeoh xameYeoh deleted the feat/replace-images-with-abm branch August 29, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants