Skip to content

Commit

Permalink
feat: add encode size comparison widget
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed May 11, 2024
1 parent 97a5606 commit d5f813e
Show file tree
Hide file tree
Showing 5 changed files with 354 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"react-intersection-observer": "^9.10.2",
"react-relay": "^16.2.0",
"react-syntax-highlighter": "^15.5.0",
"recharts": "^2.12.7",
"relay-runtime": "^16.2.0",
"tailwindcss": "^3.4.3",
"zod": "^3.23.6"
Expand Down
223 changes: 220 additions & 3 deletions app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const FRAGMENT = graphql`
}
...EncodeStatusBadgeFragment
...EncodeScriptPanelFragment
...EncodeAnalyticsPanelFragment
}
`

Expand Down Expand Up @@ -57,7 +58,7 @@ const EncodeDialog: React.FC<EncodeDialogProps> = ({ children, $key }) => {
return <EncodeDialogScript $key={data} />

case EncodeDialogPanel.ANALYTICS:
return <EncodeAnalyticsPanel />
return <EncodeAnalyticsPanel $key={data} />

default:
throw new Error(`unexpected panel value ${context.panel} was provided.`)
Expand Down Expand Up @@ -86,7 +87,14 @@ const EncodeDialog: React.FC<EncodeDialogProps> = ({ children, $key }) => {
</div>

<div className="flex items-center gap-3">
<Button color="transparent" size="xs" onPress={close}>
<Button
color="transparent"
size="xs"
onPress={() => {
context.setPanel(EncodeDialogPanel.SCRIPT)
close()
}}
>
<IconX size={16} strokeWidth={1} />
</Button>
</div>
Expand Down
Loading

0 comments on commit d5f813e

Please sign in to comment.