@skyhook-io/radar-app 1.18.1 → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/package.json +1 -1
  2. package/src/App.tsx +23 -8
  3. package/src/api/client.deleteResource.test.tsx +111 -0
  4. package/src/api/client.resourceAudit.test.tsx +57 -0
  5. package/src/api/client.resourcePath.test.ts +107 -0
  6. package/src/api/client.ts +136 -37
  7. package/src/components/capacity/CapacityDemand.tsx +6 -3
  8. package/src/components/capacity/CapacityOverview.tsx +14 -7
  9. package/src/components/capacity/CapacityPoolDetail.tsx +7 -5
  10. package/src/components/capacity/ClusterSchedulingCard.tsx +3 -3
  11. package/src/components/capacity/shared.tsx +9 -5
  12. package/src/components/cnpg/CNPGOverview.tsx +4 -1
  13. package/src/components/cnpg/actions/useCNPGWriteGuard.tsx +1 -0
  14. package/src/components/diagnose/ApplyDialog.test.tsx +10 -0
  15. package/src/components/diagnose/ApplyDialog.tsx +8 -1
  16. package/src/components/diagnose/AssessmentCard.tsx +60 -0
  17. package/src/components/diagnose/DiagnoseSurface.tsx +5 -0
  18. package/src/components/diagnose/InvestigationEvidencePane.test.tsx +62 -2
  19. package/src/components/diagnose/InvestigationEvidenceSections.tsx +6 -5
  20. package/src/components/diagnose/InvestigationView.tsx +47 -13
  21. package/src/components/diagnose/assessmentCopy.ts +11 -0
  22. package/src/components/diagnose/investigationEvidence/adapters/changes.ts +36 -1
  23. package/src/components/diagnose/investigationEvidence/adapters/crossplane.test.tsx +85 -0
  24. package/src/components/diagnose/investigationEvidence/adapters/issues.ts +1 -0
  25. package/src/components/diagnose/investigationEvidence/adapters/prometheus.test.ts +2 -1
  26. package/src/components/diagnose/investigationEvidence/adapters/prometheus.ts +2 -1
  27. package/src/components/diagnose/investigationEvidence/adapters/testdata/crossplane-paused-get-resource.json +28 -0
  28. package/src/components/diagnose/investigationEvidence/bodies/index.tsx +2 -0
  29. package/src/components/diagnose/investigationEvidence/bodies/workload.tsx +5 -1
  30. package/src/components/diagnose/investigationEvidence/builder.ts +3 -1
  31. package/src/components/diagnose/investigationEvidence/cardParts.tsx +7 -2
  32. package/src/components/diagnose/investigationEvidence/identity.test.ts +1 -1
  33. package/src/components/diagnose/investigationEvidence/observations.ts +7 -3
  34. package/src/components/diagnose/investigationEvidence/projection.test.ts +57 -3
  35. package/src/components/diagnose/investigationEvidencePresentation.test.ts +36 -2
  36. package/src/components/diagnose/investigationEvidencePresentation.ts +33 -8
  37. package/src/components/diagnose/storyParts.test.tsx +53 -0
  38. package/src/components/helm/ChartBrowser.tsx +4 -4
  39. package/src/components/helm/HelmReleaseDrawer.tsx +6 -2
  40. package/src/components/helm/HelmView.tsx +34 -23
  41. package/src/components/helm/InstallWizard.tsx +6 -2
  42. package/src/components/helm/ValuesViewer.test.tsx +1 -0
  43. package/src/components/helm/ValuesViewer.tsx +4 -2
  44. package/src/components/home/ClusterHealthCard.tsx +28 -21
  45. package/src/components/home/MCPSetupDialog.test.tsx +27 -2
  46. package/src/components/home/MCPSetupDialog.tsx +14 -2
  47. package/src/components/home/mcpToolCatalog.ts +29 -2
  48. package/src/components/issues/IssuesPane.render.test.tsx +5 -5
  49. package/src/components/nav/PrimaryNavRail.tsx +34 -2
  50. package/src/components/product-hunt/ProductHuntNotice.render.test.tsx +120 -0
  51. package/src/components/product-hunt/ProductHuntNotice.test.ts +121 -0
  52. package/src/components/product-hunt/ProductHuntNotice.tsx +202 -0
  53. package/src/components/product-hunt/launchWindow.ts +78 -0
  54. package/src/components/product-hunt/useProductHuntRailEntry.test.tsx +76 -0
  55. package/src/components/product-hunt/useProductHuntRailEntry.ts +27 -0
  56. package/src/components/resources/CompositeRenderer.tsx +4 -0
  57. package/src/components/resources/ResourcesView.tsx +1 -1
  58. package/src/components/settings/LocalConnectionSettings.tsx +1 -0
  59. package/src/components/ui/RadarOmnibar.test.tsx +18 -0
  60. package/src/components/ui/RadarOmnibar.tsx +1 -0
  61. package/src/components/ui/SearchSyntaxHelp.test.tsx +39 -0
  62. package/src/components/ui/SearchSyntaxHelp.tsx +23 -2
  63. package/src/components/ui/UpdateNotification.test.tsx +2 -0
  64. package/src/components/ui/UpdateNotification.tsx +32 -5
  65. package/src/components/usage-data/UsageDataPrompt.tsx +19 -1
  66. package/src/components/workload/WorkloadView.tsx +10 -4
  67. package/src/components/workspace/layout.tsx +2 -1
  68. package/src/contexts/CapabilitiesContext.tsx +1 -0
  69. package/src/hooks/useGitOpsWriteGuard.test.tsx +126 -2
  70. package/src/hooks/useGitOpsWriteGuard.ts +25 -3
  71. package/src/hooks/useResolvedGitOpsOwner.ts +14 -9
  72. package/src/index.css +85 -0
package/src/index.css CHANGED
@@ -419,6 +419,91 @@ body {
419
419
  }
420
420
  }
421
421
 
422
+ /* Product Hunt launch card: a green light travels around the border and spills
423
+ a soft glow outward, brightening and fading on a cycle longer than the lap so
424
+ the brightest point lands somewhere new each time; the rocket drifts gently
425
+ while the card is open. --launch-angle is registered so the conic gradient
426
+ itself rotates; browsers without @property show the light standing still. */
427
+ @property --launch-angle {
428
+ syntax: "<angle>";
429
+ initial-value: 0deg;
430
+ inherits: false;
431
+ }
432
+ @keyframes launch-border-spin {
433
+ to {
434
+ --launch-angle: 360deg;
435
+ }
436
+ }
437
+ @keyframes launch-border-fade {
438
+ 0%,
439
+ 100% {
440
+ opacity: 0.15;
441
+ }
442
+ 50% {
443
+ opacity: 1;
444
+ }
445
+ }
446
+ .launch-border {
447
+ /* A deeper green on light surfaces, where the paler one washes out. */
448
+ --launch-glow: 5, 150, 105;
449
+ }
450
+ .dark .launch-border {
451
+ --launch-glow: 52, 211, 153;
452
+ }
453
+ .launch-border::before,
454
+ .launch-border::after {
455
+ content: "";
456
+ position: absolute;
457
+ pointer-events: none;
458
+ border-radius: inherit;
459
+ background: conic-gradient(
460
+ from var(--launch-angle),
461
+ transparent 0deg,
462
+ rgba(var(--launch-glow), 0) 30deg,
463
+ rgba(var(--launch-glow), 0.95) 80deg,
464
+ rgba(var(--launch-glow), 0) 130deg,
465
+ transparent 360deg
466
+ );
467
+ animation:
468
+ launch-border-spin 5s linear infinite,
469
+ launch-border-fade 6.85s ease-in-out infinite;
470
+ }
471
+ /* The ring: the gradient masked down to a 1.5px border on top of the card. */
472
+ .launch-border::before {
473
+ inset: -1px;
474
+ padding: 1.5px;
475
+ z-index: 1;
476
+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
477
+ -webkit-mask-composite: xor;
478
+ mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
479
+ mask-composite: exclude;
480
+ }
481
+ /* The glow: the same gradient blurred behind the card, so light spills outward. */
482
+ .launch-border::after {
483
+ inset: -4px;
484
+ z-index: -1;
485
+ filter: blur(12px);
486
+ }
487
+ @keyframes launch-rocket {
488
+ 0%,
489
+ 100% {
490
+ transform: translate(0, 0) rotate(0deg);
491
+ }
492
+ 50% {
493
+ transform: translate(1.5px, -2.5px) rotate(-6deg);
494
+ }
495
+ }
496
+ .animate-launch-rocket {
497
+ animation: launch-rocket 3s ease-in-out infinite;
498
+ }
499
+ @media (prefers-reduced-motion: reduce) {
500
+ .launch-border::before,
501
+ .launch-border::after,
502
+ .animate-launch-rocket {
503
+ animation: none;
504
+ }
505
+ }
506
+
422
507
  /* Gentle colorize when syntax-highlighted code swaps in over plain text — opacity
423
508
  only (no transform → no layout shift) and floored at 0.5 so it never blanks. */
424
509
  @keyframes code-colorize {