Skip to content

Refactored backend for templates, and tiny performance and readabilit…

b82667d
Select commit
Loading
Failed to load commit list.
Merged

Templates refactor #102

Refactored backend for templates, and tiny performance and readabilit…
b82667d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 21, 2026 in 1m 4s

Quality Gate failed

Annotations

Check warning on line 41 in web/src/components/templates/TemplateFormModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'If' statement should not be the only statement in 'else' block

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyKTeeD3ppJ6-Ik&open=AZ0S1EyKTeeD3ppJ6-Ik&pullRequest=102

Check failure on line 13 in api/src/services/templates.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "/templates/pages/" 3 times.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyyTeeD3ppJ6-Is&open=AZ0S1EyyTeeD3ppJ6-Is&pullRequest=102

Check warning on line 120 in web/src/components/templates/TemplateFormModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A form label must be associated with a control.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyKTeeD3ppJ6-Ip&open=AZ0S1EyKTeeD3ppJ6-Ip&pullRequest=102

Check warning on line 131 in web/src/components/templates/TemplateFormModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A form label must be associated with a control.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyKTeeD3ppJ6-Iq&open=AZ0S1EyKTeeD3ppJ6-Iq&pullRequest=102

Check failure on line 51 in api/src/services/templates.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "${{redirect}}" 4 times.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyxTeeD3ppJ6-Ir&open=AZ0S1EyxTeeD3ppJ6-Ir&pullRequest=102

Check warning on line 89 in web/src/components/templates/TemplateFormModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A form label must be associated with a control.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyKTeeD3ppJ6-Im&open=AZ0S1EyKTeeD3ppJ6-Im&pullRequest=102

Check warning on line 102 in web/src/components/templates/TemplateFormModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A form label must be associated with a control.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyKTeeD3ppJ6-In&open=AZ0S1EyKTeeD3ppJ6-In&pullRequest=102

Check failure on line 93 in api/src/services/templates.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "$exists" 3 times.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyyTeeD3ppJ6-Iu&open=AZ0S1EyyTeeD3ppJ6-Iu&pullRequest=102

Check warning on line 81 in web/src/components/templates/TemplateFormModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A form label must be associated with a control.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyKTeeD3ppJ6-Il&open=AZ0S1EyKTeeD3ppJ6-Il&pullRequest=102

Check warning on line 112 in web/src/components/templates/TemplateFormModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A form label must be associated with a control.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyKTeeD3ppJ6-Io&open=AZ0S1EyKTeeD3ppJ6-Io&pullRequest=102

Check warning on line 17 in web/src/components/templates/TemplateCard.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=PEI-SecureLearning_core&issues=AZ0S1EuGTeeD3ppJ6-Ij&open=AZ0S1EuGTeeD3ppJ6-Ij&pullRequest=102

Check failure on line 13 in api/src/services/templates.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "/templates/emails/" 3 times.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S1EyyTeeD3ppJ6-It&open=AZ0S1EyyTeeD3ppJ6-It&pullRequest=102