Skip to content

Commit

Permalink
add disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Feb 12, 2025
1 parent 566a134 commit 66051a3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 16 deletions.
43 changes: 27 additions & 16 deletions packages/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,14 @@ function JSONSchemaObjectForm(props: {
)
}

function AIDisclaimer() {
return (
<span className="ai-disclaimer">
🤖 AI-generated, check for mistakes
</span>
)
}

function ValueBadge(props: {
value: any
precision?: number
Expand Down Expand Up @@ -1663,22 +1671,25 @@ function RunForm() {
function ResultsTabs() {
const [selected, setSelected] = useState(0)
return (
<vscode-tabs
onvsc-tabs-select={(e: VscTabsSelectEvent) =>
setSelected(e.detail.selectedIndex)
}
panel
>
<OutputTraceTabPanel selected={selected === 0} />
<TraceTabPanel selected={selected === 1} />
<MessagesTabPanel />
<ProblemsTabPanel />
<FileEditsTabPanel />
<JSONTabPanel />
<StatsTabPanel />
<ErrorTabPanel />
{diagnostics ? <RawTabPanel /> : undefined}
</vscode-tabs>
<>
<AIDisclaimer />
<vscode-tabs
onvsc-tabs-select={(e: VscTabsSelectEvent) =>
setSelected(e.detail.selectedIndex)
}
panel
>
<OutputTraceTabPanel selected={selected === 0} />
<TraceTabPanel selected={selected === 1} />
<MessagesTabPanel />
<ProblemsTabPanel />
<FileEditsTabPanel />
<JSONTabPanel />
<StatsTabPanel />
<ErrorTabPanel />
{diagnostics ? <RawTabPanel /> : undefined}
</vscode-tabs>
</>
)
}

Expand Down
7 changes: 7 additions & 0 deletions packages/web/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,10 @@ table.toplogprobs td {
min-height: 16rem;
margin-left: 0.5rem;
}

.vscode-body span.ai-disclaimer {
font-size: 80%;
margin: 1rem;
opacity: 0.8;
font-family: var(--vscode-font-family);
}

0 comments on commit 66051a3

Please sign in to comment.