commit
a3d1140129
6 changed files with 66 additions and 4 deletions
27
extension/package-lock.json
generated
27
extension/package-lock.json
generated
|
|
@ -15,6 +15,7 @@
|
|||
"@segment/analytics-node": "^0.0.1-beta.16",
|
||||
"@sentry/node": "^7.57.0",
|
||||
"@styled-icons/heroicons-outline": "^10.47.0",
|
||||
"@styled-icons/heroicons-solid": "^10.47.0",
|
||||
"@vitejs/plugin-react-swc": "^3.3.2",
|
||||
"axios": "^1.2.5",
|
||||
"downshift": "^7.6.0",
|
||||
|
|
@ -2238,6 +2239,23 @@
|
|||
"styled-components": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@styled-icons/heroicons-solid": {
|
||||
"version": "10.47.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/heroicons-solid/-/heroicons-solid-10.47.0.tgz",
|
||||
"integrity": "sha512-j+tJx2NzLG2tc91IXJVwKNjsI/osxmak+wmLfnfBsB+49srpxMYjuLPMtl9ZY/xgbNsWO36O+/N5Zf5bkgiKcQ==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@styled-icons/styled-icon": "^10.7.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "GitHub",
|
||||
"url": "https://github.com/sponsors/jacobwgillespie"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
"styled-components": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@styled-icons/styled-icon": {
|
||||
"version": "10.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/styled-icon/-/styled-icon-10.7.0.tgz",
|
||||
|
|
@ -13120,6 +13138,15 @@
|
|||
"@styled-icons/styled-icon": "^10.7.0"
|
||||
}
|
||||
},
|
||||
"@styled-icons/heroicons-solid": {
|
||||
"version": "10.47.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/heroicons-solid/-/heroicons-solid-10.47.0.tgz",
|
||||
"integrity": "sha512-j+tJx2NzLG2tc91IXJVwKNjsI/osxmak+wmLfnfBsB+49srpxMYjuLPMtl9ZY/xgbNsWO36O+/N5Zf5bkgiKcQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@styled-icons/styled-icon": "^10.7.0"
|
||||
}
|
||||
},
|
||||
"@styled-icons/styled-icon": {
|
||||
"version": "10.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/styled-icon/-/styled-icon-10.7.0.tgz",
|
||||
|
|
|
|||
|
|
@ -252,6 +252,7 @@
|
|||
"@segment/analytics-node": "^0.0.1-beta.16",
|
||||
"@sentry/node": "^7.57.0",
|
||||
"@styled-icons/heroicons-outline": "^10.47.0",
|
||||
"@styled-icons/heroicons-solid": "^10.47.0",
|
||||
"@vitejs/plugin-react-swc": "^3.3.2",
|
||||
"axios": "^1.2.5",
|
||||
"downshift": "^7.6.0",
|
||||
|
|
|
|||
27
extension/react-app/package-lock.json
generated
27
extension/react-app/package-lock.json
generated
|
|
@ -9,6 +9,7 @@
|
|||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@styled-icons/heroicons-outline": "^10.47.0",
|
||||
"@styled-icons/heroicons-solid": "^10.47.0",
|
||||
"@types/vscode-webview": "^1.57.1",
|
||||
"downshift": "^7.6.0",
|
||||
"posthog-js": "^1.58.0",
|
||||
|
|
@ -691,6 +692,23 @@
|
|||
"styled-components": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@styled-icons/heroicons-solid": {
|
||||
"version": "10.47.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/heroicons-solid/-/heroicons-solid-10.47.0.tgz",
|
||||
"integrity": "sha512-j+tJx2NzLG2tc91IXJVwKNjsI/osxmak+wmLfnfBsB+49srpxMYjuLPMtl9ZY/xgbNsWO36O+/N5Zf5bkgiKcQ==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@styled-icons/styled-icon": "^10.7.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "GitHub",
|
||||
"url": "https://github.com/sponsors/jacobwgillespie"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
"styled-components": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@styled-icons/styled-icon": {
|
||||
"version": "10.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/styled-icon/-/styled-icon-10.7.0.tgz",
|
||||
|
|
@ -3937,6 +3955,15 @@
|
|||
"@styled-icons/styled-icon": "^10.7.0"
|
||||
}
|
||||
},
|
||||
"@styled-icons/heroicons-solid": {
|
||||
"version": "10.47.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/heroicons-solid/-/heroicons-solid-10.47.0.tgz",
|
||||
"integrity": "sha512-j+tJx2NzLG2tc91IXJVwKNjsI/osxmak+wmLfnfBsB+49srpxMYjuLPMtl9ZY/xgbNsWO36O+/N5Zf5bkgiKcQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@styled-icons/styled-icon": "^10.7.0"
|
||||
}
|
||||
},
|
||||
"@styled-icons/styled-icon": {
|
||||
"version": "10.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@styled-icons/styled-icon/-/styled-icon-10.7.0.tgz",
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@styled-icons/heroicons-outline": "^10.47.0",
|
||||
"@styled-icons/heroicons-solid": "^10.47.0",
|
||||
"@types/vscode-webview": "^1.57.1",
|
||||
"downshift": "^7.6.0",
|
||||
"posthog-js": "^1.58.0",
|
||||
|
|
|
|||
|
|
@ -8,15 +8,17 @@ interface HeaderButtonWithTextProps {
|
|||
children: React.ReactNode;
|
||||
disabled?: boolean;
|
||||
inverted?: boolean;
|
||||
active?: boolean;
|
||||
}
|
||||
|
||||
const HeaderButtonWithText = (props: HeaderButtonWithTextProps) => {
|
||||
const [hover, setHover] = useState(false);
|
||||
const paddingLeft = (props.disabled ? (props.active ? "3px" : "1px"): (hover ? "4px" : "1px"));
|
||||
return (
|
||||
<HeaderButton
|
||||
inverted={props.inverted}
|
||||
disabled={props.disabled}
|
||||
style={{ padding: "1px", paddingLeft: hover ? "4px" : "1px" }}
|
||||
style={{ padding: (props.active ? "3px" : "1px"), paddingLeft, borderRadius: (props.active ? "50%" : undefined) }}
|
||||
onMouseEnter={() => {
|
||||
if (!props.disabled) {
|
||||
setHover(true);
|
||||
|
|
|
|||
|
|
@ -10,9 +10,12 @@ import {
|
|||
import {
|
||||
ChevronDown,
|
||||
ChevronRight,
|
||||
XMark,
|
||||
ArrowPath,
|
||||
XMark
|
||||
} from "@styled-icons/heroicons-outline";
|
||||
import {
|
||||
Stop,
|
||||
} from "@styled-icons/heroicons-solid";
|
||||
import { HistoryNode } from "../../../schema/HistoryNode";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import HeaderButtonWithText from "./HeaderButtonWithText";
|
||||
|
|
@ -207,9 +210,10 @@ function StepContainer(props: StepContainerProps) {
|
|||
e.stopPropagation();
|
||||
props.onDelete();
|
||||
}}
|
||||
text="Delete"
|
||||
text={props.historyNode.active ? "Stop" : "Delete"}
|
||||
active={props.historyNode.active}
|
||||
>
|
||||
<XMark size="1.6em" onClick={props.onDelete} />
|
||||
{props.historyNode.active ? <Stop size="1.6em" onClick={props.onDelete} /> :<XMark size="1.6em" onClick={props.onDelete} />}
|
||||
</HeaderButtonWithText>
|
||||
{props.historyNode.observation?.error ? (
|
||||
<HeaderButtonWithText
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue