Skip to content

Commit 7f2db17

Browse files
committed
fix(gui): clear react-doctor changed-scope warnings, refresh PR screenshots from rebased head
Backdrop dismiss keeps a presentational role (no nested-interactive regression); sortAccounts uses toSorted. Screenshots re-rendered from the rebuilt head: desktop EN refresh + new 400px narrow asset.
1 parent a9e5620 commit 7f2db17

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

-302 KB
Loading
81.8 KB
Loading

‎gui/src/components/provider-workspace/ProviderDialogs.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function RemoveConfirmDialog({
1616
}) {
1717
const t = useT();
1818
return (
19-
<div className="dialog-backdrop" onClick={onCancel}>
19+
<div className="dialog-backdrop" onClick={onCancel} role="presentation">
2020
<div className="dialog" role="alertdialog" aria-label={t("pws.removeConfirmTitle")} onClick={e => e.stopPropagation()}>
2121
<h3>{t("pws.removeConfirmTitle")}</h3>
2222
<p>{defaultProviderName
@@ -41,7 +41,7 @@ export function UnsavedLeaveDialog({
4141
}) {
4242
const t = useT();
4343
return (
44-
<div className="dialog-backdrop" onClick={onCancel}>
44+
<div className="dialog-backdrop" onClick={onCancel} role="presentation">
4545
<div className="dialog" role="alertdialog" aria-label={t("pws.unsavedLeaveTitle")} onClick={e => e.stopPropagation()}>
4646
<h3>{t("pws.unsavedLeaveTitle")}</h3>
4747
<p>{t("pws.unsavedLeaveBody")}</p>
@@ -88,7 +88,7 @@ export function RemoveAccountConfirmDialog({
8888
}, [removing]);
8989

9090
return (
91-
<div className="dialog-backdrop" onClick={onCancel}>
91+
<div className="dialog-backdrop" onClick={onCancel} role="presentation">
9292
<div className="dialog" role="alertdialog" aria-modal="true" aria-label={t("pws.removeAccountConfirmTitle")} onClick={e => e.stopPropagation()}>
9393
<h3>{t("pws.removeAccountConfirmTitle")}</h3>
9494
<p>

‎gui/src/components/provider-workspace/account-quota-analysis.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export function sortAccounts(
338338
const isGeminiFilter = activeFilter === "with_limits_gemini" || activeFilter === "gemini_exhausted";
339339
const isClaudeFilter = activeFilter === "with_limits_claude" || activeFilter === "claude_exhausted";
340340

341-
return [...items].sort((a, b) => {
341+
return items.toSorted((a, b) => {
342342
switch (sortKey) {
343343
case "more_headroom": {
344344
if (isGeminiFilter) {

0 commit comments

Comments
 (0)