Skip to content

Feature #2717: dcc.DateRangeSlider and dcc.DateSlider#3802

Open
ines-om wants to merge 10 commits into
plotly:devfrom
ines-om:date-slider
Open

Feature #2717: dcc.DateRangeSlider and dcc.DateSlider#3802
ines-om wants to merge 10 commits into
plotly:devfrom
ines-om:date-slider

Fix helpers test

cf6a111
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 29, 2026 in 1m 15s

Annotations

Check warning on line 47 in components/dash-core-components/src/components/DateSlider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ55VHkpEMqJBb_Rbb9M&open=AZ55VHkpEMqJBb_Rbb9M&pullRequest=3802

Check warning on line 18 in components/dash-core-components/src/utils/computeDateSliderMarkers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer default parameters over reassignment.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ55VHoREMqJBb_Rbb9X&open=AZ55VHoREMqJBb_Rbb9X&pullRequest=3802

Check warning on line 256 in components/dash-core-components/tests/unit/computeDateSliderMarkers.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(positions).toHaveLength(1)".

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ72DpNWq9T427lrcph-&open=AZ72DpNWq9T427lrcph-&pullRequest=3802

Check warning on line 1 in components/dash-core-components/src/utils/LazyLoader/dateRangeSlider.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The arrow function should be named.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ55VHnwEMqJBb_Rbb9O&open=AZ55VHnwEMqJBb_Rbb9O&pullRequest=3802

Check warning on line 363 in components/dash-core-components/src/utils/calendar/helpers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ6nBRU6vn79Adz8qdRm&open=AZ6nBRU6vn79Adz8qdRm&pullRequest=3802

Check warning on line 283 in components/dash-core-components/src/fragments/DateRangeSlider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ55VHobEMqJBb_Rbb9d&open=AZ55VHobEMqJBb_Rbb9d&pullRequest=3802

Check failure on line 62 in components/dash-core-components/src/fragments/DateRangeSlider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Provide a compare function that depends on "String.localeCompare", to reliably sort elements alphabetically.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ55VHobEMqJBb_Rbb9a&open=AZ55VHobEMqJBb_Rbb9a&pullRequest=3802

Check warning on line 373 in components/dash-core-components/src/utils/calendar/helpers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add an initial value to this "reduce()" call.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ6nBRU6vn79Adz8qdRn&open=AZ6nBRU6vn79Adz8qdRn&pullRequest=3802

Check warning on line 24 in components/dash-core-components/src/components/DateRangeSlider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ55VHnoEMqJBb_Rbb9N&open=AZ55VHnoEMqJBb_Rbb9N&pullRequest=3802

Check warning on line 84 in components/dash-core-components/src/fragments/DateRangeSlider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ6nBRX8vn79Adz8qdRp&open=AZ6nBRX8vn79Adz8qdRp&pullRequest=3802

Check warning on line 61 in components/dash-core-components/src/fragments/DateRangeSlider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=plotly_dash&issues=AZ55VHobEMqJBb_Rbb9Z&open=AZ55VHobEMqJBb_Rbb9Z&pullRequest=3802