Skip to content

feat: migrate to a new slider library#506

Open
stelselim wants to merge 11 commits into
mainfrom
moo-2139/new-slider-range-slider-library
Open

feat: migrate to a new slider library#506
stelselim wants to merge 11 commits into
mainfrom
moo-2139/new-slider-range-slider-library

Conversation

@stelselim

Copy link
Copy Markdown
Contributor

No description provided.

@stelselim stelselim requested a review from a team as a code owner May 6, 2026 13:22
@stelselim stelselim force-pushed the moo-2139/new-slider-range-slider-library branch from 1f51207 to b73765d Compare June 3, 2026 12:00
@stelselim stelselim force-pushed the moo-2139/new-slider-range-slider-library branch from 255b0a5 to 519812f Compare June 11, 2026 13:58
@stelselim

Copy link
Copy Markdown
Contributor Author

TODO: Update cropped screenshots

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please double check the colors, new ones appear to have a lighter shade of blue.

expect(component.getAllByText("Invalid")).toHaveLength(2);
});

it("changes the lower value when swiping", () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why was this test removed?

expect(component.queryByText("The upper value must be equal or less than the maximum value.")).not.toBeNull();
});

it("renders with the width of the parent view", () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why was this test removed?

const onValueChange = useCallback(
(values: number[]): void => {
if (values[0] === null || values[1] === null) {
if (values[0] === null || values[0] === undefined || values[1] === null || values[1] === undefined) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

normally you would want to avoid double equals, but i think in this case it's better to make an exception and replace these checks with == null which should be an equivalent to === null && === undefined

(values: number[]): void => {
if (
values[0] === null ||
values[0] === undefined ||

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as above regarding null checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants