Skip to content

Conversation

@AndiLuo
Copy link
Contributor

@AndiLuo AndiLuo commented Dec 4, 2025

…placed sl-tooltip in dashboard view to use a sl-dropdown

Description of the change

Tooltip was not display correctly and sl-tooltip content is not clickable so I tried a workaround with sl-dropdown

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation or Development tools (readme, specs, tests, code formatting)

Links

  • Jira issue number: (PUT IT HERE)
  • Process.st launch checklist: (PUT IT HERE)

Checklists

Development

  • Prettier was run (if applicable)
  • The behaviour changes in the pull request are covered by specs
  • All tests related to the changed code pass in development

Paperwork

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has a Jira number
  • This pull request has a Process.st launch checklist

Code review

  • Changes have been reviewed by at least one other engineer
  • Security impacts of this change have been considered

…placed sl-tooltip in dashboard view to use a sl-dropdown
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a tooltip display issue by replacing sl-tooltip with sl-dropdown to enable clickable content, specifically adding a clickable support link within the indirect tax information tooltip.

Key changes:

  • Replaced sl-tooltip with sl-dropdown component for the indirect tax information tooltip
  • Added custom styling to replicate tooltip appearance using dropdown
  • Updated tooltip text to include a placeholder for a clickable support link

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
sqm-tax-and-cash-dashboard.tsx Updated indirectTaxTooltipSupport prop default value to include {supportLink} placeholder
sqm-tax-and-cash-dashboard-view.tsx Replaced tooltip with dropdown component, added hover behavior handler, styled dropdown to match tooltip appearance, and implemented support link with intl formatting
readme.md Updated documentation to reflect new default value with {supportLink} placeholder
package.json Bumped version from 2.0.5 to 2.0.6-0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@zachharrison zachharrison left a comment

Choose a reason for hiding this comment

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

Everything looks good, just need to adjust the version before merging

@AndiLuo AndiLuo requested a review from zachharrison December 5, 2025 18:14
zachharrison
zachharrison previously approved these changes Dec 9, 2025
Copilot AI review requested due to automatic review settings December 9, 2025 17:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +977 to +983
return () => {
trigger.removeEventListener("mouseenter", show);
trigger.removeEventListener("mouseleave", scheduleHide);
panel.removeEventListener("mouseenter", show);
panel.removeEventListener("mouseleave", scheduleHide);
clearTimeout(hideTimeout);
};
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

The dropdownHover function returns a cleanup function but nothing calls it, leading to event listener leaks. This cleanup function should be called when the component is unmounted or the ref changes. Consider using this return value in a useEffect or similar cleanup mechanism.

Copilot uses AI. Check for mistakes.
@zachharrison zachharrison merged commit b594ad5 into master Dec 9, 2025
11 of 14 checks passed
@zachharrison zachharrison deleted the bug/fix-dashboard-support-link branch December 9, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants