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
3.57k stars 2.91k forks source link

[Internal QA] [Company cards] Navigate to some other existing feed after removing one #52893

Open VickyStash opened 17 hours ago

VickyStash commented 17 hours ago

Explanation of Change

[Company cards] Navigate to some other existing feed after removing one

Fixed Issues

$ https://github.com/Expensify/App/issues/52886 $ https://github.com/Expensify/App/issues/52915 PROPOSAL: N/A

Tests

  1. Login the app.
  2. Create a workspace.
  3. Enable Company cards feature.
  4. Add at least two feeds to the workspace.
  5. Open one of the created feeds. Go to Settings and Remove it. Make sure another feed will be opened for you.
  6. Remove the second feed as well. Make sure you see the no feed view.

Offline tests

Same, as in the Tests section.

QA Steps

Same, as in the Tests section.

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/8671288b-58fd-4dd5-817a-24e873184fe5
Android: mWeb Chrome https://github.com/user-attachments/assets/87559eb8-da93-4f9c-aebc-69274d1b3fa5
iOS: Native https://github.com/user-attachments/assets/823118a7-f04f-4fc7-8d5d-02dd3d941bd3
MacOS: Chrome / Safari https://github.com/user-attachments/assets/a1fb6f7a-8ea6-4c39-a8b1-3db06cfa892c
MacOS: Desktop https://github.com/user-attachments/assets/dccd7b92-27ae-48f9-8429-5884a723b686
VickyStash commented 15 hours ago

Note: this PR also fixes card number display in the cards list on the Company Cards page for the direct feed cards.

Onyx data for testing ``` Onyx.set("sharedNVP_private_domain_member_18439991", { "settings": { "oAuthAccountDetails": { "oauth.chase.com": { "accountList": [ "CREDIT CARD...3068", "TOTAL CHECKING...6155" ], "credentials": "...", "expiration": 1731608955 } } } }); Onyx.set("cards_18439991_oauth.chase.com", { "21510511": { "accountID": 18439984, "bank": "oauth.chase.com", "cardID": 21510511, "cardName": "CREDIT CARD...3068", "domainName": "expensify-policy7e22f3fe5434db7b.exfy", "fraud": "none", "isVirtual": false, "lastFourPAN": "", "lastScrape": "", "scrapeMinDate": "2024-08-16", "state": 3 } }); ```
Monosnap (24) New Expensify 2024-11-21 15-09-30
melvin-bot[bot] commented 15 hours ago

@DylanDylann 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]

mountiny commented 14 hours ago

@DylanDylann What is your ETA for this one?

DylanDylann commented 13 hours ago

@mountiny I will try to complete it today or early tomorrow (It is midnight in my timezone)

mountiny commented 12 hours ago

Thanks!

DylanDylann commented 1 hour ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/974487ff-9511-494d-9537-26e6b64b968a
Android: mWeb Chrome https://github.com/user-attachments/assets/08bf3587-7f8e-4d17-b412-54d7328f822d
iOS: Native https://github.com/user-attachments/assets/39f9d023-8919-42b1-b467-61c696f343c5
iOS: mWeb Safari https://github.com/user-attachments/assets/8e1790b1-34e2-4edd-8897-ccfa1f3551d1
MacOS: Chrome / Safari https://github.com/user-attachments/assets/bbd53c19-0ed1-40de-b114-ec69cca1d74b
MacOS: Desktop https://github.com/user-attachments/assets/5f356e84-ef72-4376-b579-5cc3a8fddef9
DylanDylann commented 1 hour ago

@VickyStash I see a very minor bug, when removing the feed we set the selected feed to another one before going back. It caused the name of the new feed to display a moment on the setting page before the modal is dismissed

https://github.com/user-attachments/assets/9a843ff1-e558-4f82-b931-a8b476e2b775