@skyhook-io/radar-app 1.21.7 → 1.22.0

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 (52) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/src/App.tsx +26 -3
  4. package/src/api/client.ts +16 -3
  5. package/src/api/radarFeatures.ts +4 -0
  6. package/src/api/traefik.ts +33 -0
  7. package/src/api/traffic.ts +1 -0
  8. package/src/components/CloudFunnelButton.test.tsx +39 -1
  9. package/src/components/CloudFunnelButton.tsx +10 -3
  10. package/src/components/NamespaceSwitcher.tsx +6 -2
  11. package/src/components/applications/ApplicationsView.identity.test.ts +35 -7
  12. package/src/components/applications/ApplicationsView.tsx +71 -142
  13. package/src/components/cnpg/CNPGOperatorConditions.test.tsx +3 -0
  14. package/src/components/cnpg/CNPGOperatorConditions.tsx +4 -14
  15. package/src/components/cnpg/CNPGOverview.test.tsx +75 -3
  16. package/src/components/cnpg/CNPGOverview.tsx +62 -4
  17. package/src/components/home/HomeView.tsx +9 -1
  18. package/src/components/home/NetworkPolicyCoverageCard.test.tsx +37 -0
  19. package/src/components/home/NetworkPolicyCoverageCard.tsx +26 -2
  20. package/src/components/home/ProblemsPanel.investigate.test.tsx +12 -2
  21. package/src/components/issues/IssuesPane.render.test.tsx +78 -2
  22. package/src/components/issues/IssuesPane.tsx +38 -6
  23. package/src/components/resources/renderers/TraefikIngressRouteRenderer.test.tsx +23 -0
  24. package/src/components/resources/renderers/TraefikIngressRouteRenderer.tsx +23 -0
  25. package/src/components/resources/renderers/TraefikMiddlewareRenderer.test.tsx +23 -0
  26. package/src/components/resources/renderers/TraefikMiddlewareRenderer.tsx +29 -0
  27. package/src/components/settings/FormSaveActions.tsx +6 -2
  28. package/src/components/settings/MetricsBackendSwitch.tsx +13 -15
  29. package/src/components/settings/OpenObserveSetup.test.tsx +68 -27
  30. package/src/components/settings/OpenObserveSetup.tsx +93 -123
  31. package/src/components/traffic/TrafficConnectionsTable.test.tsx +23 -0
  32. package/src/components/traffic/TrafficConnectionsTable.tsx +5 -4
  33. package/src/components/traffic/TrafficFilterSidebar.test.tsx +14 -0
  34. package/src/components/traffic/TrafficFilterSidebar.tsx +17 -0
  35. package/src/components/traffic/TrafficFlowList.tsx +5 -5
  36. package/src/components/traffic/TrafficGraph.test.tsx +11 -0
  37. package/src/components/traffic/TrafficGraph.tsx +31 -19
  38. package/src/components/traffic/TrafficView.tsx +17 -6
  39. package/src/components/traffic/traffic-export.test.ts +8 -0
  40. package/src/components/traffic/traffic-export.ts +7 -4
  41. package/src/components/traffic/trafficFilters.test.ts +51 -1
  42. package/src/components/traffic/trafficFilters.ts +39 -11
  43. package/src/components/ui/command-items-crd.test.tsx +23 -8
  44. package/src/components/whats-new/releaseNotes.ts +75 -1
  45. package/src/components/workload/WorkloadView.tsx +8 -6
  46. package/src/components/workspace/WorkspaceConditions.tsx +56 -0
  47. package/src/components/workspace/layout.test.tsx +20 -0
  48. package/src/components/workspace/layout.tsx +1 -1
  49. package/src/contexts/CapabilitiesContext.tsx +2 -0
  50. package/src/integrations/resourceHosts.test.tsx +1 -1
  51. package/src/integrations/resourceHosts.tsx +3 -0
  52. package/src/utils/page-links.ts +15 -1
@@ -4,20 +4,35 @@ import { createRoot } from 'react-dom/client'
4
4
  import { expect, it, vi } from 'vitest'
5
5
  import { bestScore, useCommandItems } from './command-items'
6
6
  vi.mock('../../api/client', () => ({ useNamespaces: () => ({ data: [] }), useContexts: () => ({ data: [] }) }))
7
- vi.mock('../../api/apiResources', () => ({ CORE_RESOURCES: [], useAPIResources: () => ({ data: [{ group: 'apiextensions.k8s.io', kind: 'CustomResourceDefinition', name: 'customresourcedefinitions', verbs: ['list'] }, { group: '', kind: 'Pod', name: 'pods', verbs: ['list'] }] }) }))
7
+ vi.mock('../../api/apiResources', () => ({
8
+ CORE_RESOURCES: [],
9
+ useAPIResources: () => ({
10
+ data: [
11
+ { group: 'apiextensions.k8s.io', kind: 'CustomResourceDefinition', name: 'customresourcedefinitions', verbs: ['list'] },
12
+ { group: '', kind: 'Pod', name: 'pods', verbs: ['list'] },
13
+ { group: 'policy', kind: 'PodDisruptionBudget', name: 'poddisruptionbudgets', verbs: ['list'], shortNames: ['pdb'] },
14
+ ],
15
+ }),
16
+ }))
8
17
  ;(globalThis as any).IS_REACT_ACT_ENVIRONMENT = true
9
- it('uses the shared CRD aliases in command items', () => {
10
- let scores: number[] = []
18
+ it('uses the shared CRD aliases and discovered short names in command items', () => {
19
+ let crdScores: number[] = []
20
+ let pdbScores: number[] = []
11
21
  function Probe() {
12
22
  const cb = { onNavigateView: vi.fn(), onNavigateKind: vi.fn(), onSwitchContext: vi.fn(), onSetNamespaces: vi.fn(), onToggleTheme: vi.fn() }
13
- const items = useCommandItems(cb)
14
- scores = items.filter(i => i.category === 'Resource Kinds').map(i => bestScore(i, 'crd'))
23
+ const items = useCommandItems(cb).filter(i => i.category === 'Resource Kinds')
24
+ crdScores = items.map(i => bestScore(i, 'crd'))
25
+ pdbScores = items.map(i => bestScore(i, 'pdb'))
15
26
  return null
16
27
  }
17
28
  const host = document.createElement('div'); const root = createRoot(host)
18
29
  act(() => root.render(<Probe />))
19
- expect(scores).toHaveLength(2)
20
- expect(scores[0]).toBeGreaterThan(0)
21
- expect(scores[1]).toBe(0)
30
+ expect(crdScores).toHaveLength(3)
31
+ expect(crdScores[0]).toBeGreaterThan(0)
32
+ expect(crdScores[1]).toBe(0)
33
+ expect(crdScores[2]).toBe(0)
34
+ expect(pdbScores[0]).toBe(0)
35
+ expect(pdbScores[1]).toBe(0)
36
+ expect(pdbScores[2]).toBeGreaterThanOrEqual(100)
22
37
  act(() => root.unmount())
23
38
  })
@@ -1,5 +1,5 @@
1
1
  import type { LucideIcon } from 'lucide-react'
2
- import { Activity, BellOff, Bot, Boxes, Braces, Database, GitBranch, GitCompareArrows, HardDrive, Hourglass, Layers, MessageCircleQuestionMark, Network, RefreshCcw, Scale, ScanSearch, ScrollText, Search, ShieldAlert, SlidersHorizontal, Undo2, Zap } from 'lucide-react'
2
+ import { Activity, BellOff, Bot, Boxes, Braces, Bug, ChartLine, Database, Download, GitBranch, GitCompareArrows, HardDrive, History, Hourglass, Layers, MessageCircleQuestionMark, Network, RefreshCcw, Scale, ScanSearch, ScrollText, Search, ShieldAlert, SlidersHorizontal, Undo2, Zap } from 'lucide-react'
3
3
  import { compareVersions } from '../../utils/version'
4
4
 
5
5
  export interface ReleaseHighlight {
@@ -48,6 +48,80 @@ export const CHANGELOG_URL = 'https://radarhq.io/changelog'
48
48
  // major release must have its own entry: scripts/check-whats-new.sh refuses to
49
49
  // release one without it.
50
50
  export const RELEASE_NOTES: ReleaseNotes[] = [
51
+ {
52
+ version: 'v1.22.0',
53
+ highlights: [
54
+ {
55
+ id: 'app-deploys-timeline',
56
+ icon: History,
57
+ title: 'Detailed deployment and rollout history for applications and workloads',
58
+ description: 'Applications get a Deploys tab (Helm, Flux and Argo CD, with Argo sync diffs) and a richer Timeline; workloads get a Revisions tab to diff specs.',
59
+ leadDescription: "The Timeline tab in Applications now puts deploys, config changes and problems in one view. A new Deploys tab tracks Helm releases, Flux history and Argo CD syncs (with inline rendered diffs when the Argo CD API is connected), and a new Revisions tab on workloads lets you diff pod templates even when the image tag didn't change.",
60
+ importance: 7,
61
+ path: '/applications',
62
+ cta: 'Open Applications',
63
+ },
64
+ {
65
+ id: 'new-integration-views',
66
+ icon: Boxes,
67
+ title: 'New integrations: MetalLB, Longhorn and k3s',
68
+ description: 'MetalLB pools, peers and config Issues; Longhorn Volumes with live replicas, PV links and Issues; and k3s/RKE2 HelmChart badges and drawers.',
69
+ importance: 7,
70
+ },
71
+ {
72
+ id: 'issues-recent-changes',
73
+ icon: GitCompareArrows,
74
+ title: 'See what changed before an issue started',
75
+ description: 'Issue rows and expanded details show recent changes before failure, and related issues group into one panel per application.',
76
+ importance: 7,
77
+ path: '/issues',
78
+ cta: 'Open Issues',
79
+ },
80
+ {
81
+ id: 'vulnerabilities-exposure-csv',
82
+ icon: ShieldAlert,
83
+ title: 'Prioritize exposed CVEs and export CSV',
84
+ description: 'Sort CVEs by severity then external exposure, filter exposed workloads in UI or MCP, export full CSVs, and scan private Amazon ECR for Java4Shell.',
85
+ importance: 7,
86
+ path: '/checks/vulnerabilities',
87
+ cta: 'Open Vulnerabilities',
88
+ },
89
+ {
90
+ id: 'export-graphs',
91
+ icon: Download,
92
+ title: 'Export graphs to SVG and draw.io',
93
+ description: 'Export Topology and Live Traffic as editable draw.io diagrams with K8s icons and namespace containers, vector SVG, or theme-matched images.',
94
+ importance: 6,
95
+ path: '/topology',
96
+ cta: 'Open Topology',
97
+ },
98
+ {
99
+ id: 'better-pod-log-secret-debugging',
100
+ icon: Bug,
101
+ title: 'Better Pod, log and Secret debugging',
102
+ description: 'Start and reopen custom-image debug containers right from Pod details, stream ReplicaSet logs, copy Secret values unrevealed, and read any cert key.',
103
+ importance: 6,
104
+ },
105
+ {
106
+ id: 'more-metrics-sources',
107
+ icon: ChartLine,
108
+ title: 'OpenObserve, GKE and shared metrics stores',
109
+ description: 'Connect local Radar to shared OpenObserve, chart GKE system metrics via Managed Prometheus, and keep shared multi-cluster stores scoped cleanly.',
110
+ importance: 6,
111
+ },
112
+ ],
113
+ improvements: [
114
+ // The grid fills row by row: pair lines of similar length.
115
+ 'Match kubectl short names in the kind filter and Cmd-K, and see other-namespace counts on empty lists',
116
+ 'GitOps actions check missing permissions upfront and explain RBAC or admission refusals',
117
+ 'Flux flags sources ahead of what is applied, builds Activity from history, and follows ArtifactGenerators and dependsOn',
118
+ 'Traefik IngressRoute drawers show each rule path to ready backends, cert expiry and Middleware usage',
119
+ 'Stop or terminate Argo Workflows and submit WorkflowTemplates right from Radar',
120
+ 'Remote MCP clients can sign in with OAuth on standalone OIDC installs (--mcp-oauth / mcp.oauth.enabled)',
121
+ 'Beyla Live Traffic infers ports from Services and lets you hide node-to-node overlay UDP',
122
+ 'CloudNativePG Clusters gain a fleet backup/HA posture bar with one-click filters',
123
+ ],
124
+ },
51
125
  {
52
126
  version: 'v1.21.0',
53
127
  highlights: [
@@ -30,6 +30,8 @@ import {
30
30
  canPauseDeployment,
31
31
  canSubmitWorkflowTemplate,
32
32
  type WorkflowTemplateSubmission,
33
+ canSuspendCronJob,
34
+ canTriggerCronJob,
33
35
  isCoreBatchJob,
34
36
  type SetImageOwnership,
35
37
  SET_IMAGE_WRITES,
@@ -392,6 +394,9 @@ function useActionsBarProps(
392
394
  const { support: deploymentPauseSupport } = useRadarFeature('deploymentPause')
393
395
  const canPauseDeployments = !workloadWritesPending &&
394
396
  canPauseDeployment({ name: kind, group }, workloadWrites, deploymentPauseSupport === 'supported')
397
+ const cronJobPermissionsReady = kind === 'cronjobs' && group === 'batch' && !workloadWritesPending
398
+ const allowCronJobTrigger = cronJobPermissionsReady && canTriggerCronJob(workloadWrites)
399
+ const allowCronJobSuspend = cronJobPermissionsReady && canSuspendCronJob(workloadWrites)
395
400
  const loadImages = useCallback(
396
401
  (params: { kind: string; namespace: string; name: string }) =>
397
402
  queryClient.fetchQuery({
@@ -525,15 +530,12 @@ function useActionsBarProps(
525
530
  rolloutDialogPromote.mutateAsync({ action: 'promote-full', ...params })
526
531
  : undefined,
527
532
  // mutateAsync, not mutate: the Job name dialog stays open when this rejects.
528
- onTriggerCronJob: (params: Parameters<typeof triggerCronJobMutation.mutate>[0]) =>
529
- triggerCronJobMutation.mutateAsync(params),
533
+ onTriggerCronJob: allowCronJobTrigger ? triggerCronJobMutation.mutateAsync : undefined,
530
534
  isTriggeringCronJob: triggerCronJobMutation.isPending,
531
535
  cronJobTriggerDialog: cronJobJobNameSupport === 'supported',
532
- onSuspendCronJob: (params: Parameters<typeof suspendCronJobMutation.mutate>[0]) =>
533
- suspendCronJobMutation.mutate(params),
536
+ onSuspendCronJob: allowCronJobSuspend ? suspendCronJobMutation.mutate : undefined,
534
537
  isSuspendingCronJob: suspendCronJobMutation.isPending,
535
- onResumeCronJob: (params: Parameters<typeof resumeCronJobMutation.mutate>[0]) =>
536
- resumeCronJobMutation.mutate(params),
538
+ onResumeCronJob: allowCronJobSuspend ? resumeCronJobMutation.mutate : undefined,
537
539
  isResumingCronJob: resumeCronJobMutation.isPending,
538
540
  // mutateAsync, not mutate: the submit dialog stays open when this rejects.
539
541
  onSubmitWorkflowTemplate: canSubmitTemplates
@@ -0,0 +1,56 @@
1
+ import { Badge, FactGrid, FactRow, FoldSection, Tooltip, formatAge, WorkspaceCard } from '@skyhook-io/k8s-ui'
2
+
3
+ export function WorkspaceConditions({
4
+ conditions,
5
+ title = 'Conditions',
6
+ className,
7
+ sourcePath = 'status.conditions',
8
+ emptyMessage = `No ${sourcePath} reported.`,
9
+ framed = true,
10
+ }: {
11
+ title?: string
12
+ className?: string
13
+ framed?: boolean
14
+ sourcePath?: string
15
+ emptyMessage?: string
16
+ conditions: { type: string; status: string; reason?: string; message?: string; lastTransitionTime?: string }[]
17
+ }) {
18
+ const content = (
19
+ <FoldSection
20
+ title={title}
21
+ summary={conditions.length > 0 ? `${conditions.length} reported · ${sourcePath}` : 'No conditions reported'}
22
+ attention={false}
23
+ >
24
+ <FactGrid>
25
+ {conditions.map((c) => (
26
+ <FactRow
27
+ key={c.type}
28
+ label={
29
+ <span className="inline-flex flex-wrap items-center gap-2">
30
+ {c.type}
31
+ <Badge severity="neutral" size="sm">
32
+ {c.status}
33
+ </Badge>
34
+ </span>
35
+ }
36
+ >
37
+ <div className="text-xs text-theme-text-secondary">Reason: {c.reason || 'Not reported'}</div>
38
+ <div className="break-words text-xs text-theme-text-secondary">{c.message || 'No message reported'}</div>
39
+ <div className="text-xs text-theme-text-tertiary">
40
+ Last transition:{' '}
41
+ {c.lastTransitionTime ? (
42
+ <Tooltip content={c.lastTransitionTime}>
43
+ <time dateTime={c.lastTransitionTime}>{formatAge(c.lastTransitionTime)} ago</time>
44
+ </Tooltip>
45
+ ) : (
46
+ 'Not reported'
47
+ )}
48
+ </div>
49
+ </FactRow>
50
+ ))}
51
+ </FactGrid>
52
+ {conditions.length === 0 && <p className="text-sm text-theme-text-tertiary">{emptyMessage}</p>}
53
+ </FoldSection>
54
+ )
55
+ return <WorkspaceCard framed={framed} className={className}>{content}</WorkspaceCard>
56
+ }
@@ -3,6 +3,7 @@ import { act } from 'react'
3
3
  import { createRoot } from 'react-dom/client'
4
4
  import { expect, it, vi } from 'vitest'
5
5
  import { Mono, SectionTable } from './layout'
6
+ import { ROW_HOVER } from './table'
6
7
 
7
8
  ;(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true
8
9
 
@@ -55,3 +56,22 @@ it('opens a row from the keyboard the way a click does, and leaves keys on contr
55
56
  act(() => root.unmount())
56
57
  host.remove()
57
58
  })
59
+
60
+ it('applies the row hover style only to rows that open a resource', () => {
61
+ const host = document.createElement('div')
62
+ const root = createRoot(host)
63
+ act(() => root.render(
64
+ <SectionTable
65
+ columns={[{ header: 'Name', cell: (name) => name }]}
66
+ rows={['inspectable', 'static']}
67
+ rowKey={(name) => name}
68
+ rowResource={(name) => name === 'inspectable' ? { kind: 'Pod', namespace: 'default', name } : null}
69
+ onInspect={vi.fn()}
70
+ empty="none"
71
+ />,
72
+ ))
73
+ const [inspectable, staticRow] = host.querySelectorAll('tbody tr')
74
+ expect(inspectable.className).toContain(ROW_HOVER)
75
+ expect(staticRow.className).not.toContain(ROW_HOVER)
76
+ act(() => root.unmount())
77
+ })
@@ -182,7 +182,7 @@ export function SectionTable<T>({
182
182
  e.preventDefault()
183
183
  open()
184
184
  } : undefined}
185
- className={clsx(open && 'cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent', ROW_HOVER, active && 'selection')}
185
+ className={clsx(open && ['cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent', ROW_HOVER], active && 'selection')}
186
186
  aria-selected={res ? active : undefined}
187
187
  >
188
188
  {columns.map((c, i) => (
@@ -41,6 +41,8 @@ const restrictedCapabilities: Capabilities = {
41
41
  daemonSets: false,
42
42
  statefulSets: false,
43
43
  rollouts: false,
44
+ cronJobs: false,
45
+ createJobs: false,
44
46
  },
45
47
  mcpEnabled: false,
46
48
  mcpExecTools: false,
@@ -55,7 +55,7 @@ describe('application resource hosts', () => {
55
55
  'RolloutRenderer', 'KyvernoPolicyCoverage', 'KyvernoPolicyQueued', 'CNPGObjectStoreRenderer',
56
56
  'VeleroBSLRenderer', 'VeleroBackupRenderer', 'VeleroRestoreRenderer', 'CNPGClusterRenderer',
57
57
  'CNPGDatabaseRenderer', 'CNPGPublicationRenderer', 'CNPGSubscriptionRenderer', 'CNPGImageCatalogRenderer',
58
- 'FluxHelmReleaseRenderer', 'OpenTelemetryCollectorRenderer', 'ValidatingAdmissionPolicyRenderer', 'ValidatingAdmissionPolicyBindingRenderer', 'MutatingAdmissionPolicyRenderer', 'MutatingAdmissionPolicyBindingRenderer', 'SecretProviderClassRenderer', 'UpgradePlanRenderer', 'SealedSecretRenderer', 'K3sHelmChartRenderer',
58
+ 'FluxHelmReleaseRenderer', 'OpenTelemetryCollectorRenderer', 'ValidatingAdmissionPolicyRenderer', 'ValidatingAdmissionPolicyBindingRenderer', 'MutatingAdmissionPolicyRenderer', 'MutatingAdmissionPolicyBindingRenderer', 'SecretProviderClassRenderer', 'UpgradePlanRenderer', 'SealedSecretRenderer', 'K3sHelmChartRenderer', 'TraefikIngressRouteRenderer', 'TraefikMiddlewareRenderer',
59
59
  ].sort())
60
60
  const inherited = [{ id: 'local', label: 'Local', render: () => null }]
61
61
  expect(resourceDetailSlots({ kind: 'Pod', group: '', namespace: 'db', name: 'pg-1' }, inherited).extraTabs).toEqual(inherited)
@@ -41,6 +41,8 @@ import { LonghornVolumeRenderer } from '../components/resources/renderers/Longho
41
41
  import { FluxHelmReleaseRenderer } from '../components/resources/renderers/FluxHelmReleaseRenderer'
42
42
  import { SecretProviderClassRenderer } from '../components/resources/renderers/SecretProviderClassRenderer'
43
43
  import { SealedSecretRenderer } from '../components/resources/renderers/SealedSecretRenderer'
44
+ import { TraefikIngressRouteRenderer } from '../components/resources/renderers/TraefikIngressRouteRenderer'
45
+ import { TraefikMiddlewareRenderer } from '../components/resources/renderers/TraefikMiddlewareRenderer'
44
46
  import { K3sHelmChartRenderer } from '../components/resources/renderers/K3sHelmChartRenderer'
45
47
  import { UpgradePlanRenderer } from '../components/resources/renderers/UpgradePlanRenderer'
46
48
  import {
@@ -55,6 +57,7 @@ export const resourceHosts: readonly ResourceHost[] = [
55
57
  { id: 'gateway-api', renderers: { HTTPRouteRenderer } },
56
58
  { id: 'rbac', renderers: { ServiceAccountRenderer, RoleRenderer, RoleBindingRenderer, NamespaceRenderer } },
57
59
  { id: 'sealed-secrets', renderers: { SealedSecretRenderer } },
60
+ { id: 'traefik', renderers: { TraefikIngressRouteRenderer, TraefikMiddlewareRenderer } },
58
61
  { id: 'k3s-helm', renderers: { K3sHelmChartRenderer } },
59
62
  { id: 'system-upgrade', renderers: { UpgradePlanRenderer } },
60
63
  { id: 'batch-and-admission', renderers: { JobRenderer, JobSetRenderer, KueueWorkloadRenderer } },
@@ -1,3 +1,5 @@
1
+ import { useLocation, useNavigate } from 'react-router-dom'
2
+
1
3
  /**
2
4
  * The label for "← back" on the page a push lands on: the title of the page
3
5
  * being left, which Radar keeps in the document title.
@@ -7,7 +9,7 @@ export function currentPageLabel(): string {
7
9
  }
8
10
 
9
11
  /**
10
- * Radar's Issues page narrowed to one subject (it has no link to a single issue).
12
+ * Radar's Issues page narrowed to all issues for one subject.
11
13
  * The subject travels as `resource=ns/name`, never `namespace=`: App reads a bare
12
14
  * `namespace` as the view filter, and a URL without `namespaces` clears it.
13
15
  */
@@ -20,6 +22,18 @@ export function issuesPathForSubject(subject: { kind: string; group?: string; na
20
22
  return `/issues?${params}`
21
23
  }
22
24
 
25
+ // A manual selection replaces the deep link so Back still returns to its origin.
26
+ export function useClearLinkedIssue() {
27
+ const location = useLocation()
28
+ const navigate = useNavigate()
29
+ return () => {
30
+ const params = new URLSearchParams(location.search)
31
+ if (!params.has('issue')) return
32
+ params.delete('issue')
33
+ navigate({ pathname: location.pathname, search: params.toString(), hash: location.hash }, { replace: true, state: location.state })
34
+ }
35
+ }
36
+
23
37
  export const RIGHTSIZING_SCAN_PATH = '/cost/rightsizing'
24
38
 
25
39
  export function isRightsizingScanPath(pathname: string): boolean {