-
Notifications
You must be signed in to change notification settings - Fork 984
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
Refactor toast
component to use theme context
#16711
Conversation
Jenkins BuildsClick to see older builds (33)
|
028b2d1
to
ba6942d
Compare
89% of end-end tests have passed
Failed tests (4)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Passed tests (32)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePR:
|
Marking as draft as we will need to update text, and icon components to use theme context (those styles are overriding from toast), and update toast with a theme provider. |
cdf2e54
to
8e457c1
Compare
toast
componenttoast
component to use theme context
8e457c1
to
cdcfddb
Compare
86% of end-end tests have passed
Failed tests (5)Click to expandClass TestCommunityOneDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Passed tests (31)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePR:
|
hi @smohamedjavid thank you for PR. Take a look please, one issue if found ISSUE 1: [Android] The highlighted background around the text is shown on the toast when dark mode is usedSteps:
Actual result:The highlighted background around the text is shown (it is slightly visible) Expected result:Devices:
|
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.
Nice PR @smohamedjavid
2b2733a
to
1600135
Compare
@VolodLytvynenko - Thanks for testing the PR!
The issue is fixed. Kindly retest. |
✔️ status-mobile/prs/android/PR-16711#9 🔹 ~6 min 15 sec 🔹 2b2733a 🔹 📦 android package |
85% of end-end tests have passed
Failed tests (6)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Passed tests (33)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
|
Hi @smohamedjavid thank you for fixes. No issues from my side. PR is ready to be merged |
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
1600135
to
8f3693a
Compare
Summary
This PR refactors the
Toast
component to use theme context for consistency across the codebase.Each toast will have its own
theme-provider
which will help the children to use the context properly without interfering with other toast's context.Below is an example of providing a specific theme for toast.
Changes done:
Following components are refactored to use
with-theme
/theme-context
:text
componentuser-avatar
componenticon
componentcircle-timer
componentThis PR also updates the icon keyword used in the
:toasts/upsert
event dispatch to respect icon guidelines.Testing notes
Please test whether all the Toasts across the application are working as expected on both light mode and dark mode.
Please test the Toasts in Syncing process as it is dark-themed. It should not change depending on the user's theme.
If any issue is encountered, kindly check whether the issue is reproducible with nightly or the latest
develop
branch. This would help us to identify issues due to changes in this PR and resolve them.Platforms
status: ready