App icon indicating copy to clipboard operation
App copied to clipboard

Chat Room -Setting - Save button does not work after adding a new room name

Open kbecciv opened this issue 4 years ago • 12 comments

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:

  1. Go to https://staging.new.expensify.com
  2. Log in with expensifail account
  3. Choose any room
  4. Click Details this room
  5. Click Settings
  6. Click in box Room name and start changing the name
  7. 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:

View all open jobs on GitHub

kbecciv avatar Jan 12 '22 23:01 kbecciv

Triggered auto assignment to @robertjchen (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Jan 12 '22 23:01 MelvinBot

Thanks for the report!

robertjchen avatar Jan 13 '22 07:01 robertjchen

Triggered auto assignment to @bfitzexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Jan 13 '22 07:01 MelvinBot

It looks like the API for renaming is not built yet. https://github.com/Expensify/App/blob/a4d72f7214408380c5aa6cb029c0997911f38b50/src/pages/ReportSettingsPage.js#L144-L146

sobitneupane avatar Jan 13 '22 13:01 sobitneupane

Upwork job post here

bfitzexpensify avatar Jan 13 '22 14:01 bfitzexpensify

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (Exported)

MelvinBot avatar Jan 13 '22 14:01 MelvinBot

Triggered auto assignment to @Julesssss (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Jan 13 '22 14:01 MelvinBot

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

  1. 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.
  2. 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)
}}

thewebuiguy avatar Jan 13 '22 15:01 thewebuiguy

Lol yep, perhaps we already had an internal issue for this.

CC @TomatoToaster, do we still plan to implement this API?

Julesssss avatar Jan 13 '22 17:01 Julesssss

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.

Julesssss avatar Jan 24 '22 11:01 Julesssss

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!

TomatoToaster avatar Jan 25 '22 19:01 TomatoToaster

PRs deployed to staging yesterday!

luacmartins avatar Jan 25 '22 19:01 luacmartins