diff --git a/web/dashboard/package-lock.json b/web/dashboard/package-lock.json index eb6e8e542..6963ebe06 100644 --- a/web/dashboard/package-lock.json +++ b/web/dashboard/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@craco/craco": "7.1.0", "@headlessui/react": "^1.7.18", - "@heroicons/react": "^1.0.6", + "@heroicons/react": "^2.1.1", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^11.2.6", "@testing-library/user-event": "^12.8.3", @@ -2660,9 +2660,9 @@ } }, "node_modules/@heroicons/react": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-1.0.6.tgz", - "integrity": "sha512-JJCXydOFWMDpCP4q13iEplA503MQO3xLoZiKum+955ZCtHINWnx26CUxVxxFQu/uLb4LW3ge15ZpzIkXKkJ8oQ==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.1.1.tgz", + "integrity": "sha512-JyyN9Lo66kirbCMuMMRPtJxtKJoIsXKS569ebHGGRKbl8s4CtUfLnyKJxteA+vIKySocO4s1SkTkGS4xtG/yEA==", "peerDependencies": { "react": ">= 16" } diff --git a/web/dashboard/package.json b/web/dashboard/package.json index 6d89031b3..ce9313078 100644 --- a/web/dashboard/package.json +++ b/web/dashboard/package.json @@ -5,7 +5,7 @@ "dependencies": { "@craco/craco": "7.1.0", "@headlessui/react": "^1.7.18", - "@heroicons/react": "^1.0.6", + "@heroicons/react": "^2.1.1", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^11.2.6", "@testing-library/user-event": "^12.8.3", diff --git a/web/dashboard/src/components/commits/commitEvents.js b/web/dashboard/src/components/commits/commitEvents.js index 543c50fc9..0f6bf4cd7 100644 --- a/web/dashboard/src/components/commits/commitEvents.js +++ b/web/dashboard/src/components/commits/commitEvents.js @@ -1,4 +1,4 @@ -import { DocumentIcon, CogIcon, CloudIcon } from '@heroicons/react/solid' +import { DocumentIcon, CogIcon, CloudIcon } from '@heroicons/react/24/solid' import { format, formatDistance } from "date-fns"; export function CommitEvents(props) { diff --git a/web/dashboard/src/components/commits/commits.js b/web/dashboard/src/components/commits/commits.js index f3ca5fa72..cbeb11988 100644 --- a/web/dashboard/src/components/commits/commits.js +++ b/web/dashboard/src/components/commits/commits.js @@ -50,7 +50,7 @@ export function Commits(props) { const envNames = envs.map(env => env["name"]); for (let env of envs) { - env.isOnline = connectedAgents[env.name].isOnline + env.isOnline = isOnline(connectedAgents, env.name) } const commitWidgets = commits.map((commit, idx, ar) => @@ -107,6 +107,14 @@ export function Commits(props) { ) } +function isOnline(onlineEnvs, singleEnv) { + return Object.keys(onlineEnvs) + .map(env => onlineEnvs[env]) + .some(onlineEnv => { + return onlineEnv.name === singleEnv.name + }) +}; + const CommitWidget = (props) => { const { owner, repo, repoName, commit, last, idx, commitsRef, envNames, scmUrl, tenant, connectedAgents, deployHandler, gimletClient, envs } = props diff --git a/web/dashboard/src/components/deployWidget/deployWidget.jsx b/web/dashboard/src/components/deployWidget/deployWidget.jsx index a7f7215c5..f91eec301 100644 --- a/web/dashboard/src/components/deployWidget/deployWidget.jsx +++ b/web/dashboard/src/components/deployWidget/deployWidget.jsx @@ -1,10 +1,10 @@ import {Menu, Transition} from '@headlessui/react' -import {ChevronDownIcon} from '@heroicons/react/solid' +import {ChevronDownIcon} from '@heroicons/react/24/solid' // eslint-disable-next-line import/no-webpack-loader-syntax import logo from "!file-loader!./logo.svg"; import { usePostHog } from 'posthog-js/react' import { useState, Fragment } from 'react'; -import { FilterIcon } from '@heroicons/react/solid' +import { FunnelIcon } from '@heroicons/react/24/solid' export default function DeployWidget(props) { const {deployTargets, deployHandler, sha, repo } = props; @@ -60,7 +60,7 @@ export default function DeployWidget(props) { type="search" />
{rollout.triggeredBy}
- {!rollback &&{rollout.app}
} -+
{rollout.triggeredBy}
+ {!rollback &&{rollout.app}
} +Deployed { !builtInEnv && {dateLabel} ago }
-Status
+Status
{ deployment.pods && deployment.pods.map((pod) => (Version
-+
Version
+
Links
-Links
+Address
-Address
+
https://{ingress.url}
Health Health