Skip to content

Commit

Permalink
Make the distinction between editor and debugger more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-forina committed Nov 20, 2024
1 parent b04c16c commit 9de032b
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions packages/test-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { worker } from "./rpc.ts";
// import * as worker from "../../ui/src/OpenApiEditorWorker.ts";
import { useCallback, useRef, useState } from "react";
import {
Alert,
Button,
Flex,
FlexItem,
Expand Down Expand Up @@ -113,19 +114,31 @@ function App() {
/>
</PageSection>
<PageSection variant={"secondary"}>
<Flex>
<FlexItem>
<Button onClick={onSaveClick}>Save and update</Button>
</FlexItem>
<Title headingLevel={"h6"}>
<Switch
isChecked={captureChanges}
onChange={(_, v) => setCaptureChanges(v)}
label={"Listen to onDocumentChange events"}
<Alert
title={"Integration debugger"}
variant={"warning"}
isInline={true}
>
<Flex>
<Title headingLevel={"h6"}>
<Switch
isChecked={captureChanges}
onChange={(_, v) => setCaptureChanges(v)}
label={"Listen to onDocumentChange events"}
/>
</Title>
<TextArea
aria-label="Output of the editor"
value={output}
rows={6}
/>
</Title>
<TextArea aria-label="Output of the editor" value={output} rows={6} />
</Flex>
<FlexItem>
<Button onClick={onSaveClick}>
Programmatically save and update with another document
</Button>
</FlexItem>
</Flex>
</Alert>
</PageSection>
</>
);
Expand Down

0 comments on commit 9de032b

Please sign in to comment.