Repository navigation
Commit db08317
authored
Clarify private investigations and simplify sharing confirmation (#1650)
## Summary
Make investigation privacy visible even when sharing controls are
unavailable, and keep the sharing confirmation focused on its actual
audience and capabilities rather than a redundant generic warning.
## Changes
- Private hosted investigations without sharing controls retain a
Private badge. Its tooltip says: “Only you can view this investigation.
Other organization members don’t have access.” It does not guess why
sharing is unavailable.
- The sharing confirmation retains the disclosure that organization
members can read the entire investigation and continue or stop it, along
with its confirm/cancel actions.
- Add an optional `showWarning` prop to the shared ConfirmDialog,
defaulting to true. Only the investigation-sharing dialog opts out;
existing warning and destructive-dialog defaults remain unchanged.
## OSS vs hosted
These investigation affordances apply to hosted runs with visibility
metadata, including SaaS and self-hosted Hub. Standalone OSS gains no
sharing controls or permissions. Existing callers of the shared dialog
retain their current behavior.
## Testing
- Frontend typecheck and full `make build` (frontend, embed, Go binary).
- 24 targeted tests: DiagnoseSurface plus three dialog-rendering tests
covering disclosure/action preservation, opt-out, and unchanged
warning/destructive defaults.
- Visual-test: skipped for this small copy/affordance change; no new
screenshots or live E2E claims.
## Release notes
Companion settings-copy PR:
skyhook-dev/radar-hub-web#283 (independent; no
runtime dependency).
Before publishing `radar-app`, publish the `k8s-ui` version containing
`showWarning`, then raise radar-app's `@skyhook-io/k8s-ui` peer minimum
(and matching lock metadata) to that actual release. Merely updating
Cloud's installed package is not sufficient: the package contract must
exclude incompatible older peers. Adopt the matching packages in Cloud.
The version is intentionally not guessed before the release is selected.
No backend API, authorization, retention, or investigation-execution
changes. Package publication and deployment are not part of this PR.1 parent 102bb47 commit db08317
3 files changed
Lines changed: 48 additions & 1 deletion
File tree
- packages/k8s-ui/src/components/ui
- web/src/components/diagnose
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| |||
277 | 284 | | |
278 | 285 | | |
279 | 286 | | |
| 287 | + | |
280 | 288 | | |
281 | 289 | | |
282 | 290 | | |
| |||
0 commit comments