Repository navigation
feat(dashboard): decision, receipt and chain pages with an offline demo #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
19fd68b
docs: plan the demo dashboard
shreyanshjain7174 b59e252
feat(dashboard): add decisionview data layer
shreyanshjain7174 b451e49
feat(dashboard): decision, receipt and chain pages in agentctl-web
shreyanshjain7174 ddfaf6b
feat(dashboard): chart wiring, nav links, make demo-dashboard, docs
shreyanshjain7174 6ba0fa1
fix(dashboard): address review on filters, loader caching and chart n…
shreyanshjain7174 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,164 @@ | ||
| # helm-unittest spec for the web UI decision pages (docs/architecture/demo-dashboard.md). | ||
| # Run with: helm unittest charts | ||
| suite: web ui decision pages | ||
| templates: | ||
| - webui.yaml | ||
| - receipt-writer.yaml | ||
| tests: | ||
| - it: gives the web UI no writer flags when receipts are off | ||
| set: | ||
| license: | ||
| key: "test" | ||
| webUI: | ||
| enabled: true | ||
| asserts: | ||
| - notContains: | ||
| path: spec.template.spec.containers[0].args | ||
| content: "--writer-token-file=/etc/receipts/token/token" | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
| - notExists: | ||
| path: spec.template.spec.volumes | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
|
|
||
| - it: points the web UI at the writer with a pinned trust root | ||
| release: | ||
| name: rel | ||
| namespace: agentic-system | ||
| set: | ||
| license: | ||
| key: "test" | ||
| webUI: | ||
| enabled: true | ||
| global: | ||
| receipts: | ||
| enabled: true | ||
| signingKey: | ||
| existingSecret: receipt-signing-key | ||
| trustRoot: | ||
| existingConfigMap: receipt-trust-root | ||
| asserts: | ||
| - contains: | ||
| path: spec.template.spec.containers[0].args | ||
| content: "--writer-url=http://rel-receipt-writer.agentic-system.svc:8080" | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
| - contains: | ||
| path: spec.template.spec.containers[0].args | ||
| content: "--writer-token-file=/etc/receipts/token/token" | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
| - contains: | ||
| path: spec.template.spec.containers[0].args | ||
| content: "--trust-root=/etc/receipts/trust/trust.json" | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
| - contains: | ||
| path: spec.template.spec.volumes | ||
| content: | ||
| name: receipts-token | ||
| secret: | ||
| secretName: rel-receipt-writer-token | ||
| defaultMode: 0444 | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
| - contains: | ||
| path: spec.template.spec.containers[0].volumeMounts | ||
| content: | ||
| name: receipts-trust | ||
| mountPath: /etc/receipts/trust | ||
| readOnly: true | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
|
|
||
| - it: omits the trust flag when no trust root is pinned | ||
| release: | ||
| name: rel | ||
| namespace: agentic-system | ||
| set: | ||
| license: | ||
| key: "test" | ||
| webUI: | ||
| enabled: true | ||
| global: | ||
| receipts: | ||
| enabled: true | ||
| insecureNoPin: true | ||
| signingKey: | ||
| existingSecret: receipt-signing-key | ||
| asserts: | ||
| - notContains: | ||
| path: spec.template.spec.containers[0].args | ||
| content: "--trust-root=/etc/receipts/trust/trust.json" | ||
| documentIndex: 3 | ||
| template: webui.yaml | ||
|
|
||
| - it: lets the web UI reach the writer only when it is enabled | ||
| release: | ||
| name: rel | ||
| namespace: agentic-system | ||
| set: | ||
| license: | ||
| key: "test" | ||
| webUI: | ||
| enabled: true | ||
| global: | ||
| receipts: | ||
| enabled: true | ||
| signingKey: | ||
| existingSecret: receipt-signing-key | ||
| trustRoot: | ||
| existingConfigMap: receipt-trust-root | ||
| asserts: | ||
| - lengthEqual: | ||
| path: spec.ingress[0].from | ||
| count: 2 | ||
| documentIndex: 3 | ||
| template: receipt-writer.yaml | ||
| - equal: | ||
| path: spec.ingress[0].from[1].podSelector.matchLabels["app.kubernetes.io/component"] | ||
| value: webui | ||
| documentIndex: 3 | ||
| template: receipt-writer.yaml | ||
|
|
||
| - it: keeps the writer ingress to operator pods when the web UI is off | ||
| release: | ||
| name: rel | ||
| namespace: agentic-system | ||
| set: | ||
| license: | ||
| key: "test" | ||
| global: | ||
| receipts: | ||
| enabled: true | ||
| signingKey: | ||
| existingSecret: receipt-signing-key | ||
| trustRoot: | ||
| existingConfigMap: receipt-trust-root | ||
| asserts: | ||
| - lengthEqual: | ||
| path: spec.ingress[0].from | ||
| count: 1 | ||
| documentIndex: 3 | ||
| template: receipt-writer.yaml | ||
|
|
||
| - it: fails when the web namespace differs from the writer namespace | ||
| release: | ||
| name: rel | ||
| namespace: other-ns | ||
| set: | ||
| license: | ||
| key: "test" | ||
| webUI: | ||
| enabled: true | ||
| global: | ||
| namespace: agentic-system | ||
| receipts: | ||
| enabled: true | ||
| signingKey: | ||
| existingSecret: receipt-signing-key | ||
| template: webui.yaml | ||
| asserts: | ||
| - failedTemplate: | ||
| errorPattern: "needs global.namespace to match the release namespace" |
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.