Skip to content

UN-4300 [FEAT] Add the v1 toggles: Checkbox, Radio and RadioGroup, Switch and Slider (P1-T05) - #2462

Open
praveen-formido wants to merge 12 commits into
mainfrom
UN-4300-toggles
Open

praveen-formido wants to merge 12 commits into
mainfrom
UN-4300-toggles

Merge remote-tracking branch 'origin/main' into UN-4300-toggles

dd65be1
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 11, 2026 in 45s

Annotations

Check warning on line 80 in frontend/src/v1/components/ui/toggles/Slider.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=Zipstack_unstract&issues=AaHAIUlJVAmwayIud9lt&open=AaHAIUlJVAmwayIud9lt&pullRequest=2462

Check warning on line 71 in frontend/src/v1/components/ui/toggles/Slider.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=Zipstack_unstract&issues=AaG_7WKbNrHyZCvw4JGj&open=AaG_7WKbNrHyZCvw4JGj&pullRequest=2462

Check warning on line 124 in frontend/src/v1/components/ui/toggles/RadioGroup.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this component definition out of the parent component and pass data as props.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaG_7WKdNrHyZCvw4JGl&open=AaG_7WKdNrHyZCvw4JGl&pullRequest=2462

Check warning on line 142 in frontend/src/v1/components/ui/toggles/Slider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a stable ID as key, because the index changes when the list changes.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaG_7WKbNrHyZCvw4JGk&open=AaG_7WKbNrHyZCvw4JGk&pullRequest=2462

Check failure on line 41 in frontend/src/v1/components/ui/toggles/Slider.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaG_7WKbNrHyZCvw4JGi&open=AaG_7WKbNrHyZCvw4JGi&pullRequest=2462

Check warning on line 43 in frontend/src/v1/components/ui/toggles/Checkbox.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this component definition out of the parent component and pass data as props.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaG_7WCVNrHyZCvw4JGh&open=AaG_7WCVNrHyZCvw4JGh&pullRequest=2462

Check warning on line 36 in frontend/src/v1/components/ui/toggles/Switch.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this component definition out of the parent component and pass data as props.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaG_7WKeNrHyZCvw4JGm&open=AaG_7WKeNrHyZCvw4JGm&pullRequest=2462