Skip to content
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

Appstore fixes #1711

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/server-admin-ui/src/views/appstore/Apps/Apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const Apps = function (props) {
props.appStore.installing.forEach(
(app) => (allApps[app.name].installing = true)
)
return Object.values(allApps)
return Object.values(allApps).sort(
(a, b) => new Date(b.updated).getTime() - new Date(a.updated).getTime()
)
}

const handleUpdateAll = () => {
Expand Down
9 changes: 1 addition & 8 deletions packages/server-admin-ui/src/views/appstore/AppsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ const L_WIDTH = 992
const M_WIDTH = 768

class AppsList extends Component {
constructor(props) {
super(props)
this.state = {
installing: {},
}
}

render() {
return (
<Table>
Expand All @@ -36,7 +29,7 @@ class AppsList extends Component {
>
<div>Type</div>
</th>
<th class="text-center">Action</th>
<th className="text-center">Action</th>
</tr>
</thead>
<tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function NameCellRenderer(props) {
<span className="version">
v{props.data.installedVersion || props.data.version}
</span>
&nbsp; ({props.data.updated.substring(0, 10)})
{props.data.updateAvailable && (
<>
<span className="update__arrow">
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/appstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ module.exports = function (app) {
description: plugin.package.description,
author: getAuthor(plugin.package),
categories: getCategories(plugin.package),
updated: plugin.package.date,
keywords: getKeywords(plugin.package),
npmUrl: getNpmUrl(plugin),
isPlugin: plugin.package.keywords.some(
Expand Down