Skip to content

Commit

Permalink
feat: adding more app info in store (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgkawell authored Jan 22, 2025
1 parent e0f4a92 commit 11d7b38
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion services/platform/server/web-client/src/pages/store/Store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
Modal,
Flex,
notification,
Tag,
} from 'antd';
import {
AppstoreAddOutlined,
Expand All @@ -48,6 +49,12 @@ const help = [
},
];

const statusMap: Record<string, string | undefined> = {
alpha: 'red',
beta: 'orange',
stable: 'green',
};

export default function AppStorePage() {
const [api, contextHolder] = notification.useNotification();
const { event } = useEvents() as ProviderValue;
Expand Down Expand Up @@ -242,7 +249,20 @@ function AppItem(props: AppItemProps) {
</>
)}
>
<img src={app.icon} alt="" />
<Flex gap="middle" vertical={false}>
<img src={app.icon} alt="" />
<Flex gap="small" vertical justify="center" align="center">
<Tag color="grey">{app.appVersion}</Tag>
<Tag color={statusMap[app.annotations['status']]}>
{app.annotations['status']}
</Tag>
</Flex>
<Flex gap="small" vertical justify="center" align="center">
<Button onClick={() => window.open(app.home, '_blank')}>
Website
</Button>
</Flex>
</Flex>
<div
dangerouslySetInnerHTML={{
__html: marked.parse(app.readme).toString(),
Expand Down

0 comments on commit 11d7b38

Please sign in to comment.