Skip to content

[Due for payment 2025-06-24] [Auto-Submit] Create the new Beta, NVP and Modal #63195

Closed

Description

@MarioExpensify

Auto-Submit Project

Tracking Issue: https://github.com/Expensify/Expensify/issues/457732

Design Doc Section: 2.1 [External] Create the new Beta, NVP and Modal


Task

Map the new "autoSubmit" beta

Create the new const in CONST.ts:

   BETAS: {
	// ...
       AUTO_SUBMIT: 'autoSubmit',
   },
   BUTTON_STATES: {

And a helper function in Permissions.ts:

function canUseAutoSubmit(betas: OnyxEntry<Beta[]>): boolean {
   return !!betas?.includes(CONST.BETAS.AUTO_SUBMIT) || canUseAllBetas(betas);
}

These will be helpful when implementing the logic to display the new modal.

Create the new modal NVP:

A new NVP will be used to switch when / how the new Auto-Submit educational modal will be displayed, we need to create and map the new NVP in ONYXKEYS.ts:

   /** The user has seen and dismissed the instant submit explanation modal */
   NVP_DISMISSED_INSTANT_SUBMIT_EXPLANATION: 'nvp_dismissedInstantSubmitExplanation',

   // ... 

   [ONYXKEYS.NVP_DISMISSED_INSTANT_SUBMIT_EXPLANATION]: boolean;

From the [detailed design]
(https://docs.google.com/document/d/1_970yj98KyTip7_9kM3IM5WyZfBMSycRfhZNXyc9n3w/edit?tab=t.0#heading=h.nkp3t26mpodx):

The new NVP will use the usual “SetNameValuePair” command to save its multiple states so we don't need to implement any new backend call. When the user dismisses the modal for the first time we need to make sure to create the NVP with the value set as “false”, when the user checks the “Don't show again” checkbox and dismisses the modal, we need to set the value as “true”.

Here are the possible values of the new NVP:

  • "undefined" - The modal has never been displayed for the user, the first time the modal is displayed, it should not display the “Don't show again” checkbox. After the modal is displayed for the first time, the NVP value must be set to “false”.
  • “false” - The modal must be displayed with the “Don't show again” button.
  • “true” - The modal should not be displayed anymore.

Create the new modal (FE):

Using the FeatureTrainingModal as a foundation, we must implement a new educational modal for Auto-Submit:

Image

The modal must check the "nvp_dismissedInstantSubmitExplanation" NVP and use its rules to determine if the dismiss checkbox should be displayed or not:

Image

Displaying the modal in the Report details page is not part of this issue.

Issue OwnerCurrent Issue Owner: @garrettmknight

Activity

  1. added
    Weekly
    NewFeature
    on May 30, 2025
  2. melvin-bot commented on May 30, 2025

    @melvin-bot

    Triggered auto assignment to @bfitzexpensify (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

  3. melvin-bot commented on May 30, 2025

    @melvin-bot

    ⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️

  4. melvin-bot commented on May 30, 2025

    @melvin-bot

    Triggered auto assignment to Design team member for new feature review - @shawnborton (NewFeature)

  5. bfitzexpensify commented on Jun 9, 2025

    @bfitzexpensify
    Contributor

    Added this to #convert. @MarioExpensify is this being worked on or is it still in planning?

  6. moved this from In Progress to No status in [#whatsnext] #converton Jun 9, 2025
  7. 25 remaining items

  8. removed
    Reviewing
    on Jun 17, 2025
  9. melvin-bot commented on Jun 17, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.67-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-06-24. 🎊

    For reference, here are some details about the assignees on this issue:

    • @akinwale requires payment through NewDot Manual Requests
    • @ishpaul777 requires payment through NewDot Manual Requests
  10. melvin-bot commented on Jun 17, 2025

    @melvin-bot

    BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

    • [@akinwale / @ishpaul777] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
    • [@garrettmknight] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.
  11. added
    Daily
    and removed
    Weekly
    on Jun 24, 2025
  12. akinwale commented on Jun 24, 2025

    @akinwale
    Contributor

    I am assuming this issue does not require a regression checklist.

  13. melvin-bot commented on Jun 24, 2025

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@garrettmknight)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  14. garrettmknight commented on Jun 25, 2025

    @garrettmknight
    Contributor

    Payment summary is correct. Request when you're ready!

  15. JmillsExpensify commented on Jun 26, 2025

    @JmillsExpensify
    Contributor

    $250 approved for @akinwale

  16. trjExpensify commented on Jul 3, 2025

    @trjExpensify
    Contributor

    Can confirm the payment summary is correct!

  17. garrettmknight commented on Jul 3, 2025

    @garrettmknight
    Contributor

    $250 approved for @ishpaul777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDailyEngineeringNewFeature

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions