[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
| <ReportActionItemSingle | ||
| action={parentReportAction} | ||
| showHeader={!props.draftMessage} | ||
| wrapperStyles={[styles.chatItem]} |
There was a problem hiding this comment.
Why was this prop removed?
There was a problem hiding this comment.
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
|
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
useThemeStylesanduseThemehooks 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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