-
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
[TS migration] Migrate 'GrowlNotification' component to TypeScript #32942
[TS migration] Migrate 'GrowlNotification' component to TypeScript #32942
Conversation
src/components/GrowlNotification/GrowlNotificationContainer/index.tsx
Outdated
Show resolved
Hide resolved
merge main into ts-migration/growl-notification
src/components/GrowlNotification/GrowlNotificationContainer/types.ts
Outdated
Show resolved
Hide resolved
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!
cc: @kubabutkiewicz |
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
Please refer to this conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1704193571187889 This PR is currently blocked and I'm waiting for Bank Refactor PR to be merged into main, after which we should look into removing the Growl from the application and swapping it for internally declared functionality. After the PR is merged I will work on finding non-growl ways of replacing the old functionality. |
As an update, Bank Refactor PR has been merged and we've decided to keep the Growl code and just migrate it to TS. |
Let's fix lint and make this PR as ready for review @cdOut |
@blazejkustra working on it right now, currently writing test steps and recording videos. |
merge main into ts-migration/growl-notification
@cubuspl42 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] |
Reviewer Checklist
Screenshots/VideosAndroid: Nativegrowl-notification-ts-android-compressed.mp4Android: mWeb Chromegrowl-notification-ts-android-web-compressed.mp4iOS: Nativegrowl-notification-ts-ios-compressed.mp4iOS: mWeb Safarigrowl-notification-ts-ios-web-compressed.mp4MacOS: Chrome / Safarigrowl-notification-ts-web-converted.mp4MacOS: Desktopgrowl-notification-ts-desktop-converted.mp4 |
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.
As a non-US person, I also had issues with Wallet configuration in the past. Maybeee we could try triggering an error in the sandbox, but I'm unsure whether it would work. I think that testing this programmatically will be good enough here.
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25127 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@cubuspl42 could you please approve it again so we can get an internal engineer assigned to this task? |
merge main into ts-migration/growl-notification
@hayata-suenaga I've implemented your review suggestions, could you please check the PR again? |
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.
🟢
@hayata-suenaga looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.4.52-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.52-6 🚀
|
Details
Migrated GrowlNotification and all the related components to TypeScript.
Fixed Issues
$ #25127
Tests
Growl.show('Programatically created notification', CONST.GROWL.SUCCESS, 3000);
into useEffect of any rendered component. I added it to the WalletPage component)Offline tests
QA Steps
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(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
ANDROID-NATIVE.mov
Android: mWeb Chrome
ANDROID-CHROME.mov
iOS: Native
IOS-NATIVE.mov
iOS: mWeb Safari
IOS-SAFARI.mov
MacOS: Chrome / Safari
CHROME.mov
MacOS: Desktop
DESKTOP.mov