App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-09-22] Open global create when a user logs in for the first time

Open kevinksullivan opened this issue 5 years ago • 50 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Problem

when a user first logs in to NewDot, there is no clear guidance on how to set up a Workspace or enable the Expensify Card, it's just a chat from Concierge (disregard the duplicate messages, separate issue being solved).

image

Actions Taken

  1. Create a new account
  2. Use the validation email to validate the account and set a password
  3. Login

Solution

When a new user signs into NewDot for the first time, let's open the Global Create menu so that it's clearer how to set up the Expensify Card or take any of the actions we are promoting. Let's show global create on the first sign in for both brand new Expensify users, and users who have an existing expensify account but haven't logged in to NewDot before.

image

image

View all open jobs on GitHub

kevinksullivan avatar Sep 03 '21 01:09 kevinksullivan

Triggered auto assignment to @sophiepintoraetz (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Sep 03 '21 01:09 MelvinBot

Lol, yes, I had thought this [ a lot of empty real estate] too when I did my one test of my N6 testing flow. Would we also use Concierge to prompt as well? Something like: "Click on the [whatever we're calling Global Create externally] to get started"

sophiepintoraetz avatar Sep 03 '21 01:09 sophiepintoraetz

Stepping in as its your weekend @sophiepintoraetz !

MitchExpensify avatar Sep 03 '21 19:09 MitchExpensify

Triggered auto assignment to @SofiedeVreese (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Sep 03 '21 19:09 MelvinBot

Going to grab for you and create the Upwork job @SofiedeVreese

MitchExpensify avatar Sep 03 '21 19:09 MitchExpensify

Thanks Mitch! Was holding off because I'd asked a question here but 👍

sophiepintoraetz avatar Sep 03 '21 20:09 sophiepintoraetz

Upwork job

MitchExpensify avatar Sep 04 '21 00:09 MitchExpensify

Triggered auto assignment to @timszot (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Sep 04 '21 00:09 MelvinBot

I'm still ooo. Not sure why this was assigned to me

timszot avatar Sep 04 '21 01:09 timszot

Proposal

When the user signs up for the first time in here, accountExists is updated in ONYX with ACCOUNT key https://github.com/Expensify/App/blob/b3421ceba196e5e2dd57b3fcbd4b30721650558c/src/libs/actions/Session.js#L123-L125

We could map the state from ONYXKEYS.ACCOUNT to props of the SidebarScreen.js component using withONYX. Then in this block, https://github.com/Expensify/App/blob/b3421ceba196e5e2dd57b3fcbd4b30721650558c/src/pages/home/sidebar/SidebarScreen.js#L52-L55

Include the below lines


if (!this.props.account.accountExists) {
            this.toggleCreateMenu();

            // Reset the state since the create menu is already shown once.
            Onyx.merge(ONYXKEYS.ACCOUNT, {accountExists: true});
}

Note: We can create a new ONYX State if needed for this state alone (I think it's not necessary) , thanks!

Santhosh-Sellavel avatar Sep 06 '21 16:09 Santhosh-Sellavel

Triggered auto assignment to @Beamanator (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Sep 06 '21 20:09 MelvinBot

Hmm @Santhosh-Sellavel your idea sounds good except for one thing: The solution in the issue description says:

Let's show global create on the first sign in for both brand new Expensify users, and users who have an existing expensify account but haven't logged in to NewDot before.

The bolded part is missing from your proposal, I believe. If a user already created their account on E.com, accountExists will be true when logging in Screen Shot 2021-09-07 at 1 12 54 PM

Beamanator avatar Sep 07 '21 11:09 Beamanator

@Beamanator I get your point, I think I might need a little help here from the backend about the first new Expensify session.

For most users, I see the following options to do get a hook if there are no reports when we create a chat. Or when we have a concierge alone(It may show on every login).

I think it's better to get help from the backend to ensure it happens only once.

Santhosh-Sellavel avatar Sep 07 '21 16:09 Santhosh-Sellavel

Sorry for the late notice here @Santhosh-Sellavel . We concluded internally that we aren't set on this as a final solution, so we're going to close this for now.

kevinksullivan avatar Sep 07 '21 20:09 kevinksullivan

And... this is coming back into play based on our new approach to global create. We're looking for the exact same solution as originally outlined in the OP. Thanks!

kevinksullivan avatar Sep 09 '21 04:09 kevinksullivan

@kevinksullivan I don't think the link is accessible by contributors.

mananjadhav avatar Sep 09 '21 12:09 mananjadhav

@mananjadhav you're right, the link is to an internal conversation, but the end result was basically as Kevin said - we're wanting to go with the original solution outlined in the OP :)

Beamanator avatar Sep 09 '21 14:09 Beamanator

@Beamanator Quick question Is this possible without backend help?

Santhosh-Sellavel avatar Sep 09 '21 14:09 Santhosh-Sellavel

@Santhosh-Sellavel I think you're right, to get around the issue I mentioned here this probably has to be internal.

I believe this will be a trivial backend change, so most likely I'll be back here with updates to move forward with the frontend part :)

Beamanator avatar Sep 09 '21 14:09 Beamanator

Removing Help Wanted for now, will add it back once we're back with the new plan :)

Beamanator avatar Sep 09 '21 14:09 Beamanator