Skip to content

fix: prevent Learn More from suppressing sunset toast and fix popup clipping#549

Merged
ashishrp-aws merged 4 commits intoaws:mainfrom
Will-ShaoHua:fix/sunset-notification-ux
Apr 29, 2026
Merged

fix: prevent Learn More from suppressing sunset toast and fix popup clipping#549
ashishrp-aws merged 4 commits intoaws:mainfrom
Will-ShaoHua:fix/sunset-notification-ux

Conversation

@Will-ShaoHua
Copy link
Copy Markdown
Contributor

@Will-ShaoHua Will-ShaoHua commented Apr 29, 2026

Summary

Two fixes for thesunset notification toast (PR #545):

  1. Learn More no longer suppresses future notifications — clicking "Learn More" previously called dismiss() which persisted the kiroSunsetNotificationDismissed key. Now it only opens the URL. The notification will reappear on next Eclipse launch until the user explicitly clicks "Dismiss".

  2. Fix notification popup height clipping — the button row (Learn More / Dismiss) was cut off because initializeBounds() computed height with unconstrained width (computeSize(SWT.DEFAULT, SWT.DEFAULT)). Since the popup is capped at MAX_WIDTH=400, text wraps and the actual height is taller than the unconstrained estimate. Now computes height with the constrained width so the layout engine accounts for wrapping + buttons.

Testing

  • Built and installed via dropins
  • Verified notification shows on every Eclipse launch until Dismiss is clicked
  • Verified Learn More opens the correct URL without suppressing future appearances
  • Verified buttons are fully visible (no clipping)

Add upload-artifact steps to the Maven build workflow so the plugin
JAR and p2 update site ZIP are downloadable from the Actions tab on
every PR and main push. Retained for 30 days.
…and fix popup clipping

- Learn More now opens the URL and closes the popup without persisting
  the dismissed key, so the notification reappears on next launch
- Only the explicit Dismiss button suppresses future appearances
- Fix notification popup height calculation to use width-constrained
  computeSize so wrapped text and button row are not clipped
- Learn More now only opens the URL without closing the popup
- Users can click Learn More, read the page, then come back and Dismiss
@Will-ShaoHua Will-ShaoHua changed the title fix(notifications): prevent Learn More from suppressing sunset toast and fix popup clipping fix: prevent Learn More from suppressing sunset toast and fix popup clipping Apr 29, 2026
@ashishrp-aws ashishrp-aws merged commit 7b12d46 into aws:main Apr 29, 2026
1 check passed
@Will-ShaoHua Will-ShaoHua deleted the fix/sunset-notification-ux branch April 29, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants