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

[Wave 8] [Ideal Nav] Workspace - Workspace avatar switches from one to another when creating a new workspace #35695

Closed
3 of 6 tasks
lanitochka17 opened this issue Feb 2, 2024 · 9 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 2, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4-36.0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Settings from the bottom
  3. Click New workspace

Expected Result:

The workspace avatar will be constant

Actual Result:

The workspace avatar switches from one to another

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6365162_1706897723871.20240203_002546.mp4

Bug6365162_1706897723871!Screenshot_2024-02-03_at_00 28 28

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010a0963c63b3685ca
  • Upwork Job ID: 1753494083453640704
  • Last Price Increase: 2024-02-02
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Feb 2, 2024
Copy link
Contributor

github-actions bot commented Feb 2, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Feb 2, 2024

Triggered auto assignment to @arosiclair (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave5
CC @dylanexpensify

@hayata-suenaga hayata-suenaga added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 2, 2024
@melvin-bot melvin-bot bot changed the title Workspace - Workspace avatar switches from one to another when creating a new workspace [$500] Workspace - Workspace avatar switches from one to another when creating a new workspace Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Job added to Upwork: https://www.upwork.com/jobs/~010a0963c63b3685ca

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Copy link

melvin-bot bot commented Feb 2, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)

@hayata-suenaga hayata-suenaga changed the title [$500] Workspace - Workspace avatar switches from one to another when creating a new workspace [Wave 8] [Ideal Nav] Workspace - Workspace avatar switches from one to another when creating a new workspace Feb 2, 2024
@hayata-suenaga hayata-suenaga moved this to Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) in [#whatsnext] Wave 08 - Collect Plan Admins Feb 2, 2024
@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Feb 2, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Workspace - Workspace avatar switches from one to another when creating a new workspace

What is the root cause of that problem?

The main problem with issue is that when we create workspace we are using createDraftInitialWorkspace and generate policyDraft for workspace

App/src/libs/actions/App.ts

Lines 330 to 343 in 1c435ca

function createWorkspaceWithPolicyDraftAndNavigateToIt(policyOwnerEmail = '', policyName = '', transitionFromOldDot = false, makeMeAdmin = false) {
const policyID = Policy.generatePolicyID();
Policy.createDraftInitialWorkspace(policyOwnerEmail, policyName, policyID, makeMeAdmin);
Navigation.isNavigationReady()
.then(() => {
if (transitionFromOldDot) {
// We must call goBack() to remove the /transition route from history
Navigation.goBack(ROUTES.HOME);
}
Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(policyID));
})
.then(endSignOnTransition);
}

But when we navigate to the screen with the workspace details we are using policy which is currently still empty

function WorkspaceOverviewPage({policy, currencyList, route}) {

As a result, we have a short period of time while we wait for the policy to be filled out

What changes do you think we should make in order to solve the problem?

To fix this issue we can update WorkspaceOverviewPage and when policy is not available yet we will use policyDraft

For example

const policy = _.isEmpty(policyCurrent) ? policyDraft : policyCurrent;

What alternative solutions did you explore? (Optional)

As alternative we can update createDraftInitialWorkspace and add using ONYXKEYS.COLLECTION.POLICY

@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
@arosiclair
Copy link
Contributor

Asking about this internally here

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@arosiclair
Copy link
Contributor

Seems to be not a bug. The avatar color should change depending on the name of the workspace. Closing this out

@github-project-automation github-project-automation bot moved this from Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) to Done in [#whatsnext] Wave 08 - Collect Plan Admins Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Development

No branches or pull requests

6 participants