From 1d0cc7e09cd2d7b18cf19c7c6e2b095fe31bfa62 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Jul 2026 22:09:24 +0200 Subject: [PATCH] refactor(ui): trim private helper exports (#105663) --- scripts/deadcode-exports.baseline.mjs | 2 -- ui/src/app/stale-chunk-reload.ts | 2 +- ui/src/components/browser/browser-annotation.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/deadcode-exports.baseline.mjs b/scripts/deadcode-exports.baseline.mjs index 9401ba1f9484..d1c122dcccbd 100644 --- a/scripts/deadcode-exports.baseline.mjs +++ b/scripts/deadcode-exports.baseline.mjs @@ -5619,7 +5619,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [ "ui/src/app/overlays.ts: ApplicationOverlaySnapshot", "ui/src/app/settings.ts: isViteDevPage", "ui/src/app/settings.ts: NAV_WIDTH_DEFAULT", - "ui/src/app/stale-chunk-reload.ts: reloadControlUiDocument", "ui/src/app/stale-chunk-reload.ts: resetStaleChunkReloadStateForTest", "ui/src/build-info.ts: deriveControlUiBuildId", "ui/src/build-info.ts: normalizeControlUiBranch", @@ -5630,7 +5629,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [ "ui/src/components/agent-select.ts: AgentSelect", "ui/src/components/browser/browser-annotation.ts: ANNOTATION_STROKE_COLOR", "ui/src/components/browser/browser-annotation.ts: AnnotationPoint", - "ui/src/components/browser/browser-annotation.ts: annotationStrokeWidth", "ui/src/components/browser/browser-annotation.ts: describeInspectedNode", "ui/src/components/browser/browser-annotation.ts: strokeBoundingRegion", "ui/src/components/browser/browser-client.ts: BrowserScreenshotCapture", diff --git a/ui/src/app/stale-chunk-reload.ts b/ui/src/app/stale-chunk-reload.ts index 9e4bbf15ffbc..6420c6161fa4 100644 --- a/ui/src/app/stale-chunk-reload.ts +++ b/ui/src/app/stale-chunk-reload.ts @@ -38,7 +38,7 @@ export function isStaleChunkImportError(error: unknown): boolean { ); } -export function reloadControlUiDocument(): void { +function reloadControlUiDocument(): void { window.location.reload(); } diff --git a/ui/src/components/browser/browser-annotation.ts b/ui/src/components/browser/browser-annotation.ts index 0201d6c112ec..625a6b8c3cbe 100644 --- a/ui/src/components/browser/browser-annotation.ts +++ b/ui/src/components/browser/browser-annotation.ts @@ -150,7 +150,7 @@ export function buildAnnotationPrompt(params: { export const ANNOTATION_STROKE_COLOR = "#e0442d"; -export function annotationStrokeWidth(imageWidth: number): number { +function annotationStrokeWidth(imageWidth: number): number { return Math.max(4, Math.round(imageWidth * 0.005)); }