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

Co-authored-by: maria-rcks <[email protected]>
This commit is contained in:
mariaandmaria-rcks authored and GitHub committed 2026-09-01 20:39:56 -04:00
1 parent 08aad594f0
commit 98725df00a
9 files changed
+19 -29

No files matched your search

@@ -133,7 +133,7 @@ function EnvironmentUpdateRow({
break;
default:
trailing = (
<Button size="xs" onClick={onUpdate}>
<Button size="xs" variant="outline" onClick={onUpdate}>
Update
</Button>
);
@@ -281,7 +281,7 @@ export function ProviderUpdatePrimaryNotification() {
children: "Settings",
onClick: openSettings,
},
actionVariant: oneClickProviders.length > 0 ? "default" : "outline",
actionVariant: "outline",
data: {
leadingIcon:
updateProviders.length === 1 ? (
@@ -154,7 +154,7 @@ export function ServerUpdateAction({
}
return (
<Button size="xs" onClick={() => void handleUpdate()}>
<Button size="xs" variant="outline" onClick={() => void handleUpdate()}>
{label}
</Button>
);
@@ -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",
};
@@ -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}
@@ -388,7 +388,7 @@ function AboutVersionSection() {
render={
<Button
size="xs"
variant={action === "install" ? "default" : "outline"}
variant="outline"
disabled={buttonDisabled || isUpdateActionPending}
onClick={handleButtonClick}
>
@@ -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>
@@ -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;
@@ -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 ? (