From a1583e9ec650a9416e6baf6428255781efab3326 Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Thu, 10 Sep 2026 19:45:40 +0000 Subject: [PATCH 1/2] chore(site): enable oxlint role-supports-aria-props rule --- site/.oxlintrc.jsonc | 2 +- site/src/components/Autocomplete/Autocomplete.tsx | 1 - site/src/modules/resources/AgentLatency.tsx | 11 +++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/site/.oxlintrc.jsonc b/site/.oxlintrc.jsonc index 55f83bda461ba..b8f9897414ae8 100644 --- a/site/.oxlintrc.jsonc +++ b/site/.oxlintrc.jsonc @@ -21,6 +21,7 @@ "img-redundant-alt": "error", "no-redundant-roles": "error", "role-has-required-aria-props": "error", + "role-supports-aria-props": "error", "alt-text": "error", "anchor-has-content": "error", "anchor-ambiguous-text": "error", @@ -207,7 +208,6 @@ "consistent-type-imports": "off", // style/useImportType (medium) "jsx-curly-brace-presence": "off", // style/useConsistentCurlyBraces (medium, coder error rule) "no-fallthrough": "off", // suspicious/noFallthroughSwitchClause (medium) - "role-supports-aria-props": "off", // a11y/useAriaPropsSupportedByRole (small) "click-events-have-key-events": "off", // a11y/useKeyWithClickEvents (small) "prefer-function-type": "off", // style/useShorthandFunctionType (small) "no-empty-interface": "off", // suspicious/noEmptyInterface (small) diff --git a/site/src/components/Autocomplete/Autocomplete.tsx b/site/src/components/Autocomplete/Autocomplete.tsx index 4b0696c0c25c9..42d15466dc59d 100644 --- a/site/src/components/Autocomplete/Autocomplete.tsx +++ b/site/src/components/Autocomplete/Autocomplete.tsx @@ -374,7 +374,6 @@ export function Autocomplete({ data-testid={testId} aria-expanded={isOpen} aria-haspopup="listbox" - aria-invalid={triggerAriaInvalid} aria-describedby={triggerAriaDescribedBy} disabled={disabled} className={cn( diff --git a/site/src/modules/resources/AgentLatency.tsx b/site/src/modules/resources/AgentLatency.tsx index 6c70da2664b65..90fd23eba28fd 100644 --- a/site/src/modules/resources/AgentLatency.tsx +++ b/site/src/modules/resources/AgentLatency.tsx @@ -43,13 +43,16 @@ export const AgentLatency: FC = ({ agent }) => { return ( - {Math.round(latency.latency_ms)}ms - + Latency From b6f562233081bf30b0bc84a238caa2941a28051c Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Thu, 10 Sep 2026 20:01:18 +0000 Subject: [PATCH 2/2] chore(site/src/modules/resources/AgentLatency.tsx): drop redundant button reset classes --- site/src/modules/resources/AgentLatency.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/site/src/modules/resources/AgentLatency.tsx b/site/src/modules/resources/AgentLatency.tsx index 90fd23eba28fd..48c8460284323 100644 --- a/site/src/modules/resources/AgentLatency.tsx +++ b/site/src/modules/resources/AgentLatency.tsx @@ -46,10 +46,7 @@ export const AgentLatency: FC = ({ agent }) => {