-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use new UpdatePolicyRoomName api command #10237
Conversation
I'm holding on #10317 so I can use the util function |
Just a heads up that #10317 is merged now |
Yep, thanks for getting that merged in. I will try to finish this off soon. |
@@ -132,11 +132,11 @@ const MenuItem = props => ( | |||
</Text> | |||
</View> | |||
)} | |||
{props.brickRoadIndicator && ( | |||
{Boolean(props.brickRoadIndicator) && ( |
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.
Treat this as a boolean in case it's an empty string.
brickRoadIndicator: PropTypes.oneOf(['error']), | ||
/** If we need to show a brick road indicator or not. For now only value allowed is 'error' or '', | ||
* but we will add 'success' later for manual requests */ | ||
brickRoadIndicator: PropTypes.oneOf([CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR, '']), |
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.
The empty string is the empty value so that functions that get the brick road indicator property can always return a string.
@@ -91,6 +95,7 @@ class RoomNameInput extends Component { | |||
render() { | |||
return ( | |||
<TextInput | |||
ref={this.props.forwardedRef} |
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 added a ref so the input value can be cleared from the parent.
Ok, ready for another review please! Also, cc @Expensify/design to make sure it looks good. |
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! Just a few comments 👍🏽
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! |
Ready for another round of reviews. |
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.
Looking good. Spotted a small improvement.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Oh hmm did this need to HOLD on the production web deploy? The command we are calling doesn't exist yet 🙃 |
Looks like it is still on staging (we are probably OK as long as the production deploy goes out before the App deploy) but probably should have been on HOLD. |
Yeah true. I think it's fairly likely that the Web deploy will be done first. Is there anything I can do to make sure that happens? |
I think the easiest would be to put a deploy blocker label on this PR or the linked issue when it goes to staging. Not sure about the timing on that. In theory, QA should test this and it should fail QA if Web-Expensify is not deployed to production. |
https://github.com/Expensify/Web-Expensify/pull/34501 just hit production, going to remove the deploy blocker label. |
Ha sorry I was just about to say that. |
cc @marcaaron
Details
Use the refactored UpdatePolicyRoomName api command, add offline feedback, and add RBR indicators. The RBR indicators probably won't be used because it is very unlikely that there will be errors from this command since there is front end validation.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/212892
Tests
A. Basic rename
B. Offline tests
C. RBR tests
App/src/pages/ReportSettingsPage.js
Lines 167 to 169 in 7bdd021
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
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** 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
Tests A and B from above.
Screenshots
Web
Offline

RBR



Mobile Web
Desktop
iOS
Android