-
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
fix/15625: Workspace name is not present in header on connect bank account page #16102
Conversation
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.
Nicely done on this PR @tienifr.
Just a couple of comments on the prop types.
@@ -44,6 +44,9 @@ const propTypes = { | |||
/** Is the user account validated? */ | |||
validated: PropTypes.bool, | |||
}), | |||
|
|||
/* The workspace name */ | |||
policyName: PropTypes.string.isRequired, |
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 don't think we need policyName
to be required. The page still accessible without providing policyID
to the route params.
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.
@mollfpr I just removed required and add the default policyName in all places. Could you help to review again?
@@ -37,6 +36,9 @@ const propTypes = { | |||
name: PropTypes.string, | |||
}).isRequired, | |||
|
|||
/* The workspace name */ | |||
policyName: PropTypes.string.isRequired, |
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.
Same as the above.
@@ -31,6 +32,9 @@ const propTypes = { | |||
/* Onyx Props */ | |||
user: userPropTypes.isRequired, | |||
|
|||
/* The workspace name */ | |||
policyName: PropTypes.string.isRequired, |
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.
Same as the above.
Reviewer Checklist
Screenshots/Videos |
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.
@mountiny Can you take a look at this PR and provide feedback? |
Yes, had to restart the PR reviewer checklist job. |
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.
✋ 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/mountiny in version: 1.2.89-0 🚀
|
@tienifr How to trigger that error page? |
@mountiny Yes it works in other pages. |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.89-0 🚀
|
Details
This PR will add the workspace name in the subtitle of the Connect bank account pages
Fixed Issues
$ #15625
PROPOSAL: #15625 (comment)
Tests
Offline tests
Same above
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** comment above it */
this
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)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android