-
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
Report Details and Settings for User Created Policy Rooms #7028
Conversation
f9b80df
to
0d2e0e7
Compare
Ok now it's ready for another review, I addressed all of @jasperhuangg's comments too now. For the |
I think styles and inner styles are clear enough. You're saying you'd need to change every use of Button to use containerStyles, which I don't think is necessary (also I'd wanna get a second opinion too). Looks good! |
✋ 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 @yuwenmemon in version: 1.1.27-2 🚀
|
🚀 Deployed to staging by @yuwenmemon in version: 1.1.27-3 🚀
|
🚀 Deployed to staging by @yuwenmemon in version: 1.1.27-3 🚀
|
@TomatoToaster #7055 is not fixed for Web and mWeb. Blank screen appears clicking room name to view the details. |
translationKey: 'common.members', | ||
icon: Expensicons.Users, | ||
subtitle: props.report.participants.length, | ||
action: () => { Navigation.navigate(ROUTES.getReportParticipantsRoute(props.report.reportID)); }, |
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.
You mentioned some bugs on our call recently, and I was just writing something else in this file. I could be wrong but I think you need this.props....
here. (same on the subtitle key above and the action for settings
below.
✋ |
I am tagging this PR to highlight an issue fixed here. All conditions in ternary expressions or left-hand operands on conditional renders, should be boolean. This PR is one of the PRs that uses conditional render with string operands, hence I am tagging it here for the contributors to check. We've also updated the item in the checklist with this PR to avoid this issue in the future. |
CC: @jasperhuangg, @yuwenmemon
Details
Configures the report details page as well adding the new report settings page for User Created Policy Rooms.
Also adds a buttonStyle feature to the Button component since previously it would not let you set custom sizes/padding for the actual button portion of the component.
Also componentizes the TextInput used for RoomName, this way it'll work with both WorkspaceNewRoomPage.js and ReportSettingsPage.js. Since they both care about the changing text (i.e. roomName) as well as the error, I had the RoomNameInput component bubble up whenever the text OR error changes (see componentDidUpdate). This was the best way I could find to share functionality in RoomNameInput, while also letting each component handle the roomName in their own way. RoomNameInput also correctly checks against other reports within a given policyID for name changes. I've tested that this works in
WorkspaceNewRoomPage
as well where it will prevent you from making Policy Rooms with duplicate names on the same Workspace.The the
Invite
,Leave Room
and theSave
button in the Settings, Room Name sections are non-functional at the moment, I've replaced them with/* Placeholder Comments */
for now since they need to be built and added to Web-E/Auth in other PRs. This PR being merged would unblock those other features.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/176851
Tests/ QA Steps
On an account that already has a workspace
Note that the
Invite
,Leave Room
and theSave
button in the Settings, Room Name sections are non-functional at the moment. They will be added in later PRs, this PR just sets those features up visually.Tested On
Screenshots
Policy Room Details:
Policy Room Settings (Restricted):
Policy Room Settings (Private):
Default Room Details:
Default Room Settings: