fix(web): live background-work banner no longer hides behind the update notice #5595
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/5595/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -4423,11 +4427,18 @@44234427 void handleSwitchCheckoutToThread();44244428 }, [gitStatusQuery.data?.hasWorkingTreeChanges, handleSwitchCheckoutToThread]);44254429 const composerBannerItems = useMemo<ComposerBannerStackItem[]>(() => {4430+ const urgentSystemItems = systemComposerBannerItems.filter(4431+ (item) => item.variant === "error" || item.variant === "warning",4432+ );4433+ const calmSystemItems = systemComposerBannerItems.filter(4434+ (item) => item.variant !== "error" && item.variant !== "warning",4435+ );44264436 const backgroundLivenessItems =44274437 backgroundLivenessBannerItem === null ? [] : [backgroundLivenessBannerItem];44284438 const wokeThreadItems = wokeThreadBannerItem === null ? [] : [wokeThreadBannerItem];44294439 const parkedThreadItems = parkedThreadBannerItem === null ? [] : [parkedThreadBannerItem];44304440 if (!localCheckoutBranchMismatch || !showBranchMismatchBanner || !activeBranchMismatchKey) {44314441 return [4432- ...systemComposerBannerItems,4442+ ...urgentSystemItems,44334443 ...backgroundLivenessItems,4444+ ...calmSystemItems,
- apps/web/src/components/ChatView.tsx line 4447Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -4423,11 +4427,18 @@44234427 void handleSwitchCheckoutToThread();44244428 }, [gitStatusQuery.data?.hasWorkingTreeChanges, handleSwitchCheckoutToThread]);44254429 const composerBannerItems = useMemo<ComposerBannerStackItem[]>(() => {4430+ const urgentSystemItems = systemComposerBannerItems.filter(4431+ (item) => item.variant === "error" || item.variant === "warning",4432+ );4433+ const calmSystemItems = systemComposerBannerItems.filter(4434+ (item) => item.variant !== "error" && item.variant !== "warning",4435+ );44264436 const backgroundLivenessItems =44274437 backgroundLivenessBannerItem === null ? [] : [backgroundLivenessBannerItem];44284438 const wokeThreadItems = wokeThreadBannerItem === null ? [] : [wokeThreadBannerItem];44294439 const parkedThreadItems = parkedThreadBannerItem === null ? [] : [parkedThreadBannerItem];44304440 if (!localCheckoutBranchMismatch || !showBranchMismatchBanner || !activeBranchMismatchKey) {44314441 return [4432- ...systemComposerBannerItems,4442+ ...urgentSystemItems,44334443 ...backgroundLivenessItems,4444+ ...calmSystemItems,
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
bc637f54-f6c1-46f4-a0c3-9ced5273eda8You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share