Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

hide delete option for multilevel tags #41552

Closed gijoe0295 closed 1 week ago

gijoe0295 commented 2 weeks ago

Details

This PR hides the delete option for multilevel tags.

Fixed Issues

$ https://github.com/Expensify/App/issues/38683 PROPOSAL: https://github.com/Expensify/App/issues/38683#issuecomment-2083477820

Tests

  1. In OD, enable People must tag expenses and Use multiple level of tags
  2. Import multilevel tags from spreadsheet (sample)
  3. In ND, go to the workspace tags page
  4. Select any tag >> Press the header buttons group
  5. Verify there's no Delete tag option
  6. Open any tag details page
  7. Verify 3 dots button does not show

Offline tests

NA

QA Steps

  1. In OD, enable People must tag expenses and Use multiple level of tags
  2. Import multilevel tags from spreadsheet (sample)
  3. In ND, go to the workspace tags page
  4. Select any tag >> Press the header buttons group
  5. Verify there's no Delete tag option
  6. Open any tag details page
  7. Verify 3 dots button does not show

PR Author Checklist

Screenshots/Videos

Android: Native ![photo_2024-05-03_10-38-58](https://github.com/Expensify/App/assets/153004152/622a1fab-8587-46c0-92bd-8820851fd83b) ![photo_2024-05-03_10-38-55](https://github.com/Expensify/App/assets/153004152/10f5fdf4-1e52-480a-89c6-0e8ba4770a9b)
Android: mWeb Chrome ![photo_2024-05-03_10-28-56](https://github.com/Expensify/App/assets/153004152/289d0605-f31f-4acd-b119-99813a446d08) ![photo_2024-05-03_10-28-54](https://github.com/Expensify/App/assets/153004152/c2f1e190-64af-4892-91c5-9798d4921a60)
iOS: Native ![Simulator Screenshot - iPhone 15 Pro Max - 2024-05-03 at 10 04 01](https://github.com/Expensify/App/assets/153004152/6b3fd9e6-5e12-4e06-a7b7-b7f083e50736) ![Simulator Screenshot - iPhone 15 Pro Max - 2024-05-03 at 10 04 05](https://github.com/Expensify/App/assets/153004152/f4c2bae9-8130-4c2b-a57a-0c0265b6499e)
iOS: mWeb Safari ![Simulator Screenshot - iPhone 15 Pro Max - 2024-05-03 at 09 59 56](https://github.com/Expensify/App/assets/153004152/dd451fff-6d8d-43ff-9378-7990f7b45d2c) ![Simulator Screenshot - iPhone 15 Pro Max - 2024-05-03 at 10 00 00](https://github.com/Expensify/App/assets/153004152/bf311e4a-38c5-46ae-858b-2304b1e33e3b)
MacOS: Chrome / Safari Screenshot 2024-05-03 at 09 53 05 Screenshot 2024-05-03 at 09 53 00 Screenshot 2024-05-03 at 09 52 55
MacOS: Desktop Screenshot 2024-05-03 at 09 58 25 Screenshot 2024-05-03 at 09 58 21
melvin-bot[bot] commented 2 weeks ago

@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

allroundexperts commented 1 week ago

Hi @gijoe0295!

Can you please resolve conflicts?

gijoe0295 commented 1 week ago

@allroundexperts Done!

allroundexperts commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native Android build failing for me.
Android: mWeb Chrome https://github.com/Expensify/App/assets/30054992/489e3740-df32-4d8a-a56e-2b972830c034
iOS: Native https://github.com/Expensify/App/assets/30054992/5a35a22e-aa74-4952-bbf4-d63c8b901da9
iOS: mWeb Safari https://github.com/Expensify/App/assets/30054992/d086e07b-3b39-4df6-9eaa-644ae491dde6
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/30054992/613d6ca2-d7dc-4452-a4f2-e5061ce29e6b
MacOS: Desktop https://github.com/Expensify/App/assets/30054992/3b5c0cd0-252b-448c-98f8-6448b806ca6f
OSBotify commented 1 week ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify commented 5 days ago

πŸš€ Deployed to staging by https://github.com/luacmartins in version: 1.4.73-0 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…
jasperhuangg commented 5 days ago

@luacmartins @allroundexperts @gijoe0295

All the screenshots provided don't follow the correct testing steps.

The provided screenshots seem to be testing workspaces with single-level tags. This PR seems to only disable the delete option for single-level tags, which is not what was requested here.

This is what a workspace with multi-level tags looks like:

Screenshot 2024-05-13 at 5 47 10β€―PM

The WorkspaceViewTagsPage is what's used for multi-level tags, not the WorkspaceTagsPage that's changed in this PR.

I'm going to revert this PR.

jasperhuangg commented 5 days ago

Ah, clarified with the contributor that the page didn't exist when they were implementing this–they will fix in a followup.

OSBotify commented 3 days ago

πŸš€ Deployed to production by https://github.com/Beamanator in version: 1.4.73-7 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ