Skip to content

Conversation

@Abdkhan14
Copy link
Contributor

@Abdkhan14 Abdkhan14 commented Dec 1, 2025

Note: No change in functionality! just some minor style changes

Added shared components to styles.tsx

  • Used as <AttributeBreakdownsComponent.${component name}/>

Added shared constants to constants.tsx

@Abdkhan14 Abdkhan14 requested a review from a team as a code owner December 1, 2025 21:02
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 1, 2025

return [
'<div',
' data-explore-chart-selection-region',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Shared tooltip adds unintended attribute to distribution chart

The shared tooltipActionsHtmlRenderer now applies data-explore-chart-selection-region to all tooltip actions. This changes the attributeDistributionChart's behavior, as it previously didn't have this attribute. Clicking its tooltip actions now prevents chart selections from clearing, which wasn't the case before.

Fix in Cursor Fix in Web

const roundsToWhole = rounded.endsWith('.0') || !rounded.includes('.');

const decimals = roundsToWhole ? 0 : 1;
return `${percentage.toFixed(decimals)}%`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Percentage formatter logic changes output for some values

The percentageFormatter logic was changed in a way that produces different output for some values. The original used percentage % 1 === 0 to determine if a number is a whole number, which only matched exact whole numbers. The new logic checks if toFixed(1) ends with ".0", which matches any value that rounds to a whole number. For example, 50.04 previously displayed as "50.0%" but now displays as "50%". This contradicts the PR's claim of "No change in functionality".

Fix in Cursor Fix in Web

Base automatically changed from abdk/attr-breakdown-tooltip to master December 3, 2025 17:20
@Abdkhan14 Abdkhan14 merged commit 12cb7c6 into master Dec 3, 2025
48 checks passed
@Abdkhan14 Abdkhan14 deleted the abdk/explore-attr-breakdowns-cleanup branch December 3, 2025 18:37
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants