You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rules - Tooltip does not appear when hovered over All cards default rule #96197
Version Number: 9.4.34-11 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:#95885 Email or phone of affected tester (no customers):applausetester+ssndjois2jd1@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Workspace Settings
Action Performed:
Precondition:
Log in with Expensifail account.
Workspace has at least one Expensify Card.
Enable Rules.
Go to staging.new.expensify.com
Go to workspace settings > Rules.
Go to Card restrictions.
Hover over All cards rule (make sure it has ellipsis).
Expected Result:
Tooltip will appear when hovered over All cards default rule (tooltip appears when hovered over custom card rule).
Actual Result:
Tooltip does not appear when hovered over All cards default rule.
👋 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:
Identify the pull request that introduced this issue and revert it.
Root Cause (medium confidence): The default "All cards" row and the custom-rule rows use the exact same tooltip code, so there is no code-level difference in how their tooltips render. The tooltip is gated on the text actually overflowing its column — TextWithTooltip only sets showTooltip when scrollWidth > offsetWidth. The default row's copy doesn't actually overflow: its card label is the short 'All cards' and its rule summary is a hardcoded string that already ends in a literal... — defaultRuleSummary: 'Categories including adult services, ATMs, gambling, and...'. So it looks truncated (because of the literal ...) but the DOM text isn't clipped, the overflow check returns false, and no tooltip appears. Custom rules carry real, longer data that genuinely overflows, so their tooltips fire.
One quick check needed to finalize the fix — narrow the window until the default row's text is genuinely clipped by CSS (not just the literal ...) and hover:
Tooltip appears → the report is purely the literal-... copy looking truncated. Fix is a copy change (see below), or close as expected.
Tooltip still does not appear → there's a real measurement bug in TextWithTooltip for this row (stale onLayout measurement), and the fix moves there instead.
Recommended Fix: Assuming the copy artifact is confirmed, drop the hardcoded ... from defaultRuleSummary (and its translations in es, fr, de, etc.) so the string no longer masquerades as truncated. If product wants a tooltip to reveal the full category list on the default row, the summary needs real full text to reveal — the current and... copy has nothing more to show.
Investigation details & ruled-out hypotheses
Introduced by:#95885, which added TextWithTooltip (truncation-gated tooltips) to the workspace tables including WorkspaceSpendRulesTableRow.
Default vs. custom row is identical code. Both branches render <TextWithTooltip shouldShowTooltip numberOfLines={1} .../> for cardSummary and ruleSummary. The only per-row data difference is set in RulesCardRestrictionsTab, where the default rule gets the fixed 'All cards' / defaultRuleDescription copy.
Ruled out — "disabled row blocks hover": the default row is the only one with disabled: true, which makes react-native-web apply pointerEvents: 'box-none' to the row Pressable. I verified RNW compiles box-none so the element is pointer-events: nonebut its children get pointer-events: auto — so hover still reaches the nested tooltip. This is not the cause.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/96197) to create a draft PR. To refine:@MelvinBot <your feedback> (e.g. after running the quick check above). To reject: Explain why you are rejecting this analysis.
Classification: Frontend bug (fix, if any, is in Expensify/App) Causing PR: #95885 - "Add truncated-text tooltips to remaining workspace table rows." by @Krishna2323 (High confidence) Related Issues: N/A
Recommendation: DEMOTE (already actioned — no deploy-blocker action required)
The DeployBlockerCash label was already removed by @JS00001 (internal engineer) with the note "behind a beta", so the App deploy is no longer blocked. This is not a regression: it is a data/copy artifact, and demotion is the correct outcome. No label change is needed from me — an internal employee has already handled it, and per triage rules I will not re-add or alter it.
Assigned: No change. @Krishna2323 was already auto-assigned as the author of the causing PR; that is appropriate for the follow-up copy fix. Labels: No changes made. DeployBlockerCash was already removed by an internal engineer (@JS00001) before this investigation.
The PR diff shows it did not introduce TextWithTooltip to this row — that component was already there rendering plain text. The PR only added the shouldShowTooltip prop to the existing cardSummary and ruleSummary cells in WorkspaceSpendRulesTableRow.tsx, turning tooltips ON. So before Add truncated-text tooltips to remaining workspace table rows. #95885 no row showed a tooltip; after it, tooltips are gated on real text overflow. This is the code that produces the reported behavior — High confidence it is the causing PR.
Reproducible on staging only; N/A on production because the feature is new and beta-gated. That, plus @JS00001's "behind a beta" note, is why it was demoted off the blocker list.
Tooltip gating: TextWithTooltip/index.tsx#L23-L34 — the tooltip only renders when the DOM text actually overflows (scrollWidth > offsetWidth || scrollHeight > offsetHeight), measured in onLayout.
Default vs. custom rows render identical tooltip code — there is no per-row branch that disables the tooltip: WorkspaceSpendRulesTableRow.tsx#L105-L164. Both cardSummary and ruleSummary cells get shouldShowTooltip.
The only difference is the data fed to the default row: RulesCardRestrictionsTab.tsx#L64-L73 sets cardSummary = 'All cards' (defaultRuleDescription) and ruleSummary = defaultRuleSummary.
The default ruleSummary copy: en.ts#L7860-L7863 — defaultRuleSummary: 'Categories including adult services, ATMs, gambling, and...'. Note the trailing ... is a literal part of the string, not CSS truncation.
Root Cause
The default row's copy is short ('All cards') and its rule summary is a pre-abbreviated literal that already ends in a literal .... At normal column widths the DOM text does not actually overflow, so scrollWidth > offsetWidth is false and no tooltip renders — even though the literal ... makes it look truncated. Custom rules carry genuinely long, joined summary text (rule.summaryParts.map(...).join(', ')) that really overflows, so their tooltips fire. This is expected behavior of the truncation-gated tooltip meeting a copy artifact, not a rendering/measurement bug.
I confirmed the prior "disabled row blocks hover" theory is not the cause: disabled only affects the ArrowRight opacity and press handling; the tooltip cells are outside any pointer-events-disabling wrapper, and identical code runs for both row types.
Quick fix (recommended follow-up, non-blocking): This is a copy issue. Either (a) drop the literal and... from defaultRuleSummary (and its es/fr/de/etc. translations) so it no longer masquerades as truncated, or (b) if product wants the default row to reveal the full category list on hover, give it real full text to show — the current and... has nothing more to reveal. A code change to TextWithTooltip is not needed.
DEMOTE: Already done by @JS00001 (beta-gated, cosmetic, no data/auth/payment impact). Correct call.
Activity
applause-bot commentedon Jul 15, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/e1b8ccac1ede8e3798652c420d55664e68e4f71b8186771346e315e9b92ed16c
melvin-bot commentedon Jul 15, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #95885
melvin-bot commentedon Jul 15, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jul 15, 2026
👋 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:
JS00001 commentedon Jul 15, 2026
behind a beta
MelvinBot commentedon Jul 15, 2026
Issue Analysis
Root Cause (medium confidence): The default "All cards" row and the custom-rule rows use the exact same tooltip code, so there is no code-level difference in how their tooltips render. The tooltip is gated on the text actually overflowing its column —
TextWithTooltiponly setsshowTooltipwhenscrollWidth > offsetWidth. The default row's copy doesn't actually overflow: its card label is the short'All cards'and its rule summary is a hardcoded string that already ends in a literal...—defaultRuleSummary: 'Categories including adult services, ATMs, gambling, and...'. So it looks truncated (because of the literal...) but the DOM text isn't clipped, the overflow check returns false, and no tooltip appears. Custom rules carry real, longer data that genuinely overflows, so their tooltips fire.One quick check needed to finalize the fix — narrow the window until the default row's text is genuinely clipped by CSS (not just the literal
...) and hover:...copy looking truncated. Fix is a copy change (see below), or close as expected.TextWithTooltipfor this row (staleonLayoutmeasurement), and the fix moves there instead.Recommended Fix: Assuming the copy artifact is confirmed, drop the hardcoded
...fromdefaultRuleSummary(and its translations ines,fr,de, etc.) so the string no longer masquerades as truncated. If product wants a tooltip to reveal the full category list on the default row, the summary needs real full text to reveal — the currentand...copy has nothing more to show.Investigation details & ruled-out hypotheses
TextWithTooltip(truncation-gated tooltips) to the workspace tables includingWorkspaceSpendRulesTableRow.<TextWithTooltip shouldShowTooltip numberOfLines={1} .../>forcardSummaryandruleSummary. The only per-row data difference is set inRulesCardRestrictionsTab, where the default rule gets the fixed'All cards'/defaultRuleDescriptioncopy.disabled: true, which makes react-native-web applypointerEvents: 'box-none'to the rowPressable. I verified RNW compilesbox-noneso the element ispointer-events: nonebut its children getpointer-events: auto— so hover still reaches the nested tooltip. This is not the cause.Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/96197)to create a draft PR.To refine:
@MelvinBot <your feedback>(e.g. after running the quick check above).To reject: Explain why you are rejecting this analysis.
MelvinBot commentedon Jul 15, 2026
🔍 Investigation Summary
Classification: Frontend bug (fix, if any, is in
Expensify/App)Causing PR: #95885 - "Add truncated-text tooltips to remaining workspace table rows." by @Krishna2323 (High confidence)
Related Issues: N/A
Recommendation: DEMOTE (already actioned — no deploy-blocker action required)
The
DeployBlockerCashlabel was already removed by @JS00001 (internal engineer) with the note "behind a beta", so the App deploy is no longer blocked. This is not a regression: it is a data/copy artifact, and demotion is the correct outcome. No label change is needed from me — an internal employee has already handled it, and per triage rules I will not re-add or alter it.Assigned: No change. @Krishna2323 was already auto-assigned as the author of the causing PR; that is appropriate for the follow-up copy fix.
Labels: No changes made.
DeployBlockerCashwas already removed by an internal engineer (@JS00001) before this investigation.📋 Detailed Analysis
Evidence
TextWithTooltipto this row — that component was already there rendering plain text. The PR only added theshouldShowTooltipprop to the existingcardSummaryandruleSummarycells inWorkspaceSpendRulesTableRow.tsx, turning tooltips ON. So before Add truncated-text tooltips to remaining workspace table rows. #95885 no row showed a tooltip; after it, tooltips are gated on real text overflow. This is the code that produces the reported behavior — High confidence it is the causing PR.Verification (SHA cc39972)
TextWithTooltip/index.tsx#L23-L34— the tooltip only renders when the DOM text actually overflows (scrollWidth > offsetWidth || scrollHeight > offsetHeight), measured inonLayout.WorkspaceSpendRulesTableRow.tsx#L105-L164. BothcardSummaryandruleSummarycells getshouldShowTooltip.RulesCardRestrictionsTab.tsx#L64-L73setscardSummary = 'All cards'(defaultRuleDescription) andruleSummary = defaultRuleSummary.ruleSummarycopy:en.ts#L7860-L7863—defaultRuleSummary: 'Categories including adult services, ATMs, gambling, and...'. Note the trailing...is a literal part of the string, not CSS truncation.Root Cause
The default row's copy is short (
'All cards') and its rule summary is a pre-abbreviated literal that already ends in a literal.... At normal column widths the DOM text does not actually overflow, soscrollWidth > offsetWidthisfalseand no tooltip renders — even though the literal...makes it look truncated. Custom rules carry genuinely long, joined summary text (rule.summaryParts.map(...).join(', ')) that really overflows, so their tooltips fire. This is expected behavior of the truncation-gated tooltip meeting a copy artifact, not a rendering/measurement bug.I confirmed the prior "disabled row blocks hover" theory is not the cause:
disabledonly affects the ArrowRight opacity and press handling; the tooltip cells are outside any pointer-events-disabling wrapper, and identical code runs for both row types.Resolution options
and...fromdefaultRuleSummary(and itses/fr/de/etc. translations) so it no longer masquerades as truncated, or (b) if product wants the default row to reveal the full category list on hover, give it real full text to show — the currentand...has nothing more to reveal. A code change toTextWithTooltipis not needed.JS00001 commentedon Jul 23, 2026
this is fixed