Skip to content
TypeScript

fix(web): mute routine notices and update actions (#9063)

maria98725df00a72
diff --git a/apps/web/src/components/ProviderUpdateEnvironmentRows.tsx b/apps/web/src/components/ProviderUpdateEnvironmentRows.tsx
index 28242b88fd3..56aaa9e96ff 100644
--- a/apps/web/src/components/ProviderUpdateEnvironmentRows.tsx
+++ b/apps/web/src/components/ProviderUpdateEnvironmentRows.tsx
@@ -133,7 +133,7 @@ function EnvironmentUpdateRow({
break;
default:
trailing = (
- <Button size="xs" onClick={onUpdate}>
+ <Button size="xs" variant="outline" onClick={onUpdate}>
Update
</Button>
);
diff --git a/apps/web/src/components/ProviderUpdatePrimaryNotification.tsx b/apps/web/src/components/ProviderUpdatePrimaryNotification.tsx
index 639f07c38c1..a0ed3d80467 100644
--- a/apps/web/src/components/ProviderUpdatePrimaryNotification.tsx
+++ b/apps/web/src/components/ProviderUpdatePrimaryNotification.tsx
@@ -281,7 +281,7 @@ export function ProviderUpdatePrimaryNotification() {
children: "Settings",
onClick: openSettings,
},
- actionVariant: oneClickProviders.length > 0 ? "default" : "outline",
+ actionVariant: "outline",
data: {
leadingIcon:
updateProviders.length === 1 ? (
diff --git a/apps/web/src/components/ServerUpdateAction.tsx b/apps/web/src/components/ServerUpdateAction.tsx
index 87f903c9c65..06b082ca654 100644
--- a/apps/web/src/components/ServerUpdateAction.tsx
+++ b/apps/web/src/components/ServerUpdateAction.tsx
@@ -154,7 +154,7 @@ export function ServerUpdateAction({
}
return (
- <Button size="xs" onClick={() => void handleUpdate()}>
+ <Button size="xs" variant="outline" onClick={() => void handleUpdate()}>
{label}
</Button>
);
diff --git a/apps/web/src/components/chat/ComposerBanner.tsx b/apps/web/src/components/chat/ComposerBanner.tsx
index f81565718c1..d222972b415 100644
--- a/apps/web/src/components/chat/ComposerBanner.tsx
+++ b/apps/web/src/components/chat/ComposerBanner.tsx
@@ -27,9 +27,8 @@ const variantColors: Record<ComposerBannerVariant, string> = {
default: neutralOutline,
error:
"[--chat-composer-attached-outline:color-mix(in_srgb,var(--error)_32%,transparent)] [--chat-composer-attached-tint:color-mix(in_srgb,var(--error)_8%,transparent)]",
- info: "[--chat-composer-attached-outline:color-mix(in_srgb,var(--info)_32%,transparent)] [--chat-composer-attached-tint:color-mix(in_srgb,var(--info)_4%,transparent)]",
- success:
- "[--chat-composer-attached-outline:color-mix(in_srgb,var(--success)_32%,transparent)] [--chat-composer-attached-tint:color-mix(in_srgb,var(--success)_4%,transparent)]",
+ info: neutralOutline,
+ success: neutralOutline,
warning:
"[--chat-composer-attached-outline:color-mix(in_srgb,var(--warning)_28%,transparent)] [--chat-composer-attached-tint:color-mix(in_srgb,var(--warning)_8%,transparent)]",
};
@@ -71,8 +70,8 @@ function Surface({
const peekBorder: Record<ComposerBannerVariant, string> = {
default: "border-(--chat-composer-attached-outline)",
error: "border-destructive/24",
- info: "border-info/24",
- success: "border-success/24",
+ info: "border-(--chat-composer-attached-outline)",
+ success: "border-(--chat-composer-attached-outline)",
warning: "border-warning/24",
};
diff --git a/apps/web/src/components/settings/ProviderInstanceCard.tsx b/apps/web/src/components/settings/ProviderInstanceCard.tsx
index a82cc2f4adf..75c0361e9c6 100644
--- a/apps/web/src/components/settings/ProviderInstanceCard.tsx
+++ b/apps/web/src/components/settings/ProviderInstanceCard.tsx
@@ -660,7 +660,7 @@ export function ProviderInstanceCard({
{versionCodeNode}
{versionAdvisory ? (
<span role="img" aria-label="Update available" className="inline-flex shrink-0">
- <ArrowUpCircleIcon className="size-3.5 text-update-foreground" />
+ <ArrowUpCircleIcon className="size-3.5 text-muted-foreground" />
</span>
) : null}
</span>
@@ -715,7 +715,7 @@ export function ProviderInstanceCard({
"size-5 rounded-sm p-0",
versionAdvisory.emphasis === "strong"
? "text-warning hover:text-warning"
- : "text-update-foreground hover:text-update-foreground",
+ : "text-muted-foreground hover:text-foreground",
)}
aria-label="Update available — view details"
>
@@ -748,7 +748,7 @@ export function ProviderInstanceCard({
<Button
type="button"
size="xs"
- variant="default"
+ variant="outline"
className="w-full"
disabled={isUpdating}
onClick={onRunUpdate}
diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx
index ca59fbc37d9..68dadd7cb6a 100644
--- a/apps/web/src/components/settings/SettingsPanels.tsx
+++ b/apps/web/src/components/settings/SettingsPanels.tsx
@@ -388,7 +388,7 @@ function AboutVersionSection() {
render={
<Button
size="xs"
- variant={action === "install" ? "default" : "outline"}
+ variant="outline"
disabled={buttonDisabled || isUpdateActionPending}
onClick={handleButtonClick}
>
diff --git a/apps/web/src/components/sidebar/DesktopUpdateStatusIcon.tsx b/apps/web/src/components/sidebar/DesktopUpdateStatusIcon.tsx
index 9346a742a37..60fa379ce30 100644
--- a/apps/web/src/components/sidebar/DesktopUpdateStatusIcon.tsx
+++ b/apps/web/src/components/sidebar/DesktopUpdateStatusIcon.tsx
@@ -46,7 +46,7 @@ function DesktopUpdateAvailableIcon() {
<DownloadIcon className="size-4" />
<span
aria-hidden="true"
- className="absolute -top-0.5 -right-0.5 size-1.5 rounded-full bg-update-foreground ring-2 ring-update-surface"
+ className="absolute -top-0.5 -right-0.5 size-1.5 rounded-full bg-current ring-2 ring-sidebar-control-surface"
/>
</span>
);
@@ -93,7 +93,7 @@ function DesktopUpdateDownloadedIcon() {
return (
<span className="relative grid size-4 place-items-center">
<RotateCwIcon className="size-4" />
- <span className="absolute -right-1 -bottom-1 grid size-2.5 place-items-center rounded-full bg-update-foreground text-background ring-2 ring-background">
+ <span className="absolute -right-1 -bottom-1 grid size-2.5 place-items-center rounded-full bg-foreground text-background ring-2 ring-background">
<CheckIcon className="size-2" strokeWidth={3} />
</span>
</span>
diff --git a/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx b/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
index dcab7440ace..84dd7f4b563 100644
--- a/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
+++ b/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
@@ -14,9 +14,9 @@ import { Button } from "../ui/button";
const PROVIDER_UPDATE_PILL_STYLES = {
loading:
- "bg-update-surface text-update-foreground group-has-[button.provider-update-main:hover]/provider-update:bg-update/22",
+ "bg-sidebar-control-surface text-sidebar-foreground group-has-[button.provider-update-main:hover]/provider-update:bg-sidebar-row-hover",
success:
- "bg-success/12 text-success group-has-[button.provider-update-main:hover]/provider-update:bg-success/18",
+ "bg-sidebar-control-surface text-sidebar-foreground group-has-[button.provider-update-main:hover]/provider-update:bg-sidebar-row-hover",
warning:
"bg-warning/12 text-warning group-has-[button.provider-update-main:hover]/provider-update:bg-warning/18",
error:
@@ -24,7 +24,7 @@ const PROVIDER_UPDATE_PILL_STYLES = {
} as const;
const PROVIDER_UPDATE_PILL_PROGRESS_STYLES = {
- success: "bg-success/18",
+ success: "bg-foreground/8",
warning: "bg-warning/14",
error: "bg-destructive/14",
} as const;
diff --git a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx
index f576fdd4e17..9206a9a7086 100644
--- a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx
+++ b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx
@@ -84,7 +84,7 @@ function SidebarUpdateReleaseNotesTooltip({
Update ready to download
</div>
{state.availableVersion ? (
- <div className="mt-0.5 text-xs leading-4 text-update-foreground">
+ <div className="mt-0.5 text-xs leading-4 text-muted-foreground">
{state.availableVersion}
</div>
) : null}
@@ -319,8 +319,8 @@ function SidebarUpdateControl() {
isInteractionDisabled ? "cursor-not-allowed" : "cursor-pointer",
showUpdateIconState
? cn(
- "bg-update-surface text-update-foreground",
- !isInteractionDisabled && "hover:bg-update/12",
+ "bg-sidebar-control-surface text-sidebar-foreground",
+ !isInteractionDisabled && "hover:bg-sidebar-row-hover",
)
: cn(
"text-[var(--sidebar-icon-color)]",
@@ -351,15 +351,6 @@ function SidebarUpdateControl() {
: undefined
}
side="top"
- style={
- showUpdateDetails
- ? {
- background:
- "color-mix(in srgb, var(--update) 18%, color-mix(in srgb, var(--popover) var(--glass-opacity), transparent))",
- borderColor: "var(--update-foreground)",
- }
- : undefined
- }
variant={showUpdateDetails ? "glass" : "default"}
>
{showUpdateDetails && state ? (