Skip to content

[Due for payment 2026-07-16] [$250] Domains - Find Groups search appears on Groups list even when there are only two groups #95555

Closed

Description

@applause-bot

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.4.29-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/folder/31025987/test-cases/111803690
Email or phone of affected tester (no customers): admin@expplause.com
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: iPhone 12 mini, iOS 16.7
App Component: Workspace Settings

Action Performed:

  1. Launch new expensify
  2. Tap on Workspaces
  3. Tap on Domains and select the domain
  4. Tap on Groups

Expected Result:

There's no search field when there are less than 15 groups on the Domain

Actual Result:

On this version the search bar is shown even when there are only the two default groups available

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7202330_1783464601194.RPReplay_Final1783463839.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7202330

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. applause-bot commented on Jul 8, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/57478d09d8b023225ecfeeb43dc3edcac0499b92f4c8807888accf024f06e8f3

  2. added
    DeployBlockerCash
    Bug
    on Jul 8, 2026
  3. melvin-bot commented on Jul 8, 2026

    @melvin-bot

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

  4. melvin-bot commented on Jul 8, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Jul 8, 2026

    @github-actions
    Contributor

    👋 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.
  6. melvin-bot commented on Jul 8, 2026

    @melvin-bot

    📣 @saramamose16! 📣
    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>
    
  7. added
    External
    and removed
    DeployBlockerCash
    Hourly
    on Jul 8, 2026
  8. ahmdshrif commented on Jul 8, 2026

    @ahmdshrif
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2026-07-08 03:23:16 UTC.

    Proposal

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

    The Domain > Groups page shows the "Find group" search field even when the domain has only the two default groups. The search field should be hidden below the standard list-size threshold, as it is (was) on every other table page.

    What is the root cause of that problem?

    This is a regression from PR #93963 ("Update filters bar for tables"), merged Jul 6 and first shipped in 9.4.29-0 — which is why it reproduces on staging but not production.

    1. Before that PR, DomainGroupsTable gated the search input behind the app-wide threshold: {groups.length >= CONST.STANDARD_LIST_ITEM_LIMIT && <Table.SearchBar .../>}. With the 2 default groups, 2 >= 12 is false, so no search field rendered.
    2. PR #93963 replaced the old Table.SearchBar/Table.FilterButtons pair with a new composed Table.FilterBar, and in the swap it dropped the threshold gate. The call site is now unconditional:
      <Table.FilterBar label={translate('domain.groups.findGroup')} />
    3. The new TableFilterBar has only an empty-list guard — it hides the bar when originalDataLength is 0, and otherwise always renders the search input:
      if (!originalDataLength) {
      return null;
      }

      <TableSearchBar label={label} />

      where originalDataLength is the unfiltered row count from the Table context:
      const originalDataLength = data?.length ?? 0;
    4. So for 2 groups the empty guard passes and the search bar renders. The threshold constant, STANDARD_LIST_ITEM_LIMIT (12), is no longer consulted anywhere in the new FilterBar path:
      STANDARD_LIST_ITEM_LIMIT: 12,

    Structural cause: the refactor moved search rendering from per-table call sites (which each carried the visibility rule) into a shared TableFilterBar that never received that rule. This is why the bug is NOT specific to Groups. The same PR removed the identical gate from the sibling tables — verified in the PR diff: DomainAdminsTable (L85), DomainMembersTable (L160), DomainListTable (L93), WorkspaceCategoriesTable (L165), WorkspaceTagsTable (L220), WorkspaceTaxesTable (L98), WorkspaceDistanceRatesTable (L150), WorkspacePerDiemTable (L134), PersonalExpenseRulesTable (L108), WorkspaceListTable (L143), WorkspaceExpensifyCardsTable (L198), and ReportParticipantsTable (L124, whose old page-level shouldShowSearchBar prop from DynamicReportParticipantsPage was deleted). All of those pages now show a search field for tiny lists in 9.4.29-0 too.

    This explains every symptom: shown with exactly 2 default groups (gate gone), staging-only (PR is in 9.4.29-0, not prod), and reproducible on both iOS App and MacOS Chrome/Safari (the component is a single shared index.tsx with no platform split).

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

    Restore the threshold once, centrally, inside TableFilterBar — the component that now owns search rendering — instead of re-scattering it across call sites:

    // src/components/Table/TableFilterBar/index.tsx
    const shouldShowSearchBar = shouldAlwaysShowSearchBar || originalDataLength >= CONST.STANDARD_LIST_ITEM_LIMIT;
    
    if (!originalDataLength || (!shouldShowSearchBar && !actionColumnVisible && !appliedFilters.length)) {
        return null;
    }
    // ...
    {shouldShowSearchBar && <TableSearchBar label={label} />}

    shouldAlwaysShowSearchBar is a new optional prop (default false) set only on WorkspaceMembersTable (L334) and WorkspaceRoomsTable (L92), which always showed search before the refactor — so their behavior is preserved exactly. The threshold uses originalDataLength (pre-filter count), so the bar cannot oscillate while the user types a search that narrows results. The compound guard collapses the bar entirely (no stray pb3/ph5 padding) when there is no search, no filter config, and no children — while tables with filterConfig (DomainMembersTable, WorkspaceMembersTable, WorkspaceCompanyCardsTable) keep their filter trigger and active-filter chips visible regardless of row count, which matches the pre-PR behavior where filter buttons were independent of the search gate. Regression safety in one sentence: tables with ≥12 rows render exactly as today, the existing empty-list guard is unchanged, and the two always-show tables are pinned via the prop.

    Why the obvious spot fix does not work: re-adding groups.length >= CONST.STANDARD_LIST_ITEM_LIMIT && ... around the Table.FilterBar in DomainGroupsTable alone (what the pre-PR code did) fixes only this page while the same 9.4.29 deploy blocker mechanism stays live on the ~12 sibling pages listed above. And as a pattern it cannot be copied to the three tables that use filterConfig: wrapping the whole <Table.FilterBar> in the length check would also hide the filter-dropdown trigger and active-filter chips (both live inside the same bar now), silently removing the filters UI on small member/card lists — functionality the old code kept visible unconditionally.

    Note: the TC says "15", but the app standardized this threshold as STANDARD_LIST_ITEM_LIMIT = 12; the fix restores the exact constant this page used before the regression. I'd add a unit test asserting the search input is hidden below the threshold and shown at/above it.

    What alternative solutions did you explore? (Optional)

    1. Spot fix in DomainGroupsTable only — incomplete: leaves the identical regression live on every other table page shipped by the same PR (see list above).
    2. Restore per-call-site gates in all ~15 tables — re-creates the duplication #93963 consolidated, and still needs a search-only mechanism inside the bar for the three filterConfig tables; it degenerates into the central fix plus noise.
    3. Revert #93963 — heavy; it would also remove the new filters UI. The one-file forward fix restores the documented behavior while keeping the refactor.
  9. 42 remaining items

  10. melvin-bot commented on Jul 16, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  11. changed the title [-][$250] Domains - Find Groups search appears on Groups list even when there are only two groups[/-] [+][Due for payment 2026-07-16] [$250] Domains - Find Groups search appears on Groups list even when there are only two groups[/+] on Jul 16, 2026
  12. melvin-bot commented on Jul 16, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    • Reviewer: @truph01 owed $250 via NewDot

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/2074694630912753127/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  13. mallenexpensify commented on Jul 17, 2026

    @mallenexpensify
    Contributor

    @truph01 are you due payment? If so, how much do you propose? If this is the PR, it doesn't seem like much was done on it before closing

  14. truph01 commented on Jul 18, 2026

    @truph01
    Contributor

    @mallenexpensify Because the expected behavior in the OP was incorrect, I first reviewed the proposals, then asked Melvin to open a PR since its solution was correct, and then reviewed the PR.

    Based on the payment guidelines, I think this should be eligible for $125.

  15. mallenexpensify commented on Jul 20, 2026

    @mallenexpensify
    Contributor

    then reviewed the PR.

    @truph This one?
    If so, I don't see any comments that show you reviewed, am I missing something?

  16. truph01 commented on Jul 22, 2026

    @truph01
    Contributor

    then reviewed the PR.

    @Truph This one? If so, I don't see any comments that show you reviewed, am I missing something?

    @mallenexpensify I replied here

  17. mallenexpensify commented on Jul 22, 2026

    @mallenexpensify
    Contributor

    @MelvinBot from the below and details in this E/E issue, review this issue to determine if @truph01 might be due payment

    | Factor | Detected from the timeline

    -- | -- | --
    1 | Proposals reviewed w/ substantive feedback | C+ comments replying to distinct proposal authors containing technical content (not "reviewing…"). 1–2 authors → 1pt, 3+ → 2pt
    2 | Reproduction & testing | C+ comments with repro steps / videos / screenshots; a post-fix retest counts toward the 2pt max
    3 | Independent root-cause | A C+-authored investigation identifying the mechanism (bonus signal: attached video/logs) → 2pt
    4 | C+ drove the close | 🎀 👀 🎀 C+ reviewed, a WAD/backend/dupe conclusion, or a selected-then-abandoned proposal → 2pt
    5 | Sustained engagement | Substantive C+ activity spanning multiple days across the issue's life → 1–2pt

    @truph01 the details in the C+ doc state

    If we decide to close the job before it is successfully completed, 50% payment to contributor and C+ if the contributor was hired/assigned.

    Things are different with Melv so I want to use this issue as an example so I can make a v1 update to the process.

  18. MelvinBot commented on Jul 22, 2026

    @MelvinBot
    Contributor

    Ran the 5-factor scorecard against the timeline. Every point needs a citable comment, and here the citable C+ work is thin: truph01's only substantive action was selecting Melvin's proposal and asking for the PR to be opened/readied — there's no proposal-review feedback, no repro/testing, no independent root-cause, and no visible PR review. Score: 2/10, and the one point-bearing factor is itself contestable (see below). That's far short of what the framework treats as a payable review cycle.

    Scorecard

    # Factor Evidence Pts
    1 Proposals reviewed w/ substantive feedback No technical feedback to any proposal author. The only proposal comment was quoting Melvin's own proposal + "Implement this one" (4976510299) — a selection, not a review of distinct authors 0
    2 Reproduction & testing No C+-authored repro steps, video, or screenshots anywhere on the issue 0
    3 Independent root-cause None. The mechanism (regression from #93963 dropping the count gate) came from the contributor proposals + Melvin; the C+ picked Melvin's 0
    4 C+ drove the close ⚠️ Contested. Literal signal present: a proposal was selected → PR #96157 opened → later abandoned. But the close was Working-As-Designed, decided by design (shawnborton "we wanted to always show the search input… I say we close it all up", JS00001 "Agreed") — which overrode the C+'s selection rather than resulting from it 2 (flagged)
    5 Sustained engagement Substantive activity on a single day (2026-07-15): the selection + "mark this pr as ready" (PR comment). The 07-18 and 07-22 comments are payment negotiation, not review work 0

    Total: 2/10 (0/10 if Factor 4 is read by intent rather than the literal "selected-then-abandoned" trigger).

    On the $125 claim

    truph01's $125 rationale was "reviewed proposals → asked Melvin to open a PR → reviewed the PR." Against the timeline:

    • Reviewed proposals — only a one-line selection, no substantive per-author feedback.
    • Asked Melvin to open the PR — yes, verifiable.
    • Reviewed the PR — no review or code-review comments exist on #96157; the only C+ comment there was "mark this pr as ready." truph01 points to a Slack DM, which isn't verifiable from the record (you already flagged this gap).

    Two facts also cut against a straight 50%:

    • The issue closed WAD by a design decision, not by the C+'s work — in fact the C+ had greenlit fixing something that turned out not to be a bug.
    • No contributor was hired/assigned (no proposal accepted; Melvin opened the PR), so the doc clause you quoted — "50% to contributor and C+ if the contributor was hired/assigned" — doesn't have its precondition met here.

    Recommendation

    By the framework this doesn't support $125. The evidenced C+ contribution is proposal selection + PR routing — real but light, and pointed at the wrong outcome (a WAD issue). For a v1 process rule, this is a good example of the low end: if you want to pay anything, a small good-faith amount for the triage/selection time is a defensible human call, but the timeline does not justify the 50% tier. For contrast, the worked example that scored a full payout had an independent repro, a root-cause with video, and a post-fix retest — none of which are present here.

    One thing only a human can settle: if the Slack-DM PR review truph01 referenced contains genuine substantive review, that would lift Factors 1/5 — but it needs to be surfaced on the record to count.

  19. mallenexpensify commented on Jul 22, 2026

    @mallenexpensify
    Contributor

    @truph01 unless you can show how you invested a non-insignificant amount of time, I don't think one would be due payment.

  20. truph01 commented on Jul 22, 2026

    @truph01
    Contributor

    @mallenexpensify Since it didn't take much effort for me to choose the solution, and we've decided not to fix the issue after all, I don't think a payment is needed here. We can go ahead and close this one.

  21. mallenexpensify commented on Jul 22, 2026

    @mallenexpensify
    Contributor

    Closing as not due payment. I updated the C+ doc to state

    If we decide to close the job before it is successfully completed
    50% payment to contributor and C+ if the contributor was hired/assigned. This doesn’t include selecting Melvin’s proposal

    Thx @truph01

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringExternalWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions