Skip to content

[Due for payment 2026-08-19] Spend - "Violations" is not shown in column list when it is a table column #98204

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.4.52-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #97067
Email or phone of affected tester (no customers): sjodnijsodnjosjoijos@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Enable Rules.
  • Invite user B to the workspace.
  • User B submits an expense without category in the invited workspace.
  • Perform the steps below as owner:
  1. Go to staging.new.expensify.com
  2. Go to Spend > Violations by submitter.
  3. Click Submitted and change it to This month.
  4. Expand the group.
  5. Click Display > Edit columns.

Expected Result:

"Violations" should be shown in column list because it is a table column.

Actual Result:

"Violations" is not shown in column list when it is a table column.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7230498_1786396392819.10.mp4

View all open jobs on GitHub

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

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Aug 10, 2026
  2. applause-bot commented on Aug 10, 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/ed7efa7df2acfb6e31d296865645c4d2b5fa587d18be100bdacf191793a117e7

  3. melvin-bot commented on Aug 10, 2026

    @melvin-bot

    @neil-marcellini recently merged #97067, but they are OOO right now, so I'll auto-assign someone else.

  4. melvin-bot commented on Aug 10, 2026

    @melvin-bot

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

  5. melvin-bot commented on Aug 10, 2026

    @melvin-bot

    @neil-marcellini @cretadn22 you have been assigned to this deploy blocker because you reviewed the offending PR: #97067

  6. melvin-bot commented on Aug 10, 2026

    @melvin-bot

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

  7. github-actions commented on Aug 10, 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.
  8. MelvinBot commented on Aug 10, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Root cause: #97067 (the PR named in the report) introduced the new Violations transaction column. It auto-renders the column in the table whenever a transaction has submitted violations, but registered the column in COLUMN_AVAILABILITY with search: false, which deliberately excludes it from the Edit columns picker. So the column shows in the table but can't be toggled — exactly the reported inconsistency. Confidence: High (staging-only; brand-new feature).

    Recommended resolution: roll forward, not revert. Reverting #97067 would drop the entire "expanding groups / Violations by submitter" feature to fix a minor picker inconsistency. The targeted fix is a one-line decision in COLUMN_AVAILABILITY. neil-marcellini is OOO, so the PR author nkdengineer should confirm the intended behavior:

    • If Violations should be user-toggleable in Search → set search: true on the VIOLATIONS entry (src/CONST/index.ts:6999) and update the guard test tests/unit/Search/ColumnAvailabilityTest.ts.
    • If auto-inject-only is intended → suppress rendering Violations as a standalone toggleable column so table and picker agree.

    Given it's a cosmetic edge-case in a staging-only feature (the violations data still displays correctly), this is also a reasonable demote candidate.

    Evidence & investigation details

    Picker excludes the column — the Edit-columns list filters COLUMN_AVAILABILITY to only entries flagged search: true, dropping VIOLATIONS:

    Table renders the column anyway — data-driven, independent of the picker:

    • src/libs/SearchUIUtils.ts:6414-6419 — sets columns[VIOLATIONS] = true when submitted violations exist
    • src/libs/SearchUIUtils.ts:6535-6543 — injects VIOLATIONS into the returned column set
    • Render pieces added by the same PR: src/components/Search/SearchTableHeader.tsx (header) and src/components/TransactionItemRow/TransactionItemRowWide.tsx (case TABLE_COLUMNS.VIOLATIONS)

    Verification: The VIOLATIONS: { search: false, reportView: false } block is present in the gh pr diff 97067 diff alongside TABLE_COLUMNS.VIOLATIONS: 'violations' and the render/inject logic above. No other PR in the current StagingDeployCash touches this code path. Merge date (2026-08-07) aligns with the 9.4.52-0 staging build.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/98204) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  9. 11 remaining items

  10. melvin-bot commented on Aug 12, 2026

    @melvin-bot

    @cretadn22

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.52-11 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 2026-08-19. 🎊

  11. melvin-bot commented on Aug 14, 2026

    @melvin-bot

    @cretadn22 Whoops! This issue is 2 days overdue. Let's get this updated quick!

  12. melvin-bot commented on Aug 18, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  13. melvin-bot commented on Aug 18, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
  14. mallenexpensify commented on Aug 20, 2026

    @mallenexpensify
    Contributor

    @MelvinBot why is @cretadn22 listed in the payment summary above? They're not assigned as a reviewer or assignee to the PR

    I'm assuming no one is due payment here, comment if you disagree.

  15. MelvinBot commented on Aug 20, 2026

    @MelvinBot
    Contributor

    You're right — cretadn22 isn't owed payment here.

    The payment summary is generated from this issue's assignees and their roles, not from who reviewed the resolving PR. cretadn22 is an assignee on this issue (assignees: Valforte, mallenexpensify, neil-marcellini, cretadn22) in the "Reviewer" role. They landed there via the deploy-blocker auto-assignment on 2026-08-10 — "you have been assigned to this deploy blocker because you reviewed the offending PR: #97067" — i.e. they reviewed the PR that caused the blocker, not the fix.

    The resolving PR #98345 was a straight revert of #97067, authored by jasperhuangg and approved by Valforte. cretadn22 didn't review or author it, so there's no reviewer work on the fix to pay out.

    So the $250 "Reviewer" line is just an artifact of the deploy-blocker auto-assignment carrying the offending-PR reviewer into the payment summary. No payment is due to cretadn22 for this one.

  16. mitarachim commented on Sep 2, 2026

    @mitarachim

    Deploy Blocker #100114 was identified to be related to the PR #98391 that attempted to fix this issue.

  17. mitarachim commented on Sep 2, 2026

    @mitarachim

    Deploy Blocker #100122 was identified to be related to the PR #98391 that attempted to fix this issue.

  18. mitarachim commented on Sep 2, 2026

    @mitarachim

    Deploy Blocker #100139 was identified to be related to the PR #98391 that attempted to fix this issue.

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

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions