-
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
Refactor UpdateAccount in App #9764
Conversation
Looks like you modified Instead, all new API commands should use API.js, and follow our guidelines for writing new API commands. Unsure if your change is okay? Drop a note in #expensify-open-source! |
* @param {Boolean} parameters.pinnedValue | ||
* @returns {Promise} | ||
*/ | ||
function Report_TogglePinned(parameters) { |
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.
I noticed that we refactored this command but didn't remove it from deprecatedAPI. So I'm removing it here
Putting this on hold until the Web-E PR hits prod. |
@MonilBhavsar this is ready for review! We are just waiting for Web-E to hit prod so we are ok to merge it! |
Reviewing it |
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 good and works fine!
https://github.com/Expensify/Web-Expensify/pull/34245 is in prod. Removing hold and merging! |
@luacmartins looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Tests passed and there were no issues in any of the files in this PR after merging main locally. Removing |
🚀 Deployed to staging by @luacmartins in version: 1.1.83-2 🚀
|
🚀 Deployed to production by @chiragsalian in version: 1.1.84-13 🚀
|
Details
UpdateAccount
expensifyNewsStatus
toisSubscribedToNewsletter
Report_TogglePinned
API commandcc @bondydaa
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/211596
Tests
Settings > Preferences
Notifications
and verify that it worksNetworks
tab, verify that a request toUpdateNewsletterSubscription
is triggered$response['jsonCode'] = 404;
hereNotifications
it is reverted back when the API request fails.PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Settings > Preferences
Notifications
and verify that it worksNotifications
toggle is still correctScreenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov