-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: individual to team migration ui - WPB-10347 #2135
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, adding a few comments as a first feedback before approval
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/BackButton.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/CallToActionButton.swift
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/FeatureDescriptionComponent.swift
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/Checkbox.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/PageContainer.swift
Outdated
Show resolved
Hide resolved
|
||
import Foundation | ||
|
||
extension AttributedString { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we would like to reuse this on other modules too, would WireFoundation be appropriate ? cc @caldrian wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should we do, @netbe ?
WireUI/Sources/WireIndividualToTeamMigrationUI/Views/CompletionView.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Views/CompletionView.swift
Outdated
Show resolved
Hide resolved
|
||
var body: some View { | ||
VStack(alignment: .leading, spacing: 24) { | ||
Text(String.localized(key: "individualToTeam.confirmation.body", bundle: .module)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: do we have to specify .module
here or is the default looking at the localizable table of the module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the documentation for String.init(localized:table:bundle:locale:comment:)
states that if the bundle
parameter is nil
(and it defaults to nil
), "an app searches its main bundle", which obviously doesn't contain our module's strings.
But our method could default to .module
. It really depends on how you intend to use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you want to do @netbe ?
WireUI/Tests/WireIndividualToTeamMigrationUITests/WireIndividualToTeamMigrationTests.swift
Show resolved
Hide resolved
@El-Fitz be careful I think the design have been slightly updated in Figma: i.e replaced the backbutton with navigation back button |
Yes, I updated the UI. I'll push those changes and update the screenshots. |
The screenshots have been updated, and you can use the preview in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some questions regarding the colors we use and a couple of suggestions! Thanks @El-Fitz!
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/BackButton.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/BackButton.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/CallToActionButton.swift
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/CallToActionButton.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/Checkbox.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/Components/PageContainer.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/IndividualToTeamMigrationViewController.swift
Outdated
Show resolved
Hide resolved
WireUI/Sources/WireIndividualToTeamMigrationUI/IndividualToTeamMigrationViewController.swift
Outdated
Show resolved
Hide resolved
@agisilaos Should be all done, regarding the colors & accessibility labels. |
12300f5
to
7ebdca4
Compare
Test Results1 tests 1 ✅ 0s ⏱️ Results for commit 7ebdca4. |
Issue
Implement the UI for individual to team migration.
Testing
The SwiftUI previews can be found in
WireUI/Sources/WireIndividualToTeamMigrationUI/Views/Previews
.Use
WireUI/Sources/WireIndividualToTeamMigrationUI/Views/Previews/_FeaturePreview
to test the whole flow.Checklist
[WPB-XXX]
.UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: