-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
VtoC: Prototype #23205
VtoC: Prototype #23205
Conversation
Generated by 🚫 Danger |
9094ff8
to
4e7cf01
Compare
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
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 understand that this is a prototype / a foundation to build on, so I haven't done a thorough test. The happy path seems to work well, but I noticed that if you record without saying anything, then tap "Done", the flow generates a paragraph block with the text "Thank you."
host.modalPresentationStyle = .formSheet | ||
} else { | ||
if let sheetController = host.sheetPresentationController { | ||
sheetController.detents = [.medium()] |
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.
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 suggest addressing it when we start working on the final design.
@@ -24,8 +24,7 @@ import WordPressUI | |||
private let noticeAnimator = NoticeAnimator(duration: 0.5, springDampening: 0.7, springVelocity: 0.0) | |||
|
|||
private func notice(for blog: Blog) -> Notice { | |||
let showsStories = blog.supports(.stories) | |||
let title = showsStories ? NSLocalizedString("Create a post, page, or story", comment: "The tooltip title for the Floating Create Button") : NSLocalizedString("Creates new post, or page", comment: " Accessibility hint for create floating action button") | |||
let title = NSLocalizedString("Creates new post, or page", comment: " Accessibility hint for create floating action button") |
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 wonder if we should use the same copy as showCreateButton - "Create a post or page"
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.
Good point – I moved this to Stings
too.
wpAssertionFailure("blog missing") | ||
return | ||
} | ||
let viewModel = VoiceToContentViewModel(blog: blog) { [ weak self] transcription 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.
[nit]
let viewModel = VoiceToContentViewModel(blog: blog) { [ weak self] transcription in | |
let viewModel = VoiceToContentViewModel(blog: blog) { [weak self] transcription 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.
Fixed
Text("File size limit: 25 MB") | ||
Text("Recording time limit: 5 minutes") |
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.
Are these hardcoded values?
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.
Yeah, I added a todo in the latest PR.
var body: some View { | ||
VStack(spacing: 34) { | ||
VStack(spacing: 16) { | ||
Text("Post from Audio") |
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.
Can you make the strings in this file localizable strings? Thanks!
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.
On second thought, I can do this when I implement the updated design
huh, good catch. I wonder if we can even do anything about it. |
4e7cf01
to
50c0995
Compare
Part of https://github.com/Automattic/wordpress-mobile/issues/102
To test:
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: