Skip to content

feat(updates): add "Later" option to dismiss the update-ready banner#3101

Merged
tatoalo merged 1 commit into
mainfrom
posthog-code/update-banner-later-dismiss
Jul 2, 2026
Merged

feat(updates): add "Later" option to dismiss the update-ready banner#3101
tatoalo merged 1 commit into
mainfrom
posthog-code/update-banner-later-dismiss

Conversation

@tatoalo

@tatoalo tatoalo commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Problem

The update-ready notification only offers Restart, which forces an install decision mid-flow and breaks focus during active work. There is no way to dismiss it.

update-banner-closeup update-banner-app

Changes

  • Added a "Later" button to the sidebar update-ready banner
  • dismissal lives in a new in-memory view store (updateBannerStore), so the banner resurfaces on the next session. A dismissed update still installs silently on the next quit (autoInstallOnAppQuit)

@trunk-io

trunk-io Bot commented Jul 2, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 1886956.

@greptile-apps

greptile-apps Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(updates): add Later option to dismi..." | Re-trigger Greptile

Comment thread packages/ui/src/features/sidebar/components/UpdateBanner.tsx
tatoalo added a commit that referenced this pull request Jul 2, 2026
Generated-By: PostHog Code
Task-Id: a6923a11-0949-4de3-8471-9832f711fb51
@tatoalo tatoalo self-assigned this Jul 2, 2026
@tatoalo tatoalo added the Stamphog This will request an autostamp by stamphog on small changes label Jul 2, 2026
The update-ready banner only offered Restart, forcing an install decision mid-flow. Add a Later action (sidebar variant) and a dismiss X (compact variant) that hide the banner for the current session. Dismissal is keyed to the downloaded version in an in-memory view store, so a newer update re-shows the banner and it resurfaces on the next session. The sidebar ready card is restructured into two rows so the actions fit at sidebar width without wrapping the version text.

Generated-By: PostHog Code
Task-Id: a6923a11-0949-4de3-8471-9832f711fb51
@tatoalo tatoalo force-pushed the posthog-code/update-banner-later-dismiss branch from 9e11033 to 1886956 Compare July 2, 2026 17:11
@tatoalo tatoalo marked this pull request as ready for review July 2, 2026 17:12

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low-risk UI-only change that adds a dismiss button to the update banner. The new store is correctly placed as view state in @posthog/ui, the greptile bot's concern about null-version key collisions is genuinely addressed by resetting dismissal on each new download cycle, and there are no architectural violations or security concerns.

@tatoalo tatoalo enabled auto-merge (squash) July 2, 2026 17:13
@greptile-apps

greptile-apps Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "feat(updates): add Later option to dismi..." | Re-trigger Greptile

@tatoalo tatoalo merged commit f3257cc into main Jul 2, 2026
27 checks passed
@tatoalo tatoalo deleted the posthog-code/update-banner-later-dismiss branch July 2, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant