Add outdated version check to options page and bug report form#9068
Conversation
Co-authored-by: fregante <[email protected]>
|
@copilot make it part of the setVersion() |
Co-authored-by: fregante <[email protected]>
Done in 8c4ed82. Created |
fregante
left a comment
There was a problem hiding this comment.
It looks ok to me as a first pass. We can review the version fetching in a followup PR as described in the original issue.
|
@copilot run Prettier with --write and then add instructions to the repo so that copilot remembers to always run |
Co-authored-by: fregante <[email protected]>
Done in 7247d2b — Prettier reformatted |
|
@SunsetTechuila thoughts on the style and location? This is the version that will most likely appear in the next release. Using badges.io introduces all sorts of issues that I don't want to deal with in a release for Safari. Basically I only release to Safari when the extension doesn't have any glaring bugs. This is because it's actually Sindre that takes care of it about once a month and it's a pain to create releases on the App Store. |
Making changes |
|
Code LGTM. Would be good to get a screenshot for future reference. Can be merged. |
|
|
|
Good enough |


Shows a subtle warning when the installed extension version is older than 20 days (50 for Safari, where releases are monthly), prompting users to check for updates before filing bugs or assuming they have the latest features.
source/helpers/outdated-version.ts— new shared helper returning version age in days if it exceeds the browser-specific threshold (20d Chrome/Firefox, 50d Safari),undefinedotherwise; skips dev builds (0.0.0). Usesmonth - 1when constructing the release date because JavaScript'sDateconstructor takes 0-based months.source/options/version-info.svelte— new<rgh-version>Svelte custom element that renders an<output>showing the current version and, when outdated, an inline "— A newer version may be available" link pointing to the readme's install sectionsource/options.html— replaced the manual<output id="version">+ hidden anchor with<rgh-version>inlinesource/features/rgh-improve-new-issue-form.tsx— prepends aflash-warnbanner to the bug report form when the version is stale, showing exact age in days; selector and style reuse existing patterns from the same fileTest URLs
chrome-extension://<id>/assets/options.html→ Debugging sectionScreenshot
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.