Skip to content
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 Fields] Update 'deletable' fields to show as "remove field " vs. "empty" #35331

Closed
caitlinwhite1 opened this issue Jan 29, 2024 · 28 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Reviewing Has a PR in review

Comments

@caitlinwhite1
Copy link
Contributor

caitlinwhite1 commented Jan 29, 2024

The current funtionailty for Report Fields allows the user to set a value as "empty" to delete the field. We'll want to update the UI so it's more apparent to the end user. More contect in this thread,

If a report field exists within a report but has been removed from the policy, mark the report field as 'deletable' by showing "Remove field" in the overflow menu for each individual report field that becomes deletable. For Example:

  • If a field is called Department, then we’d show RBR next to the right caret for that field(just like shown in the details section in the below mock-up)
  • Then when you tap on that row for the report field and we push-to-page, you see the red error message below the field input.
Screenshot 2024-01-30 at 1 38 57 PM
@allroundexperts
Copy link
Contributor

@caitlinwhite1 Can I please get a UI screen of how this x would look like? Thanks!

@caitlinwhite1
Copy link
Contributor Author

@allroundexperts Yup! Let me grab something from Figma

@caitlinwhite1 caitlinwhite1 changed the title Update 'deletable' fields to show as "x" vs. "empty" Update 'deletable' fields to show as "remove field " vs. "empty" Jan 30, 2024
@caitlinwhite1
Copy link
Contributor Author

@allroundexperts I updated with the context from that slack thread but let me know if you need any other info!

@melvin-bot melvin-bot bot added the Monthly KSv2 label Feb 2, 2024
@allroundexperts
Copy link
Contributor

Thanks @caitlinwhite1. I was waiting for my other PR related to backend integration to get merged first. It got in Yesterday so I should be making a PR for this soon!

@allroundexperts
Copy link
Contributor

Update: Created a draft PR here. Waiting on @thienlnam to provide me with the API endpoint needed to delete the report field.

@allroundexperts
Copy link
Contributor

Hi @thienlnam!
Did you get a chance to create the endpoint needed to delete the report field?

@thienlnam
Copy link
Contributor

Yup, it's merged pending deploy - should be available on staging tomorrow. Here are those details

Endpoint: RemoveReportField
Parameters:

  • fieldID: field_id_21312

@allroundexperts
Copy link
Contributor

Still getting the following:

Screenshot 2024-02-19 at 5 53 22 AM

How do I set the server as staging in the App? I no longer see that option in preferences.

@thienlnam
Copy link
Contributor

Not sure, but it's on production now so you should be able to test there.

Also as a note - due to the way these are stored, you'll have to prefix the fieldID with expensify_

So same as the changes I made here #36769

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Monthly KSv2 labels Feb 25, 2024
@JmillsExpensify JmillsExpensify changed the title Update 'deletable' fields to show as "remove field " vs. "empty" [Report Fields] Update 'deletable' fields to show as "remove field " vs. "empty" Mar 12, 2024
@JmillsExpensify JmillsExpensify moved this to Release 1: Spring 2024 (May) in [#whatsnext] #expense Mar 12, 2024
@JmillsExpensify
Copy link

@allroundexperts quick note that we are trying to wrap up the report fields initiative by the end of this month. Do you think it'll be possible to get this PR merged by then?

@allroundexperts
Copy link
Contributor

allroundexperts commented Mar 13, 2024

@JmillsExpensify This is blocked on #36170 which is waiting changes from the backend. I'm not sure how long it will take for those changes to get in. This can not be completed until those are done.

@JmillsExpensify
Copy link

Nice, appreciate the color. I'm also going to go ahead and move this to our Polish section on a second read of the description. Ideally we can still get this merged before the end of the month!

@JmillsExpensify JmillsExpensify moved this from Release 1: Spring 2024 (May) to Polish in [#whatsnext] #expense Mar 15, 2024
@JmillsExpensify
Copy link

Circling back on this one, with the PR for #36170 now merged, are we good to pick this one back up?

@allroundexperts
Copy link
Contributor

Yes. I'll try to resolve the conflicts today and make it ready for review.

@jjcoffee
Copy link
Contributor

Hit production 2024-04-10, payment should be due tomorrow. cc @JmillsExpensify

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

This issue has not been updated in over 15 days. @allroundexperts, @thienlnam eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@caitlinwhite1
Copy link
Contributor Author

This deployed so i think we're all set to close!

#36039 (comment)

@jjcoffee
Copy link
Contributor

@caitlinwhite1 Please can you reopen as payment is due for the PR review? Thanks 🙏

@caitlinwhite1 caitlinwhite1 reopened this Apr 23, 2024
@caitlinwhite1 caitlinwhite1 added the Bug Something is broken. Auto assigns a BugZero manager. label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Monthly KSv2 labels Apr 23, 2024
@caitlinwhite1
Copy link
Contributor Author

@dylanexpensify reopening and adding bug label for payrment!

@dylanexpensify
Copy link
Contributor

dylanexpensify commented Apr 29, 2024

Nice one!

Payment summary:

Please apply or request!

@jjcoffee
Copy link
Contributor

Thanks, applied @dylanexpensify!

@allroundexperts
Copy link
Contributor

@dylanexpensify Can you write up my summary as well? 😄

@dylanexpensify
Copy link
Contributor

Yes!

@dylanexpensify
Copy link
Contributor

@jjcoffee sent offer! Also @allroundexperts updated original post btw!

@jjcoffee
Copy link
Contributor

jjcoffee commented May 1, 2024

@dylanexpensify Accepted, cheers!

@dylanexpensify
Copy link
Contributor

Paid @jjcoffee!

@JmillsExpensify
Copy link

$500 approved for @allroundexperts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Reviewing Has a PR in review
Projects
Status: Done
Development

No branches or pull requests

6 participants