Improve version display to show Up to Date status and update roadmap

This commit is contained in:
Rbanh 2025-03-30 19:47:19 -04:00
parent 975258d70e
commit ae885f3780
3 changed files with 23 additions and 3 deletions

View File

@ -69,6 +69,7 @@
- [x] Show update progress with loading indicators - [x] Show update progress with loading indicators
- [x] Handle file access errors gracefully - [x] Handle file access errors gracefully
- [x] Ensure correct version numbering in filenames - [x] Ensure correct version numbering in filenames
- [x] Display up-to-date version information for all plugins
- [ ] Present multiple potential matches for ambiguous plugins - [ ] Present multiple potential matches for ambiguous plugins
- [ ] Make version numbers clickable links to repository sources - [ ] Make version numbers clickable links to repository sources
- [ ] Allow user selection of correct plugin match when multiple are found - [ ] Allow user selection of correct plugin match when multiple are found

View File

@ -566,6 +566,18 @@ button {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.up-to-date-badge {
color: var(--success-color, #4caf50);
font-weight: bold;
margin-left: 0.5rem;
}
.up-to-date-text {
color: var(--success-color, #4caf50);
font-size: 0.85em;
margin-left: 0.4rem;
}
.bulk-update-progress { .bulk-update-progress {
margin-top: 0.5rem; margin-top: 0.5rem;
font-size: 0.9rem; font-size: 0.9rem;

View File

@ -127,7 +127,12 @@ function PluginDetails({ plugin, onClose }: PluginDetailsProps) {
<div className="plugin-details-content"> <div className="plugin-details-content">
<button className="close-button" onClick={onClose}>&times;</button> <button className="close-button" onClick={onClose}>&times;</button>
<h2>{plugin.name}</h2> <h2>{plugin.name}</h2>
<div className="plugin-version-display">Version: {plugin.version} {plugin.latest_version && plugin.has_update && <span className="update-available-badge">(Update available: {plugin.latest_version})</span>}</div> <div className="plugin-version-display">Version: {plugin.version} {plugin.latest_version && (
plugin.has_update
? <span className="update-available-badge">(Update available: {plugin.latest_version})</span>
: <span className="up-to-date-badge">(Up to Date: {plugin.latest_version})</span>
)}
</div>
{plugin.description && ( {plugin.description && (
<div className="plugin-description">{plugin.description}</div> <div className="plugin-description">{plugin.description}</div>
@ -821,10 +826,12 @@ function App() {
<div className="plugin-latest-version"> <div className="plugin-latest-version">
{plugin.repository_url && plugin.latest_version ? ( {plugin.repository_url && plugin.latest_version ? (
<a href={plugin.repository_url} target="_blank" rel="noopener noreferrer" className="version-link"> <a href={plugin.repository_url} target="_blank" rel="noopener noreferrer" className="version-link">
{plugin.latest_version} {plugin.latest_version} {!plugin.has_update && <span className="up-to-date-text">(Up to Date)</span>}
</a> </a>
) : ( ) : (
plugin.latest_version || 'N/A' plugin.latest_version
? <>{plugin.latest_version} {!plugin.has_update && <span className="up-to-date-text">(Up to Date)</span>}</>
: 'N/A'
)} )}
</div> </div>
<div className="plugin-actions"> <div className="plugin-actions">