Skip to content

[$500] [Due for payment 2025-02-13] [Add onboarding for new workspaces being created] Create new setup tasks when users create a workspace #53509

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

Closed
francoisl opened this issue Dec 4, 2024 · 49 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@francoisl
Copy link
Contributor

francoisl commented Dec 4, 2024

Part of the project "Adding onboarding for new workspaces being created"

Main issue: #48591
Doc section: https://docs.google.com/document/d/19u6ZQbNuF-v5oovIkQlmwYV4SXeAgey50pymsj5QHRY/edit?tab=t.0#heading=h.vwt3yefp8jmh (External only)

Feature Description

When a user who didn't choose the option "Manage my team's expenses" during the initial onboarding eventually creates a workspace, create onboarding tasks to teach them what to do next.

Implementation steps

  1. Prep work:

    1. Add new constant newDotTrackWorkspace to backendOnboardingChoices - Design doc section
    2. Extract the logic to generate the request and optimistic data for onboarding tasks out of completeOnboarding(), for clarity and reusability – Design doc section
  2. Create new setup tasks when users create a workspace

    • Design doc section ('External' section only)
    • Update CategorizeTrackedExpense, ShareTrackedExpense, and CreateWorkspace to generate and pass the new onboarding task data to the API if the user doesn't already have a createWorkspace onboarding task
Issue OwnerCurrent Issue Owner: @francoisl
@francoisl francoisl added the Internal Requires API changes or must be handled by Expensify staff label Dec 4, 2024
@francoisl francoisl self-assigned this Dec 4, 2024
@francoisl
Copy link
Contributor Author

(Keeping internal because we're going to work with a C+ on this)

@mananjadhav
Copy link
Collaborator

Reviewed the design document. Will take another pass to see if there are any gaps. Will start with the implementation by tomorrow.

@melvin-bot melvin-bot bot added the Monthly KSv2 label Dec 9, 2024
@francoisl francoisl added Daily KSv2 and removed Monthly KSv2 labels Dec 9, 2024
@mananjadhav
Copy link
Collaborator

@francoisl Is there anything pushed on the backend to start this?

@francoisl
Copy link
Contributor Author

One part is deployed, another one won't be until at least tomorrow, and the tasks won't be saved until both parts are.

For now, the part 1 "Prep work" I described above shouldn't require any backend changes. Also, for step 2 we can start saving the task data in the optimistic data of the API request, and test it offline?

@francoisl
Copy link
Contributor Author

@mananjadhav the backend changes for passing guidedSetupData and engagementChoice to the API commands CategorizeTrackedExpense, ShareTrackedExpense, and CreateWorkspace are now live. Let me know if anything is not working as expected.

@mananjadhav
Copy link
Collaborator

Okay thanks. I'll check those and reach out to you if any questions.

@mananjadhav
Copy link
Collaborator

Started with this, the PR will be up by tomorrow.

@melvin-bot melvin-bot bot added the Overdue label Dec 18, 2024
Copy link

melvin-bot bot commented Dec 19, 2024

@francoisl, @mananjadhav Whoops! This issue is 2 days overdue. Let's get this updated quick!

@mananjadhav
Copy link
Collaborator

I was out sick yesterday. I am half done, will finish this by weekend.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Dec 19, 2024
@anmurali
Copy link

@mananjadhav - do you have an update on this PR?

Copy link

melvin-bot bot commented Dec 24, 2024

@francoisl, @mananjadhav Huh... This is 4 days overdue. Who can take care of this?

@mananjadhav
Copy link
Collaborator

Apologies I was unwell. I am just getting back and will have this ready in 1-2 days.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Dec 24, 2024
@danielrvidal
Copy link
Contributor

Thank you @mananjadhav, let us know if you need anything from our side!

Copy link

melvin-bot bot commented Dec 30, 2024

@francoisl, @mananjadhav Eep! 4 days overdue now. Issues have feelings too...

@mananjadhav
Copy link
Collaborator

PR work in progress. Will be raising the draft today.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Dec 30, 2024
@francoisl
Copy link
Contributor Author

Sounds good, feel free to send it my way even if it's not fully ready, I can start taking a look and testing.

@francoisl francoisl changed the title [Due for payment 2025-02-13] [Add onboarding for new workspaces being created] Create new setup tasks when users create a workspace [$375] [Due for payment 2025-02-13] [Add onboarding for new workspaces being created] Create new setup tasks when users create a workspace Feb 14, 2025
Copy link

melvin-bot bot commented Feb 14, 2025

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@francoisl
Copy link
Contributor Author

@mallenexpensify FYI I increased the payout since this was a little bigger than a regular bug fix / task.

@francoisl francoisl changed the title [$375] [Due for payment 2025-02-13] [Add onboarding for new workspaces being created] Create new setup tasks when users create a workspace [$500] [Due for payment 2025-02-13] [Add onboarding for new workspaces being created] Create new setup tasks when users create a workspace Feb 14, 2025
Copy link

melvin-bot bot commented Feb 14, 2025

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@mallenexpensify
Copy link
Contributor

@ishpaul777 can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~021890561801107228170

I see @mananjadhav assigned but I don't see a full review on the PR so I'm assuming payment isn't due to them. Comment if ya disagree.

@mananjadhav
Copy link
Collaborator

@mallenexpensify The original PR was reviewed by me. But due to the #55302 (comment) we had to redo the PR. The new duplicate PR was merged where you won't see my review. Hence I am eligible for the payout.

@melvin-bot melvin-bot bot added the Overdue label Feb 17, 2025
@francoisl
Copy link
Contributor Author

Yes that's correct ^. We had to revert the original PR due to some unrelated issues with bad commits being on the main branch, and then make the second identical PR. I directly approved and merged that second PR since it was the same as the first PR, which had already been reviewed and tested.

@melvin-bot melvin-bot bot removed the Overdue label Feb 17, 2025
@ishpaul777
Copy link
Contributor

thank you @mallenexpensify, I have accepted offer!

@mallenexpensify
Copy link
Contributor

Contributor: @ishpaul777 paid $500 via Upwork
Contributor+: @mananjadhav due $500 via NewDot

Where are we at with the need for a regression test here? We don't have Bug or New Feature so a checklist wasn't auto-populated.

@garrettmknight
Copy link
Contributor

$500 approved for @mananjadhav

@mananjadhav
Copy link
Collaborator

Considering this is a new feature does the checklist apply? and with regards to the regression test, would it already exist as a part of the feature design? If not I'll create one but I think in my previous projects experience, I've seen it exists for the new features.

@melvin-bot melvin-bot bot added the Overdue label Feb 23, 2025
@mallenexpensify
Copy link
Contributor

We def want regression tests for new features, sometimes they're created all at once as part of a project and sometimes they're done per feature. @francoisl do you know how we want to handle here? Thx

Copy link

melvin-bot bot commented Feb 24, 2025

@francoisl, @mananjadhav, @mallenexpensify, @ishpaul777 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@mananjadhav
Copy link
Collaborator

Quick bump @francoisl

@francoisl
Copy link
Contributor Author

I opened an internal issue to create the regression tests
https://github.com/Expensify/Expensify/issues/474370

@melvin-bot melvin-bot bot removed the Overdue label Feb 26, 2025
@francoisl
Copy link
Contributor Author

@mallenexpensify as far as I can tell, we just need to issue the payments and close this?

@parasharrajat
Copy link
Member

Looks like PR of this isue caused an issue #57499

@ishpaul777
Copy link
Contributor

not denying, but can you help me understand reason for your suspicion @parasharrajat also I am not able to reproduce the issue

@parasharrajat
Copy link
Member

parasharrajat commented Feb 27, 2025

Try to fail the workspace creation with an error, and it will create that issue. I checked the onyx keys that affect that UI state and all of them were present in the failure state.

It might be backend but if you can give it a try and confirm this, it would be great.

@mallenexpensify
Copy link
Contributor

Going to wait a min for payment, pending potential regression. Note to self to check the regression timeline/window too.

@melvin-bot melvin-bot bot added the Overdue label Feb 28, 2025
@ishpaul777
Copy link
Contributor

I tried to simulate as shown in video of issue but I could not get such error when using Troubleshoot -> Simulate failing network requests

@mananjadhav
Copy link
Collaborator

I cannot reproduce it either.

Going to wait a min for payment, pending potential regression. Note to self to check the regression timeline/window too.

@mallenexpensify This issue was supposed to be closed by Feb 13 and I think it's already paid out. I think we should close this issue and discuss in the linked issue.

@melvin-bot melvin-bot bot removed the Overdue label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

9 participants