Skip to content

Conversation

@Mudaafi
Copy link
Contributor

@Mudaafi Mudaafi commented Apr 30, 2025

Note: This component is due for a refactor

Pull Request Checklist

Before you submit a pull request, please make sure you have to following:

  • I have added or updated TypeScript types for my changes, ensuring they are compatible with the existing codebase.
  • I have added JSDoc comments to my TypeScript definitions for improved documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added any necessary documentation (if appropriate).
  • I have made sure my PR is up-to-date with the main branch.

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no API changes)
  • Documentation content changes
  • TypeScript type definitions update
  • Other... Please describe:

@Mudaafi Mudaafi requested a review from esezen April 30, 2025 22:03
@Mudaafi Mudaafi requested a review from a team as a code owner April 30, 2025 22:03
Comment on lines +121 to +122

setIsModified(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This prevents the initial useEffect function from rerendering to the default values

Comment on lines +141 to +144
const trackLen = facet.max - facet.min;
const rebasedStartValue = minValue - facet.min;
const startPercentage = ((100 * rebasedStartValue) / trackLen).toFixed(2);
const widthPercentage = ((100 * (maxValue - minValue)) / trackLen).toFixed(2);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rebases the track length to account for non-zero facet.min values

@esezen esezen merged commit 1f8f7bf into main May 1, 2025
9 of 11 checks passed
@esezen esezen deleted the ci-4406-os-plp-ui-fix-ranged-filter-bug branch May 1, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants