Skip to content
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
170b16e
API visual first pass
royendo Feb 3, 2026
b50943c
nit
royendo Feb 3, 2026
737d298
args
royendo Feb 3, 2026
05a5b87
simpler, prettier
royendo Feb 3, 2026
8614d13
web code qual
royendo Feb 3, 2026
74ad9bb
code qual
royendo Feb 3, 2026
cd82c30
Update VisualAPIEditor.svelte
royendo Feb 3, 2026
7cc6139
Update VisualAPIEditor.svelte
royendo Feb 3, 2026
a96efa5
fixed heights and JSON view
royendo Feb 3, 2026
08b2ef7
prettier
royendo Feb 3, 2026
2d1f1f5
code qual
royendo Feb 3, 2026
0a45bdc
Update APIWorkspace.svelte
royendo Feb 3, 2026
7d6e002
Merge branch 'main' into feat/visual-editor-api
royendo Feb 20, 2026
425ecfb
Update errors.ts
royendo Feb 20, 2026
83779f2
themeing css
royendo Feb 20, 2026
05d2383
remove viz editor, consolidate tests into text editor
royendo Mar 5, 2026
563a773
Merge branch 'main' into feat/visual-editor-api
royendo Mar 5, 2026
813ad67
rename
royendo Mar 5, 2026
c34565b
reset review on nav
royendo Mar 5, 2026
8272f9b
reset
royendo Mar 5, 2026
1dbc8f3
template overwrites
royendo Mar 5, 2026
b04e4b9
local PR reviews
royendo Mar 5, 2026
c63a253
Remove unused `mapParseErrorsToLines` import in `+page.svelte`
royendo Mar 11, 2026
a6f6529
Merge branch 'main' into feat/visual-editor-api
royendo Mar 11, 2026
c1ff4d6
importing runtime changes
royendo Mar 11, 2026
2c5ec94
Merge remote-tracking branch 'origin/main' into feat/visual-editor-api
royendo Mar 30, 2026
4b68698
migration svelte/vite
royendo Mar 30, 2026
08af507
prettier
royendo Mar 30, 2026
e670982
prettier
royendo Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
web code qual
  • Loading branch information
royendo committed Feb 3, 2026
commit 8614d132911247e6233854066f1f7934d13df76b
17 changes: 10 additions & 7 deletions web-common/src/features/apis/editor/VisualAPIEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
export let fileArtifact: FileArtifact;
export let errors: LineStatus[];
export let apiName: string;
export let switchView: () => void;

Check failure on line 25 in web-common/src/features/apis/editor/VisualAPIEditor.svelte

View workflow job for this annotation

GitHub Actions / build

Component has unused export property 'switchView'. If it is for external reference only, please consider using `export const switchView`(unused-export-let)

type APIType = "metrics_sql" | "sql" | "resource_status";

Expand Down Expand Up @@ -163,8 +163,8 @@
let responseError: string | null = null;
let isLoading = false;
let previewHeight = 300;
let resizerMax = 600;

Check failure on line 166 in web-common/src/features/apis/editor/VisualAPIEditor.svelte

View workflow job for this annotation

GitHub Actions / build

'resizerMax' is assigned a value but never used
let mainAreaEl: HTMLDivElement;
let mainAreaEl: HTMLDivElement | undefined;

onMount(() => {
if (mainAreaEl) {
Expand All @@ -177,7 +177,7 @@
// Resource status fields
let whereError = true;

// Connector field for sql and glob
// Connector field for sql type
let connector = "";

$: host = $runtime.host || "http://localhost:9009";
Expand Down Expand Up @@ -381,7 +381,7 @@

<!-- API Type Selector -->
<div class="section">
<InputLabel label="API Type" />
<InputLabel id="api-type" label="API Type" />
<div class="grid grid-cols-3 gap-2">
{#each apiTypes as apiType}
<button
Expand All @@ -404,7 +404,7 @@
<div class="section">
{#if currentType === "metrics_sql"}
<div class="flex items-center justify-between">
<InputLabel label="Metrics SQL Query" />
<InputLabel id="metrics-sql-query" label="Metrics SQL Query" />
<DropdownMenu.Root>
<DropdownMenu.Trigger asChild let:builder>
<Button type="text" compact small builders={[builder]}>
Expand Down Expand Up @@ -472,7 +472,10 @@
your project.
</p>
{:else if currentType === "resource_status"}
<InputLabel label="Resource Status Options" />
<InputLabel
id="resource-status-options"
label="Resource Status Options"
/>
<div class="flex items-center gap-x-2 mt-1">
<Checkbox
checked={whereError}
Expand Down Expand Up @@ -512,7 +515,7 @@

<!-- Endpoint URL -->
<div class="section">
<InputLabel label="Endpoint URL" />
<InputLabel id="endpoint-url" label="Endpoint URL" />
<div
class="flex items-center gap-x-2 px-3 py-2 bg-surface-muted rounded-[2px] border text-sm font-mono"
>
Expand All @@ -524,7 +527,7 @@
<!-- Arguments -->
<div class="section">
<div class="flex items-center justify-between">
<InputLabel label="Arguments" />
<InputLabel id="test-arguments" label="Arguments" />
<Button type="text" compact onClick={addArg}>
<PlusIcon size="14px" />
Add
Expand Down
Loading