Skip to content

feat(tui): tirith ui — explore results, build policies, experiment in a playground - #280

Open
AkashS0510 wants to merge 9 commits into
mainfrom
feat/tui
Open

feat(tui): tirith ui — explore results, build policies, experiment in a playground#280
AkashS0510 wants to merge 9 commits into
mainfrom
feat/tui

fix(tui): address the seven review findings on #280

d6cedc2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis cancelled Aug 14, 2026 in 37s

SonarQube Cloud analysis failed

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

Annotations

Check failure on line 92 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "text-style"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qC_&open=AZ__bZ_ItUwP2ked6qC_&pullRequest=280

Check warning on line 17 in .github/workflows/coverage.yml

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Omitting "--only-binary :all:" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__baCptUwP2ked6qDl&open=AZ__baCptUwP2ked6qDl&pullRequest=280

Check failure on line 109 in src/tirith/tui/validate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ-ctUwP2ked6qCt&open=AZ__bZ-ctUwP2ked6qCt&pullRequest=280

Check failure on line 82 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "text-style"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qC9&open=AZ__bZ_ItUwP2ked6qC9&pullRequest=280

Check failure on line 135 in src/tirith/tui/views/playground.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "#example-detail" 3 times.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ-ptUwP2ked6qCx&open=AZ__bZ-ptUwP2ked6qCx&pullRequest=280

Check failure on line 134 in src/tirith/tui/views/playground.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "#input-editor" 6 times.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ-ptUwP2ked6qCy&open=AZ__bZ-ptUwP2ked6qCy&pullRequest=280

Check failure on line 399 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "text-style"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDH&open=AZ__bZ_ItUwP2ked6qDH&pullRequest=280

Check failure on line 87 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "text-style"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qC-&open=AZ__bZ_ItUwP2ked6qC-&pullRequest=280

Check failure on line 88 in src/tirith/tui/app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "#playground-view" 3 times.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_mtUwP2ked6qDU&open=AZ__bZ_mtUwP2ked6qDU&pullRequest=280

Check failure on line 133 in src/tirith/tui/views/playground.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "#policy-editor" 6 times.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ-ptUwP2ked6qC0&open=AZ__bZ-ptUwP2ked6qC0&pullRequest=280

Check failure on line 61 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown type selector "Tabs"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDP&open=AZ__bZ_ItUwP2ked6qDP&pullRequest=280

Check failure on line 211 in src/tirith/tui/results.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_dtUwP2ked6qDT&open=AZ__bZ_dtUwP2ked6qDT&pullRequest=280

Check failure on line 77 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "text-style"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qC8&open=AZ__bZ_ItUwP2ked6qC8&pullRequest=280

Check failure on line 334 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "text-style"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDE&open=AZ__bZ_ItUwP2ked6qDE&pullRequest=280

Check warning on line 21 in .github/workflows/coverage.yml

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Omitting "--only-binary :all:" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__baCptUwP2ked6qDn&open=AZ__baCptUwP2ked6qDn&pullRequest=280

Check failure on line 151 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "text-style"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDA&open=AZ__bZ_ItUwP2ked6qDA&pullRequest=280

Check failure on line 384 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown type selector "FilePicker"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDR&open=AZ__bZ_ItUwP2ked6qDR&pullRequest=280

Check failure on line 109 in src/tirith/tui/views/filepicker.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "#file-picker-tree" 3 times.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ-0tUwP2ked6qC1&open=AZ__bZ-0tUwP2ked6qC1&pullRequest=280

Check failure on line 46 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "dock"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qC6&open=AZ__bZ_ItUwP2ked6qC6&pullRequest=280

Check warning on line 1080 in tests/tui/test_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__baBmtUwP2ked6qDe&open=AZ__baBmtUwP2ked6qDe&pullRequest=280

Check failure on line 385 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "align"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDG&open=AZ__bZ_ItUwP2ked6qDG&pullRequest=280

Check failure on line 89 in src/tirith/tui/schema.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "stackguardian/terraform_plan" 3 times.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_StUwP2ked6qDS&open=AZ__bZ_StUwP2ked6qDS&pullRequest=280

Check warning on line 125 in tests/tui/test_validate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__baBZtUwP2ked6qDZ&open=AZ__baBZtUwP2ked6qDZ&pullRequest=280

Check failure on line 453 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "scrollbar-color-hover"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDM&open=AZ__bZ_ItUwP2ked6qDM&pullRequest=280

Check failure on line 450 in src/tirith/tui/app.css

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unknown property "scrollbar-size-vertical"

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ__bZ_ItUwP2ked6qDK&open=AZ__bZ_ItUwP2ked6qDK&pullRequest=280