-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Theme Switching Migration] Report #31728
[Theme Switching Migration] Report #31728
Conversation
@sobitneupane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
…ture/31682-theme-switching-migration-report
@@ -586,7 +586,6 @@ function ReportActionItem(props) { | |||
<ReportActionItemSingle | |||
action={parentReportAction} | |||
showHeader={!props.draftMessage} | |||
wrapperStyles={[styles.chatItem]} |
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.
Why was this prop removed?
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 I added it internally to ReportActionItemSingle by default. This component is being used in 2 places and the same style was passed twice.
This reverts commit 1c42c55.
@rezkiy37 could you try merging main for performance tests? |
…ture/31682-theme-switching-migration-report
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.
LGTM! 🚀
Should this PR include changes to fix hovering over messages on web? @grgia This is currently still broken... |
@chrispader so long as the hook is working correctly, I think we can address colors/theme fixes in the final PR |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
sounds good 👍 |
…ture/31682-theme-switching-migration-report
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.5-1 🚀
|
@rezkiy37 Can you please share the QA steps? It seems we can't test at our end. |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.5-7 🚀
|
Details
This PR refactors the code to use the dynamic theme/styling object, by using
useThemeStyles
anduseTheme
hooks in favor of static imports, to enable app wide theme switching.Fixed Issues
$ #31682
PROPOSAL: N/A
Tests
src/pages/home/report/ReportActionItemSingle.js
)src/pages/home/report/ReportActionItemGrouped.js
)src/pages/home/report/ReportActionItemSingle.js
)src/pages/home/report/ReportActionItemGrouped.js
)src/components/HTMLEngineProvider/BaseHTMLEngineProvider.js
)src/components/PDFView/index.js
,src/components/Attachments/AttachmentView/AttachmentViewPdf/index.android.js
)src/components/MenuItem.js
,src/components/ContextMenuItem.js
,src/styles/getContextMenuItemStyles/index.native.ts
,src/styles/getContextMenuItemStyles/index.ts
)src/components/MenuItem.js
,src/components/ContextMenuItem.js
,src/styles/getContextMenuItemStyles/index.native.ts
,src/styles/getContextMenuItemStyles/index.ts
)src/components/MenuItem.js
,src/components/ContextMenuItem.js
,src/styles/getContextMenuItemStyles/index.native.ts
,src/styles/getContextMenuItemStyles/index.ts
)src/components/InlineSystemMessage.tsx
)Apply this change and test again:
Offline tests
Same as "Tests".
QA Steps
Note: "Correctly" means that the same as it was before.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Not required
Android: mWeb Chrome
Not required
iOS: Native
Not required
iOS: mWeb Safari
Not required
MacOS: Chrome / Safari
Not required
MacOS: Desktop
Not required