From 7e7f01776896eed1704278aa03751a92cd7c8c82 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 20 Feb 2026 00:46:12 +1100 Subject: [PATCH] feat(about): update tagline to "Squawk to yer mateys!" and display dynamic version number --- src/app/features/settings/about/About.tsx | 2 +- src/app/pages/client/WelcomePage.tsx | 26 +++++++++++++++-------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/app/features/settings/about/About.tsx b/src/app/features/settings/about/About.tsx index dcacf1b..a5f2209 100644 --- a/src/app/features/settings/about/About.tsx +++ b/src/app/features/settings/about/About.tsx @@ -54,7 +54,7 @@ export function About({ requestClose }: AboutProps) { Paarrot v{version} - Yet another matrix client. + Squawk to yer mateys! diff --git a/src/app/pages/client/WelcomePage.tsx b/src/app/pages/client/WelcomePage.tsx index cf401ae..8f731b0 100644 --- a/src/app/pages/client/WelcomePage.tsx +++ b/src/app/pages/client/WelcomePage.tsx @@ -1,9 +1,15 @@ -import React from 'react'; +import React, { useEffect, useState } from 'react'; import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds'; import { Page, PageHero, PageHeroSection } from '../../components/page'; import PaarrotSVG from '../../../../public/res/svg/paarrot.svg'; +import { getVersion } from '@tauri-apps/api/app'; export function WelcomePage() { + const [version, setVersion] = useState(''); + + useEffect(() => { + getVersion().then(setVersion).catch(() => setVersion('')); + }, []); return ( - Yet another matrix client.{' '} - - v4.10.2 - + Squawk to yer mateys!{' '} + {version && ( + + v{version} + + )} } >