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

[Due for payment 2025-02-13] [$250] Role description is missing in the members invite confirmation page #55822

Closed
1 of 8 tasks
m-natarajan opened this issue Jan 28, 2025 · 17 comments
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

@m-natarajan
Copy link

m-natarajan commented Jan 28, 2025

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: 9.0.89-7
Reproducible in staging?: y
Reproducible in production?: y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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 (hyperlinked to channel name): convert

Action Performed:

  1. Go to workspace
  2. Click invite members
  3. select any member and go to the confirmation page
  4. Click on the "role"

Expected Result:

Each role should have description as we do in the members page

Actual Result:

Description is missing

Workaround:

unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Image
Image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021884053294928345756
  • Upwork Job ID: 1884053294928345756
  • Last Price Increase: 2025-01-28
  • Automatic offers:
    • twilight2294 | Contributor | 105891675
Issue OwnerCurrent Issue Owner: @lschurr
@m-natarajan m-natarajan added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lschurr lschurr added the External Added to denote the issue can be worked on by a contributor label Jan 28, 2025
@melvin-bot melvin-bot bot changed the title Role description is missing in the members invite confirmation page [$250] Role description is missing in the members invite confirmation page Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

@Shahidullah-Muffakir
Copy link
Contributor

Shahidullah-Muffakir commented Jan 28, 2025

Proposal

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

Role description is missing in the members invite confirmation page

What is the root cause of that problem?

Because alternateText is not added here:

const roleItems = useMemo(() => {
return Object.values(CONST.POLICY.ROLE).map((roleValue) => {
let label = '';
if (roleValue === CONST.POLICY.ROLE.USER) {
label = translate('common.member');
} else if (roleValue === CONST.POLICY.ROLE.ADMIN) {

like it is added here:
alternateText: translate('workspace.common.memberAlternateText'),

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

Add the same alternateText for each role in the WorkspaceInviteMessagePage

    const roleItems = useMemo(() => {
        return Object.values(CONST.POLICY.ROLE).map((roleValue) => {
            let label = '';
            let description = '';
            if (roleValue === CONST.POLICY.ROLE.USER) {
                label = translate('common.member');
                description = translate('workspace.common.memberAlternateText')
            } else if (roleValue === CONST.POLICY.ROLE.ADMIN) {
                label = translate('common.admin');
                description = translate('workspace.common.adminAlternateText')
            } else {
                label = translate('common.auditor');
                description = translate('workspace.common.auditorAlternateText')
            }
            return {
                label,
                value: roleValue,
                description,
            };
        });
    }, [translate]);

As the description of the admin role is lengthy we have to pass the isAlternateTextMultilineSupported prop to the InputWrapper , and then in the ValuePicker to the ValueSelectorModal and in the ValueSelectorModal to the isAlternateTextMultilineSupported

or we can simply pass isAlternateTextMultilineSupported prop to the

<SelectionList
sections={sections}
onSelectRow={(item) => onItemSelected?.(item)}

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA

What alternative solutions did you explore? (Optional)

NA

Screen.Recording.2025-01-28.at.7.43.11.AM.mov

@twilight2294
Copy link
Contributor

twilight2294 commented Jan 28, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-01-28 08:30:48 UTC.

Proposal

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

Role description is missing in the members invite confirmation page

What is the root cause of that problem?

We are using InputWrapper to display the role and ValuePicker to list the items present for role, which is wrong as we already have WorkspaceMemberDetailsRoleSelectionModal defined to make this selection. So to solve this issue we need to reuse the same modal

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

So replace InputWrapper with WorkspaceMemberDetailsRoleSelectionModal as we should keep the code DRY and reuse existing modals:

function WorkspaceMemberDetailsRoleSelectionModal({isVisible, items, onRoleChange, onClose}: WorkspaceMemberDetailsPageProps) {

We also need to include alternateText here to display the role description.

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

N/A UI bug

What alternative solutions did you explore? (Optional)

N/A

@sobitneupane
Copy link
Contributor

Thanks everyone for the proposal.

As we already have WorkspaceMemberDetailsRoleSelectionModal for role selection, let's reuse it. It would be better to rename it to WorkspaceMemberRoleSelectionModal and move it to the workspace folder. Proposal from @twilight2294 looks good to me.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jan 28, 2025

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

@parasharrajat
Copy link
Member

Please check for validations. Do we have validations for role on the form and does the new proposal support that?

@sobitneupane
Copy link
Contributor

Thanks for chiming in @parasharrajat

Do we have validations for role on the form and does the new proposal support that?

I don't think we currently have any validation specific to the role.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

📣 @twilight2294 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

Copy link

melvin-bot bot commented Jan 29, 2025

📣 @mohamed125653! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 29, 2025
@twilight2294
Copy link
Contributor

PR ready for review c.c. @sobitneupane

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Feb 6, 2025
@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Feb 6, 2025
@melvin-bot melvin-bot bot changed the title [$250] Role description is missing in the members invite confirmation page [Due for payment 2025-02-13] [$250] Role description is missing in the members invite confirmation page Feb 6, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 6, 2025
Copy link

melvin-bot bot commented Feb 6, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Feb 6, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.94-25 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-02-13. 🎊

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

Copy link

melvin-bot bot commented Feb 6, 2025

@sobitneupane @lschurr @sobitneupane The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

Copy link

melvin-bot bot commented Feb 11, 2025

@arosiclair @sobitneupane @lschurr @twilight2294 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 Daily KSv2 and removed Weekly KSv2 labels Feb 13, 2025
@lschurr
Copy link
Contributor

lschurr commented Feb 14, 2025

Payment summary:

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
Development

No branches or pull requests

7 participants