Skip to content

Commit 40af94a

Browse files
jonathanlabclaude
andauthored
feat: Display app version in settings (#223)
Co-authored-by: Claude <[email protected]>
1 parent e9ae1a1 commit 40af94a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

apps/array/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@posthog/array",
3-
"version": "0.11.0",
3+
"version": "0.12.0",
44
"description": "Array - PostHog desktop task manager",
55
"main": ".vite/build/index.js",
66
"versionHash": "dynamic",

apps/array/src/renderer/features/settings/components/SettingsView.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ export function SettingsView() {
7777
queryFn: () => window.electronAPI.settings.getWorktreeLocation(),
7878
});
7979

80+
const { data: appVersion } = useQuery({
81+
queryKey: ["app", "version"],
82+
queryFn: () => window.electronAPI.getAppVersion(),
83+
});
84+
8085
const [localWorktreeLocation, setLocalWorktreeLocation] =
8186
useState<string>("");
8287

@@ -370,6 +375,17 @@ export function SettingsView() {
370375
</Flex>
371376
)}
372377

378+
{appVersion && (
379+
<Flex direction="column" gap="2">
380+
<Text size="1" weight="medium">
381+
Version
382+
</Text>
383+
<Text size="1" color="gray">
384+
{appVersion}
385+
</Text>
386+
</Flex>
387+
)}
388+
373389
{!isAuthenticated && (
374390
<Text size="1" color="gray">
375391
You are not currently authenticated. Please sign in from the

0 commit comments

Comments
 (0)