Skip to content

feat: add StartEndDate component#1818

Draft
jenniferarnesen wants to merge 1 commit into
masterfrom
feat/start-end-date-selector
Draft

feat: add StartEndDate component#1818
jenniferarnesen wants to merge 1 commit into
masterfrom
feat/start-end-date-selector

feat: add StartEndDate component

7cde561
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 9, 2026 in 36s

Quality Gate failed

Failed conditions
12 New issues
12 New Code Smells (required ≤ 0)
1 New Critical Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 213 in src/components/StartEndDate/dateUtils.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA6DH77yBeZesPeT&open=AZzTIA6DH77yBeZesPeT&pullRequest=1818

Check warning on line 30 in src/components/StartEndDate/useKeyDown.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA-TH77yBeZesPea&open=AZzTIA-TH77yBeZesPea&pullRequest=1818

Check warning on line 113 in src/components/StartEndDate/CalendarInput.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property 'jsx' found

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA-dH77yBeZesPee&open=AZzTIA-dH77yBeZesPee&pullRequest=1818

Check warning on line 31 in src/components/StartEndDate/useKeyDown.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA-TH77yBeZesPeb&open=AZzTIA-TH77yBeZesPeb&pullRequest=1818

Check warning on line 34 in src/components/StartEndDate/useKeyDown.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA-TH77yBeZesPec&open=AZzTIA-TH77yBeZesPec&pullRequest=1818

Check warning on line 35 in src/components/StartEndDate/useKeyDown.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA-TH77yBeZesPed&open=AZzTIA-TH77yBeZesPed&pullRequest=1818

Check warning on line 303 in src/components/StartEndDate/dateUtils.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Math.min()` to simplify ternary expressions.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA6DH77yBeZesPeY&open=AZzTIA6DH77yBeZesPeY&pullRequest=1818

Check warning on line 303 in src/components/StartEndDate/dateUtils.js

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=dhis2_analytics&issues=AZzTIA6DH77yBeZesPeZ&open=AZzTIA6DH77yBeZesPeZ&pullRequest=1818

Check warning on line 283 in src/components/StartEndDate/dateUtils.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Math.min()` to simplify ternary expressions.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA6DH77yBeZesPeW&open=AZzTIA6DH77yBeZesPeW&pullRequest=1818

Check warning on line 283 in src/components/StartEndDate/dateUtils.js

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=dhis2_analytics&issues=AZzTIA6DH77yBeZesPeX&open=AZzTIA6DH77yBeZesPeX&pullRequest=1818

Check failure on line 230 in src/components/StartEndDate/dateUtils.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 26 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA6DH77yBeZesPeU&open=AZzTIA6DH77yBeZesPeU&pullRequest=1818

Check warning on line 259 in src/components/StartEndDate/dateUtils.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=dhis2_analytics&issues=AZzTIA6DH77yBeZesPeV&open=AZzTIA6DH77yBeZesPeV&pullRequest=1818