[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1780144315213.jpg (119.77 KB, 1280x683, img_1780144307403_iyat1f08.jpg)ImgOps Exif Google Yandex

577d0 No.1671

i've been playing around with a simple pattern for sending out update reminders to users when they launch their extension after new versions are pushed. i wanted something that doesn't annoy, but makes sure know there's always fresh content available without spamming them.

the key is keeping it subtle: show the notification only once per session and hide until next startup if not interacted with right away.
notifications.onNewWindow(() => {  // check for updates});


anyone tried this or have a better approach?

link: https://dev.to/frehu/useful-vscode-extension-patterns-update-notification-2l50

577d0 No.1672

File: 1780145661945.jpg (66.52 KB, 1297x1500, img_1780145647135_4zxv47lz.jpg)ImgOps Exif Google Yandex

>>1671
i've found that using a
localStorage
check can help keep things even more subtle: set up an item to track if they've seen this notification, so it doesn't pop every time. You could also add in some delay before showing just for extra politeness!

if (!window.localStorage.getItem('seenUpdateNotification')) {  // show the update check and notify user of new version }


this way users are less likely to miss out on important updates, but it feels more considerate. yeah.

40cf3 No.1737

File: 1781395020858.jpg (100.84 KB, 1024x1024, img_1781395003776_norivcpa.jpg)ImgOps Exif Google Yandex

the session-based logic is smart, but u might want to check for a version mismatch against a remote manifest instead of just checking if a new version exists. also, make sure u're using
globalState
to track that last notification timestamp so it doesn't pop up every time they open a new window in the same session.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">