Skip to content

Commit 9735e1c

Browse files
feat: add StatusBar component to display connection status and app version
1 parent a73027d commit 9735e1c

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "api-documenter",
3-
"version": "1.0.21",
3+
"version": "1.0.22",
44
"description": "Self-hosted Postman alternative with folder-level RBAC and offline-first documentation",
55
"main": "./out/main/index.js",
66
"author": "Praneeth Kulukuri",

src/renderer/src/components/StatusBar.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { useAppStore } from '@/stores/appStore'
2+
import { useEffect, useState } from 'react'
23

34
export function StatusBar() {
45
const { setShowCookieManager, isOnline, proxyConnection } = useAppStore()
6+
const [version, setVersion] = useState<string>('')
7+
8+
useEffect(() => {
9+
(window as any).electronAPI.getAppVersion().then(setVersion)
10+
}, [])
511

612
return (
713
<div style={{
@@ -59,7 +65,7 @@ export function StatusBar() {
5965
>
6066
Cookies
6167
</button>
62-
<span style={{ opacity: 0.5 }}>v1.0.21</span>
68+
<span style={{ opacity: 0.5 }}>{version}</span>
6369
</div>
6470
</div>
6571
)

0 commit comments

Comments
 (0)