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

[Awaiting Payment 7th Sept] [$250] Add the modal prompts back to locked toggles in More features #47912

Closed
6 tasks done
trjExpensify opened this issue Aug 23, 2024 · 15 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@trjExpensify
Copy link
Contributor

trjExpensify commented Aug 23, 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: v9.0.24-0
Reproducible in staging?: Y
Reproducible in production?: Y
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: @trjExpensify
Slack conversation: https://expensify.slack.com/archives/C02NK2DQWUX/p1723775264453099?thread_ts=1723724132.692329&cid=C02NK2DQWUX

Action Performed:

  1. Enable QBO
  2. Go to More features
  3. Click on a locked toggle (i.e Tags)

Expected Result:

A modal should appear explaining why it's locked.

Actual Result:

No modal appears, the cursor just turns to 🚫 on hover.

Workaround:

N/A

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

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0126e97d02490a2603
  • Upwork Job ID: 1827065354673239304
  • Last Price Increase: 2024-08-23
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @trjExpensify
@trjExpensify trjExpensify added Reviewing Has a PR in review Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 23, 2024
Copy link

melvin-bot bot commented Aug 23, 2024

Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.

@trjExpensify
Copy link
Contributor Author

PR is here: #47533

@hungvu193
Copy link
Contributor

PR is here: #47533

Can you add external label so we can get a C+ here? 😄

@marcaaron marcaaron added the External Added to denote the issue can be worked on by a contributor label Aug 23, 2024
@melvin-bot melvin-bot bot changed the title Add the modal prompts back to locked toggles in More features [$250] Add the modal prompts back to locked toggles in More features Aug 23, 2024
Copy link

melvin-bot bot commented Aug 23, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0126e97d02490a2603

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

melvin-bot bot commented Aug 23, 2024

Current assignee @hungvu193 is eligible for the External assigner, not assigning anyone new.

@marcaaron
Copy link
Contributor

Thanks for the issue @trjExpensify 🙇

@marcaaron marcaaron added External Added to denote the issue can be worked on by a contributor and removed 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 labels Aug 23, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 23, 2024
Copy link

melvin-bot bot commented Aug 23, 2024

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 23, 2024
@codewaseem
Copy link
Contributor

Proposal

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

Modal doesn't appear when clicking on the locked toggle switch.

What is the root cause of that problem?

The disabledAction callback prop for the items is missing. For example here:

const organizeItems: Item[] = [
{
icon: Illustrations.FolderOpen,
titleTranslationKey: 'workspace.moreFeatures.categories.title',
subtitleTranslationKey: 'workspace.moreFeatures.categories.subtitle',
isActive: policy?.areCategoriesEnabled ?? false,
disabled: hasAccountingConnection,
pendingAction: policy?.pendingFields?.areCategoriesEnabled,
action: (isEnabled: boolean) => {
if (!policyID) {
return;
}
if (hasAccountingConnection) {
setIsOrganizeWarningModalOpen(true);
return;
}
Category.enablePolicyCategories(policyID, isEnabled);
},
},

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

Adding an appropriate disabledAction callback function to the list will solve this problem. For example:

{
            icon: Illustrations.FolderOpen,
            titleTranslationKey: 'workspace.moreFeatures.categories.title',
            subtitleTranslationKey: 'workspace.moreFeatures.categories.subtitle',
            isActive: policy?.areCategoriesEnabled ?? false,
            disabled: hasAccountingConnection,
            pendingAction: policy?.pendingFields?.areCategoriesEnabled,
            action: (isEnabled: boolean) => {
                if (!policyID) {
                    return;
                }
                if (hasAccountingConnection) {
                    setIsOrganizeWarningModalOpen(true);
                    return;
                }
                Category.enablePolicyCategories(policyID, isEnabled);
            },
            disabledAction: () => {
                setIsOrganizeWarningModalOpen(true);
            },
        }

Result

Screenshot 2024-08-24 at 01 42 02

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Sep 2, 2024

@trjExpensify, @hungvu193, @marcaaron, @thesahindia Eep! 4 days overdue now. Issues have feelings too...

@trjExpensify trjExpensify changed the title [$250] Add the modal prompts back to locked toggles in More features [Awaiting Payment 7th Sept] [$250] Add the modal prompts back to locked toggles in More features Sep 2, 2024
@trjExpensify trjExpensify added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Sep 2, 2024
@trjExpensify
Copy link
Contributor Author

Updated labels, payout will be due on Sept 7th after hitting prod 3 days ago.

@trjExpensify
Copy link
Contributor Author

Waiting out the regression period, Melv.

@melvin-bot melvin-bot bot removed the Overdue label Sep 4, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

@trjExpensify @hungvu193 @marcaaron @thesahindia this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Sep 6, 2024
@trjExpensify
Copy link
Contributor Author

Payment is due tomorrow, so doing this today.

Feel free to request, closing!

@github-project-automation github-project-automation bot moved this from Polish to Done in [#whatsnext] #wave-collect Sep 6, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 6, 2024
@garrettmknight
Copy link
Contributor

$250 approved for @hungvu193

@garrettmknight
Copy link
Contributor

$250 approved for @thesahindia

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants