-
-
Couldn't load subscription status.
- Fork 40
Add sticky extensions info banner #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, I'll just have to see what it looks like before merging it. I'll probably have to make some fixes around the ctrl-click text on Mac
|
@copilot update stickyInfoMsg (except italian) to remove "unstick" |
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
| /* Separate pinned extensions from the rest. Don't apply if they're *all* pinned */ | ||
| .ext.pinned:nth-last-child(1 of .pinned).ext:not(:last-child) { | ||
| border-bottom: 5px solid var(--pinned-color); | ||
| border-bottom-width: 5px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <!-- eslint-disable-next-line svelte/no-at-html-tags -- Static --> | ||
| {@html replaceModifierIfMac(getI18N('stickyInfoMsg'), '')} | ||
| <a class="hide-action" href="#hide" on:click={hideStickyInfoMessage} | ||
| >{getI18N('hideInfoMsg')}</a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.




Summary
Adds a new informational banner that informs users about the Ctrl+Click feature to pin extensions to the top of the list. The banner is shown once on first load and can be dismissed permanently.
Changes
Banner Implementation
showStickyInfoMessagestate variable that checks localStorage for thesticky-info-messagekeyhideStickyInfoMessage()function to dismiss the banner and persist the preferenceTranslations
Added the
stickyInfoMsgtranslation key to all 16 supported locales:Message simplified to focus on the primary action (removed "unstick" from 14 locales, Italian kept as-is).
Behavior
sticky-info-messageis not in localStorageScreenshot
The banner appears at the top of the extension popup with a simplified message focusing on the primary action.
Technical Notes
.noticeand.hide-actionCSS classeschrome.i18n.getMessage()for internationalizationreplaceModifierIfMacsince it doesn't support multi-character keys like "Click"Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.