App icon indicating copy to clipboard operation
App copied to clipboard

[Due for payment 2026-11-19] Insights - Tooltip shows down arrow for upward trend on Android, no arrow on iOS

Open applause-bot[bot] opened this issue 3 weeks ago • 14 comments

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


Version Number: 9.5.35-1 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: https://github.com/Expensify/App/pull/105933 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Other

Action Performed:

Precondition:

  • Enable insightsCompliance beta.
  • Account has some expenses with violations with up and down trend in Violations over time chart on Insights > Compliance (use [email protected])
  1. Launch Expensify app.
  2. Go to Insights > Compliance.
  3. Tap Compare filter > select Average > Apply.
  4. Tap on the point with upward trend on Violations over time.

Expected Result:

Tooltip will show up arrow for upward trend on Android and iOS (web behavior).

Actual Result:

On Android, tooltip shows down arrow for upward trend. On iOS, tooltip is missing arrow for upward trend.

Workaround:

Unknown

Platforms:

  • [x] Android: App
  • [ ] Android: mWeb Chrome
  • [x] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [ ] Windows: Chrome
  • [ ] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/755243db-634a-4c79-a9d9-6c80b9cda146

Image Image Image

View all open jobs on GitHub

Applause Internal Information Exported by: Chandana Kiran Bug ID: 7310266

Issue OwnerCurrent Issue Owner: @mallenexpensify

applause-bot[bot] avatar Nov 10 '26 17:11 applause-bot[bot]

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

https://platform.applause.com/services/links/v1/external/36316a70e3f4d666f4ed485d896b47ff3b8dc318a0961ff3b3ba2b6cf7cc30e6

https://platform.applause.com/services/links/v1/external/bf951a6c92ca62b9768661c66b2eabb6a72cba2ae869a7258da938f90dccecbd

https://platform.applause.com/services/links/v1/external/98830edbced8d7e17e6f2910aa78c7bb285c270ba72378ea3c4632edaf6f3f14

applause-bot[bot] avatar Nov 10 '26 17:11 applause-bot[bot]

You have been assigned to this deploy blocker because you recently merged this PR: https://github.com/Expensify/App/pull/105933

melvin-bot[bot] avatar Nov 10 '26 17:11 melvin-bot[bot]

@luacmartins @daledah you have been assigned to this deploy blocker because you reviewed the offending PR: https://github.com/Expensify/App/pull/105933

melvin-bot[bot] avatar Nov 10 '26 17:11 melvin-bot[bot]

@mhawryluk you have been assigned to this deploy blocker because you authored the offending PR: https://github.com/Expensify/App/pull/105933

melvin-bot[bot] avatar Nov 10 '26 17:11 melvin-bot[bot]

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

melvin-bot[bot] avatar Nov 10 '26 17:11 melvin-bot[bot]

:wave: 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.

github-actions[bot] avatar Nov 10 '26 17:11 github-actions[bot]

Investigation result: needs confirmation

The release exposure is identified; the rendering root cause is not yet confirmed. Keep the deploy blocker pending native verification.

Which PR exposed it?

Insights average-comparison changes enabled Average comparisons for count metrics, including Compliance. It is included in the affected release checklist.

The PR changes count-average selection and comparison values, not the arrow asset or direction-selection logic.

Likely cause — medium confidence

The up-arrow SVG contains downward-pointing geometry and relies on a root transform="scale(-1)" to point upward. Different native handling of that transform could explain Android displaying it downward and iOS displaying nothing.

The tooltip correctly selects the upward asset for a positive comparison. However, the native rendering mechanism has not been reproduced.

Important alternative: the arrow compares the selected value against Average, not against the previous chart point. A rising point below Average should still show a down arrow, per the comparison calculation.

Recommended next action

  1. Capture the selected count and Average to establish the expected arrow direction.
  2. Verify the upward SVG on both native platforms.
  3. If confirmed, roll forward with intrinsically upward SVG geometry that needs no root transform, then regression-test other consumers.

I would not recommend reverting the feature PR on the current evidence: it exposed this path, but the suspicious asset predates it.

No App UI testing was performed. The reported failures are native-only, and this investigation was restricted to web testing. A mandatory code-review rule is premature until the rendering hypothesis is validated.


view run

MelvinBot avatar Nov 10 '26 17:11 MelvinBot

Compliance is behind beta. the issue should be fixed here: https://github.com/Expensify/App/pull/106133

mhawryluk avatar Nov 10 '26 17:11 mhawryluk

@daledah

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.5.36-0 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/106133

If no regressions arise, payment will be issued on 2026-11-19. :confetti_ball:

The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]

melvin-bot[bot] avatar Nov 12 '26 08:11 melvin-bot[bot]

Contributor+ Checklist:

  • [x] [Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to the comment on the PR: N/A

  • [x] [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion:

  • [x] [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal

Precondition:

Test:

  1. Log in to an account that has the insightsAI beta enabled on the backend. Go to Insights > Spend.
  2. Verify each card shows the chip, the title in bold, the summary and Explain, and it looks correct.
  3. Verify the increase chips are tangerine with an up arrow, the decrease chips are green with a down arrow, and the neutral chips are blue with a coins icon.
  4. Verify long titles wrap to 2 lines and the Explain buttons line up across cards.
  5. Press Explain on a card and verify Concierge opens with that card's prompt.
  6. Change a filter and verify the skeleton matches the card layout while the insights load.
  7. Pick a date range with no insights and verify the card row is hidden.
  8. On a wide window, verify the 4 cards sit in one row. Narrow the window to a medium width and verify they wrap into 2 rows of 2, with dividers only between columns.
  9. Narrow the window until the filters don't fit next to the tabs and verify they move below the tabs, aligned left.
  10. Press Export (on wide and medium desktop layout) and verify the PNG shows all the cards and filters.
  11. On mobile, verify the cards scroll sideways as before.

Do we agree 👍 or 👎

daledah avatar Nov 12 '26 14:11 daledah

Triggered auto assignment to @mallenexpensify (Awaiting Payment)

Payment Summary

Resolving PRs:

  • https://github.com/Expensify/App/pull/106133

  • Contributor: @mhawryluk does not require payment (Contractor)

  • Reviewer: @daledah owed $175 via NewDot

BugZero Checklist (@mallenexpensify)

  • [ ] I have confirmed assignees, roles, and Upwork contracts look correct
  • [ ] I have paid out Upwork contracts / manual NewDot requests
  • [ ] [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon

Claude posting on behalf of Matt:

Your call. Job price: $175 (standard).

  • truph01 (C+): 100%, via NewDot
  • daledah (C+): 0%

truph01 reviewed the fix 106133 but is not assigned.

daledah is assigned and posted the checklist, but did no PR work. daledah approved the offending PR 105933, inside its window.

Next: decide if truph01 is paid here, press Caps+Y, then pay.

Evidence
  • C+ checklist, 12 steps: comment
  • PR 106133: by mhawryluk (agency), merged 2026-11-10, production 2026-11-12, approved by truph01 and luacmartins.
  • This bug is the blocker that cut daledah to 50% on 102808.
  • Test videos: C+ 3/5.

PAYPREP v1

mallenexpensify avatar Nov 20 '26 01:11 mallenexpensify

Payment Summary

Contributor+: @truph01 due $250 via NewDot

@daledah , reopen and comment if you disagree.

mallenexpensify avatar Nov 21 '26 00:11 mallenexpensify