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.03k stars 2.54k forks source link

Create isClosedReport #42348

Closed srikarparsi closed 4 days ago

srikarparsi commented 2 weeks ago

Details

More context in this issue but since we're migrating over the archived functionality to an rNVP instead of the state, we had to change the isArchivedRoom function to check for the rNVP instead of the state. Some checks still rely on the state so in this PR, I created the isClosedRoom function. I originally thought some more checks needed it but after talking to @Gonals, it looks like they don't. There's a couple of other places we might want to use this functionality but I'll handle those in a separate PR while working on these Auth changes.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/395780 PROPOSAL:

Tests

  1. Create a task
  2. Complete the task by clicking the checkbox
  3. Ensure that the delete button does not show up in the overflow menu

Offline tests

QA Steps

PR Author Checklist

Screenshots/Videos

Android: Native Added small screen in mWeb Chrome
Android: mWeb Chrome image
iOS: Native Added small screen in mWeb Chrome
iOS: mWeb Safari Added small screen in mWeb Chrome
MacOS: Chrome / Safari image
MacOS: Desktop Added regular screen in MacOS: Chrome / Safari
melvin-bot[bot] commented 1 week ago

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

srikarparsi commented 1 week ago

@jjcoffee, un-assigning because this is a pretty straightforward PR and I was talking to @Gonals about it earlier.

Gonals commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Gonals commented 1 week ago

Approved! Feel free to ask for merge in #deployer!

srikarparsi commented 4 days ago

Merging since merge slush got lifted :)

OSBotify commented 4 days 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 3 days ago

🚀 Deployed to staging by https://github.com/srikarparsi in version: 1.4.77-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
OSBotify commented 2 days ago

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
OSBotify commented 2 days ago

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅