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

Add ReportNameValuePairs key to Report Type #40661

Merged
merged 16 commits into from
May 14, 2024
Merged

Conversation

srikarparsi
Copy link
Contributor

@srikarparsi srikarparsi commented Apr 21, 2024

Details

Adding a key isArchived so that we can use it to denote archived reports instead of using the CLOSED state. Design Doc

Fixed Issues

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

Tests

Will be tested when we send the isArchived Onyx update in Auth.

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

@srikarparsi srikarparsi self-assigned this Apr 21, 2024
@srikarparsi
Copy link
Contributor Author

Hey @mountiny and @roryabraham, do you think you could take a look at this PR if you have a chance? I added the ReportNameKeys array to add some structure but I'm not sure iff there's a better way of doing it.

@mountiny
Copy link
Contributor

From a quick look it seems good to me, but definitely add the rNVP names to CONST

@srikarparsi
Copy link
Contributor Author

Ah okay, thanks @mountiny. What about what is there now? I did it that way to keep it consistent with the way the file is organized but it feels a little redundant. Because whenever we want to add a new key, we have to add it as keyName: "keyName". I think it would be easier to just add it as a list at the bottom. What do you think?

List at the bottom meaning:
Instead of
type ReportNameKeys = keyof typeof CONST.REPORT_NAME_KEYS;
Do
type ReportNameKeys = 'isArchived' | 'additionalKeys';

@mountiny
Copy link
Contributor

mountiny commented Apr 21, 2024

I think that it might look redundant now, but in future we will want to use those keys elsewhere and its better to keep them in CONST

@srikarparsi
Copy link
Contributor Author

Cool agreed. But we can also do it like this:

type ReportNameKeys = 'isArchived' | 'additionalKeys';

but keep it in CONST right? Which will avoid the redundancy?

@mountiny
Copy link
Contributor

ah yeah we can do that too, although is there a case when new key would not be added to the keyName const you mentioned?

@srikarparsi
Copy link
Contributor Author

although is there a case when new key would not be added to the keyName const you mentioned?

I don't believe so right? If we need to pass the reportNameValuePair to App, then we'll add it and otherwise we won't?

Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So looking at this PR, what you've done is essentially:

  • Created a runtime constant for all the names of the rNVPs
  • then declared a compile-time constant that's essentially an object with all the rNVP names as keys and then string as the value

I think this is kind of backwards. What you can do is just declare a type for the reportNameValuePairs with all the names and the correct types. Reference this type whenever you need to - not sure when you'd need the constant with the rNVP names in a post-TS world. Simply this might be enough for what you're trying to do here.

diff --git a/src/types/onyx/Report.ts b/src/types/onyx/Report.ts
index 7b9e7de3ca..8c05e4007d 100644
--- a/src/types/onyx/Report.ts
+++ b/src/types/onyx/Report.ts
@@ -186,6 +186,10 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback<
         transactionThreadReportID?: string;
 
         fieldList?: Record<string, PolicyReportField>;
+
+        reportNameValuePairs?: {
+            isArchived: boolean;
+        };
     },
     PolicyReportField['fieldID']
 >;

src/CONST.ts Outdated
@@ -852,6 +852,9 @@ const CONST = {
// The minimum number of typed lines needed to enable the full screen composer
FULL_COMPOSER_MIN_LINES: 3,
},
REPORT_NAME_KEYS: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend putting this under REPORT.NVPS rather than REPORT_NAME_KEYS

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also wondering if the same thing we did for nameValuePairs we should do for reportNameValuePairs. cc @iwiznia

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but rNVPs should be _a bit simpler since we always want to send all of them, right?

Anyway, I assume it should be easy to do by queuing the update at the lowest level in auth, probably in Report::setNameValuePair

@@ -186,6 +187,9 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback<
transactionThreadReportID?: string;

fieldList?: Record<string, PolicyReportField>;

/** The reports name value pairs */
reportNameValuePairs?: Record<ReportNameKeys, string>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type seems pretty sus - are all rNVP values strings?

src/CONST.ts Outdated
@@ -852,6 +852,9 @@ const CONST = {
// The minimum number of typed lines needed to enable the full screen composer
FULL_COMPOSER_MIN_LINES: 3,
},
REPORT_NAME_KEYS: {
isArchived: 'isArchived',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the keys in this file are typically always UPPER_SNAKE_CASE. You can extract all the camelCase values using ValueOf from type-fest.

@roryabraham
Copy link
Contributor

roryabraham commented Apr 22, 2024

If you did need a union of all rNVP names as a type (which, again, not sure you will), then you could do this:

type ReportNameValuePairs = Report['reportNameValuePairs'];
type ReportNameValuePairsNames = keyof ReportNameValuePairs;

If you did need a runtime constant for all the rNVP names (which, again, not sure you will), then you could do this:

import type {ScreamingSnakeCase} from 'type-fest';

type KeysAsScreamingSnakeCase<T> = {
    [K in keyof T as ScreamingSnakeCase<K>]: K;
};

// Note: this has to be declared again in full to make it available at runtime, but at least it's guaranteed to have all the correct keys and values.
const REPORT_NVP_NAMES: KeysAsScreamingSnakeCase<Report['reportNameValuePairs']> = {
    IS_ARCHIVED: 'isArchived',
};

it might be possible to do this in reverse such that:

  • you define a runtime constant with all the keys
  • then define a type where the keys of that type are guaranteed to have all the values from the runtime constant

but I wasn't able to quickly figure out a clean way to do that. The closest I got was something pretty ugly like this:

const REPORT_NVPS = {
    // Note: this should be boolean
    IS_ARCHIVED: 'isArchived',

    // Note: this should be a string
    SOME_OTHER_NVP: 'myNVP',
} as const;

type ReportNameValuePairs = {
  [Key in REPORT_NVPS]: Key extends 'isArchived'
    ? boolean
    : Key extends 'myNVP'
    ? string
    : never;
};

@srikarparsi
Copy link
Contributor Author

Doing this makes a lot of sense to me. It avoids redundancy, keeps everything in the same place, and allows for different types (you were right, not all of them are strings. I thought that when they got passed in from PHP they would be passed as strings but I'm wrong)

diff --git a/src/types/onyx/Report.ts b/src/types/onyx/Report.ts
index 7b9e7de3ca..8c05e4007d 100644
--- a/src/types/onyx/Report.ts
+++ b/src/types/onyx/Report.ts
@@ -186,6 +186,10 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback<
         transactionThreadReportID?: string;
 
         fieldList?: Record<string, PolicyReportField>;
+
+        reportNameValuePairs?: {
+            isArchived: boolean;
+        };
     },
     PolicyReportField['fieldID']
 >;

And in that case, whenever we want to pass an Onyx Update to reportNameValuePairs, we would just send the whole object right? For example, in structureReportForOnyx in Auth, we would pass the whole reportNameValuePairs object and not only the fields we need. This is because we eventually will use most fields right?

But, we would only add to reportNameValuePairs in App whenever we use a new report name value pair. So since we're only using reportNameValuePairs.isArchived in App right now, that's the only one that would be there. Does that sound good?

@roryabraham
Copy link
Contributor

@srikarparsi check out https://docs.google.com/document/d/1kubm8uFo2CTDfwB6_vhNL908cBN7qxDzNquIlfUW8S8/edit - we should do the same thing for reportNameValuePairs and move all logic that sends reportNameValuePairs to the front-end to a low level in Auth.

@srikarparsi
Copy link
Contributor Author

Just read through @iwiznia's design doc. Just to make sure I'm understanding correctly, is this what you're suggesting:

Currently, we send rNVP Onyx updates in two ways.

  1. We send the update directly. This can be seen with updating a notification preference: 1 -> 2 -> 3
  2. We send the update along with a bunch of other updates using structureReportForOnyx. This can be seen in OpenReport.

Is the suggestion to move only the 1st type of these rNVP Onyx Updates to a low level method like setNameValuePair? And then remove all the 1st type of rNVP Onyx Updates since these methods call setNameValuePair anyway to set the rNVP before sending the Onyx Update?

@srikarparsi
Copy link
Contributor Author

If that’s the case, what would be the best way to handle this so that it doesn’t block on CLOSED/ARCHIVED? I’m thinking we keep this App PR so that we begin storing the isArchived rNVP correctly. This way, we won’t need to migrate it in the future. And then in the Auth, we send the isArchived Onyx update under reportNameValuePairs so that it’s stored correctly in App.

And in the meanwhile, I can work on a design doc for rNVP Onyx Updates similar to the one Ioni did for NVPs?

@iwiznia
Copy link
Contributor

iwiznia commented Apr 25, 2024

The idea is to always and only queue updates at the lowest level, so we don't have to queue updates everywhere and can forget about updates, since they are just handled automatically by the lower level methods. So all those you linked (and more) would be removed and instead would have just one call to queueOnyxUpdates in Report::setNameValuePair

@srikarparsi
Copy link
Contributor Author

Cool, that makes sense. So what I'm thinking is:

  1. Deploy this PR to start using the right structure for rNVPs in the frontend (they should be nested in reportNameValuePairs so that Onyx Updates are 1:1 with the DB). Do this first so that it doesn't hold up Closed/Archived
  2. Have Auth and Web send other rNVP Onyx Updates under the reportNameValuePairs key. Change App to look for these current rNVP Onyx Updates in the reportNameValuePairs field rather than accessing them directly. report.parentReportID vs report.reportNameValuePairs.parentReportID.
  3. Change Auth to queue rNVP Onyx Updates directly in Report::setNameValuePair and remove occurrences of queuing them in other places since those places most likely call Report::setNameValuePair.

Does that sound good? I could also do a design doc for steps 2 and 3 similar to @iwiznia's for NVPs. But am not sure if I should do it while working on Separate Archived/Closed functionality or after.

@srikarparsi srikarparsi marked this pull request as ready for review April 25, 2024 23:13
@srikarparsi srikarparsi requested a review from a team as a code owner April 25, 2024 23:13
@melvin-bot melvin-bot bot removed the request for review from a team April 25, 2024 23:13
Copy link

melvin-bot bot commented Apr 25, 2024

@hoangzinh @ One of you needs to 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]

@melvin-bot melvin-bot bot requested a review from hoangzinh April 25, 2024 23:13
@srikarparsi
Copy link
Contributor Author

srikarparsi commented Apr 29, 2024

Hey Vit, yeah it's here: https://expensify.slack.com/archives/C03TQ48KC/p1714368363015469. Sorry, I forgot to tag you for some reason. I'm working on a deploy blocker right now but will do this comment here right after.

Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like we've got consensus to store rNVPs under their own key, which is not the implementation we have in this PR

@srikarparsi
Copy link
Contributor Author

Yupp, working on a PR to introduce the new ReportNameValuePairs type in App and should have that ready tomorrow.

@srikarparsi
Copy link
Contributor Author

I finished up most of it, just have to test a couple of things. I'm OOO until Wednesday for my friends' grad trip but I'll try to request a review on Monday or Tuesday.

@srikarparsi
Copy link
Contributor Author

srikarparsi commented May 14, 2024

Hey! This is ready for re-review. I also incorporated the isArchived changes (the reason we're creating this new Onyx structure) so that it would be easier to test. But please let me know if it would be better to move this to a separate PR, I wasn't sure.

But to test, I used this web branch which makes every OpenReport call push the reportNameValuePairs Onyx data with the isArchived key set. Then this App PR, replaces the composer with an archived banner if the isArchived value is true. I made sure that opening new reports, navigating away from them, and then returning to them replaces the composer box with the archived banner.

Side note: We could probably use a useMemo to detect changes to reportNameValuePairs (similar to how we do it for report) so that navigating away and back isn't necessary but I wasn't sure how this would affect performance. I'll look into this more tomorrow but just wanted to re-request reviews since the core code for the ReportNameValuePairs Onyx structure is done.

Copy link
Contributor

@iwiznia iwiznia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the plan for all the rest of rNVPs?

if (reportNameValuePairs) {
return reportNameValuePairs.isArchived;
}

return report?.statusNum === CONST.REPORT.STATUS_NUM.CLOSED && report?.stateNum === CONST.REPORT.STATE_NUM.APPROVED;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to delete this (and the report param) at some point, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we do, I put some information about that in the "Plan of action" section of his Design Doc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok please do not forget (I'd create an issue, but I have no memory)

@srikarparsi
Copy link
Contributor Author

What is the plan for all the rest of rNVPs?

I left a comment about it here. Does that sound good or am I missing anything? I can create issues for each rNVP and maybe we can add the Hot Pick label? Or I can work on it myself after finishing this Closed & Archived stuff.

@roryabraham
Copy link
Contributor

roryabraham commented May 14, 2024

  1. Deploy this PR to start using the right structure for rNVPs in the frontend (they should be nested in reportNameValuePairs so that Onyx Updates are 1:1 with the DB). Do this first so that it doesn't hold up https://github.com/Expensify/Expensify/issues/373588
  2. Have Auth and Web send other rNVP Onyx Updates under the reportNameValuePairs key. Change App to look for these current rNVP Onyx Updates in the reportNameValuePairs field rather than accessing them directly. report.parentReportID vs report.reportNameValuePairs.parentReportID.
  3. Change Auth to queue rNVP Onyx Updates directly in Report::setNameValuePair and remove occurrences of queuing them in other places since those places most likely call Report::setNameValuePair.

I would actually amend this a bit, as follows:

  1. Deploy this PR to establish the new structure for rNVPs in the frontend (new key). Mark the old report fields as deprecated.
  2. Update OpenApp / ReconnectApp (in Auth) to send all rNVP data to the new Onyx key
  3. Change Auth to queue rNVP Onyx updates directly in Report::setNameValuePair
  4. Update E/App to stop all usages of old rNVP data on the report object, always reference the new key.
  5. Deprecate E/App versions that still rely on the old data format (fields on the Onyx report object)
  6. Remove back-end occurrences of queuing updates to the old report fields

Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code for this PR looks good though

@roryabraham
Copy link
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified tests pass on all platforms & I tested again on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

@roryabraham roryabraham merged commit 5cf2550 into main May 14, 2024
15 of 19 checks passed
@roryabraham roryabraham deleted the srikar-reportNameValuePairs branch May 14, 2024 23:50
@OSBotify
Copy link
Contributor

✋ 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
Copy link
Contributor

🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.74-0 🚀

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

@srikarparsi
Copy link
Contributor Author

For migrating the other rNVPs, is there any preference between:

  1. Create issues for each rNVP and add the Hot Pick label with instructions on migrating.
  2. Work on it myself after finishing the Closed & Archived project.

@roryabraham @iwiznia

@iwiznia
Copy link
Contributor

iwiznia commented May 16, 2024

Both work for me, as long as we do it eventually 😄

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.74-6 🚀

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants