Chat Room -Setting - Save button does not work after adding a new room name
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Go to https://staging.new.expensify.com
- Log in with expensifail account
- Choose any room
- Click Details this room
- Click Settings
- Click in box Room name and start changing the name
- Tap on Save button
Expected Result:
Able to save a new name for Room
Actual Result:
Save button does not work after adding a new name
Workaround:
Unknown
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.1.29.1
Reproducible in staging?: Yes
Reproducible in production?: No
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: Applause
https://user-images.githubusercontent.com/93399543/149237848-74f37472-14e0-438f-9256-b2c21a54a89f.mp4
Slack conversation:
Triggered auto assignment to @robertjchen (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Thanks for the report!
Triggered auto assignment to @bfitzexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
It looks like the API for renaming is not built yet. https://github.com/Expensify/App/blob/a4d72f7214408380c5aa6cb029c0997911f38b50/src/pages/ReportSettingsPage.js#L144-L146
Upwork job post here
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (Exported)
Triggered auto assignment to @Julesssss (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Looks like the actual code being called doesn't have anything there.
onPress={() => {
// When renaming is built, this will use that API command
}}
There are two options I can see
- See if the api exists if not then show an alert that the feature is not yet ready, if it is then call the api functionality.
- Add the functionality assuming that the api command is in place
How this would look ( with some psuedo code )
onPress={() => {
ReportApi.update({ ...report, name: this.state.newRoomName })
.then(response => // handle the response show success alert?)
.catch(error => // show notification that either somethings gone wrong or the report api doesnt exist)
}}
Lol yep, perhaps we already had an internal issue for this.
CC @TomatoToaster, do we still plan to implement this API?
Okay, so the API hasn't been implemented yet and I can't find an internal issue. We'll need to hold this issue until then.
I will do this at some point over the next few weeks.
Hey we actually are implementing this internally. @luacmartins has been working on it. We have an internal issue for it here: https://github.com/Expensify/Expensify/issues/176854 so this is a duplicate of that. Sorry I missed your earlier tag!
PRs deployed to staging yesterday!