Skip to content

IOS - Workspace editor - Three dot menu displayed instead of more button #63354

Closed

Description

@lanitochka17

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.1.56.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: #63066
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open ND iOS
  2. Go to a WS
  3. Go to members

Expected Result:

More button should be displayed on top right corner

Actual Result:

Three dot menu is displayed

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6849638_1748952758339.RPReplay_Final1748951542.mp4

View all open jobs on GitHub

Activity

  1. added
    Daily
    Bug
    on Jun 3, 2025
  2. melvin-bot commented on Jun 3, 2025

    @melvin-bot

    Triggered auto assignment to @joekaufmanexpensify (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.

  3. ganzz4 commented on Jun 3, 2025

    @ganzz4
    Contributor

    Proposal

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

    In the iOS version of the app, the Workspace Members section displays a three-dot menu instead of the expected "More" button in the top right corner.

    What is the root cause of that problem?

    The issue occurs because the ButtonWithDropdownMenu component in WorkspaceMembersPage.tsx is missing the style prop, which is needed to properly style the button as a "More" button. Without this style prop, the component defaults to displaying a three-dot menu on, which doesn't match the design requirements. The style prop is essential for maintaining consistent button appearance across all platforms.

    Relevant code:

    <ButtonWithDropdownMenu
    success={false}
    onPress={() => {}}
    shouldAlwaysShowDropdownMenu
    customText={translate('common.more')}
    options={secondaryActions}
    isSplitButton={false}
    wrapperStyle={styles.flexGrow0}
    />

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

    Add the style prop to apply button styling:

    <ButtonWithDropdownMenu
        success={false}
        onPress={() => {}}
        shouldAlwaysShowDropdownMenu
        customText={translate('common.more')}
        options={secondaryActions}
        isSplitButton={false}
        style={styles.button}         // Added this line
        wrapperStyle={styles.flexGrow0}
    />

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

    N/A, UI issue

    What alternative solutions did you explore? (Optional)

  4. ganzz4 commented on Jun 3, 2025

    @ganzz4
    Contributor

    Correct appearance of the "More" button after applying the fix:

    Image

  5. joekaufmanexpensify commented on Jun 3, 2025

    @joekaufmanexpensify
    Contributor

    Interesting. When I use v9.1.56.0 on iOS from 18 hours ago, I can reproduce.

    Image

    However, I see a newer build from 3 hours ago, which interestingly is a lower version (v9.1.55.0). There, I can't reproduce this.

    Image
  6. joekaufmanexpensify commented on Jun 3, 2025

    @joekaufmanexpensify
    Contributor

    cc @daledah @mananjadhav @amyevans can you guys take a look? We'd want to have @daledah make any required changes here given the original PR is still on staging

  7. amyevans commented on Jun 3, 2025

    @amyevans
    Contributor

    @daledah can you comment here so I can assign you?

  8. daledah commented on Jun 3, 2025

    @daledah
    Contributor

    @amyevans I'm here. Is the bug IOS-specific? Staging web looks good to me though. I'm building IOS right now.

    Image
  9. joekaufmanexpensify commented on Jun 3, 2025

    @joekaufmanexpensify
    Contributor

    Is the bug IOS-specific? Staging web looks good to me though. I'm building IOS right now.

    Yeah, it works fine for me on web.

  10. daledah commented on Jun 3, 2025

    @daledah
    Contributor

    I can't reproduce the bug on latest main

    Image
  11. ganzz4 commented on Jun 3, 2025

    @ganzz4
    Contributor

    @joekaufmanexpensify, @daledah, the same issue happens on Android too.

  12. joekaufmanexpensify commented on Jun 3, 2025

    @joekaufmanexpensify
    Contributor

    I can't reproduce the bug on latest main

    Yeah, maybe related to what I posted here too? It's fine on the latest test build I used from 3 hours ago. But that build is a version behind one from 18 hours ago where this doesn't work.

    Though timing-wise, that makes sense as the original PR was just deployed to staging 2 hours ago...so maybe there isn't really a bug at all?

  13. daledah commented on Jun 3, 2025

    @daledah
    Contributor

    @ganzz4 How can you reproduce the bug? Also, if your RCA is correct then all other pages in WS Editor would have the same bug which is not happening here.

  14. daledah commented on Jun 3, 2025

    @daledah
    Contributor

    I believe the issue is no longer reproducible now, the version 9.1.56.0 noted in the issue description still have threedots menu enabled here:

    shouldShowThreeDotsButton={isPolicyAdmin}
    threeDotsMenuItems={threeDotsMenuItems}
    threeDotsAnchorPosition={threeDotsAnchorPosition}

    Which is no longer appearing on newest version 9.1.56-2-staging

    <WorkspacePageWithSections
    headerText={selectionModeHeader ? translate('common.selectMultiple') : translate('workspace.common.members')}
    route={route}
    icon={!selectionModeHeader ? ReceiptWrangler : undefined}
    headerContent={!shouldUseNarrowLayout && getHeaderButtons()}
    testID={WorkspaceMembersPage.displayName}
    shouldShowLoading={false}
    shouldUseHeadlineHeader={!selectionModeHeader}
    shouldShowOfflineIndicatorInWideScreen
    shouldShowNonAdmin
    onBackButtonPress={() => {
    if (selectionMode?.isEnabled) {
    setSelectedEmployees([]);
    turnOffMobileSelectionMode();
    return;
    }
    Navigation.popToSidebar();
    }}
    >

  15. ganzz4 commented on Jun 3, 2025

    @ganzz4
    Contributor

    @daledah I've synced with main, and the issue no longer reproduces locally – it seems to persist only in production now.

  16. daledah commented on Jun 3, 2025

    @daledah
    Contributor

    the version 9.1.56.0 noted in the issue description still have threedots menu enabled here:

    Might be because 9.1.56.0 is a production version so it does not have the changes yet

  17. joekaufmanexpensify commented on Jun 4, 2025

    @joekaufmanexpensify
    Contributor

    Just retested on v9.1.58 (which went live 2 hours ago) and it isn't reproducible there.

    Image
  18. joekaufmanexpensify commented on Jun 4, 2025

    @joekaufmanexpensify
    Contributor

    Closing as this is fixed on the latest version of the app!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDaily

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions