-
Notifications
You must be signed in to change notification settings - Fork 53
PM-13432: Update toast design to support title and subtitle #1039
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1039 +/- ##
==========================================
+ Coverage 89.15% 89.17% +0.02%
==========================================
Files 662 662
Lines 41596 41609 +13
==========================================
+ Hits 37085 37106 +21
+ Misses 4511 4503 -8 ☔ View full report in Codecov by Sentry. |
No New Or Fixed Issues Found |
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 great!
do { | ||
try await Task.sleep(nanoseconds: 3 * NSEC_PER_SEC) | ||
withAnimation { | ||
self.toast = nil |
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.
this is not really possible to test, right?
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.
Right, I don't think there's a way we can trigger this with view inspector.
func showToast(_ text: String) { | ||
navigator?.showToast(Toast(text: text)) | ||
func showToast(_ title: String, subtitle: String? = nil) { | ||
navigator?.showToast(Toast(title: title, subtitle: subtitle)) |
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.
same question here, we can't test this, right?
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.
Added a test for this!
🎟️ Tracking
PM-13432
📔 Objective
Updates the design of the toasts to match the new design. This new design includes support for a title and subtitle which required a bit of refactoring from just the text that existed previously.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes