Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

feat(ui): show the app's version beside Settings in the sidebar

Luis Ortizc3f1d20beb92
diff --git a/packages/ui/src/navigation/components/AppFrame.tsx b/packages/ui/src/navigation/components/AppFrame.tsx
index 9e31ab5..458a696 100644
--- a/packages/ui/src/navigation/components/AppFrame.tsx
+++ b/packages/ui/src/navigation/components/AppFrame.tsx
@@ -9,6 +9,7 @@ interface AppFrameProps {
onStartCapture?: () => void;
onSettings?: () => void;
settingsExternal?: boolean;
+ version?: string;
guideActions?: ReactNode;
children: ReactNode;
}
@@ -18,6 +19,7 @@ export function AppFrame({
onStartCapture,
onSettings,
settingsExternal,
+ version,
guideActions,
children,
}: AppFrameProps) {
@@ -31,6 +33,7 @@ export function AppFrame({
onStartCapture={onStartCapture}
onSettings={onSettings}
settingsExternal={settingsExternal}
+ version={version}
/>
<div className="flex-1 min-w-0 flex flex-col">
<TopBar route={route} guideActions={guideActions} />
diff --git a/packages/ui/src/navigation/components/Sidebar.tsx b/packages/ui/src/navigation/components/Sidebar.tsx
index 7b7a9c6..4256f99 100644
--- a/packages/ui/src/navigation/components/Sidebar.tsx
+++ b/packages/ui/src/navigation/components/Sidebar.tsx
@@ -12,6 +12,7 @@ interface SidebarProps {
onStartCapture?: () => void;
onSettings?: () => void;
settingsExternal?: boolean;
+ version?: string;
}
const navItems = [
@@ -20,7 +21,15 @@ const navItems = [
{ key: 'trash' as const, labelKey: 'fullview_trash' as const, icon: Trash2 },
];
-export function Sidebar({ route, collapsed, onToggle, onStartCapture, onSettings, settingsExternal }: SidebarProps) {
+export function Sidebar({
+ route,
+ collapsed,
+ onToggle,
+ onStartCapture,
+ onSettings,
+ settingsExternal,
+ version,
+}: SidebarProps) {
const counts = useFullview((s) => s.counts);
const row = collapsed ? 'justify-center w-9 mx-auto' : 'gap-2.5 px-2.5';
const toggleLabel = i18n.t(collapsed ? 'fullview_expandSidebar' : 'fullview_collapseSidebar');
@@ -99,6 +108,7 @@ export function Sidebar({ route, collapsed, onToggle, onStartCapture, onSettings
{!collapsed && (
<>
<span className="flex-1 text-left">{settingsLabel}</span>
+ {version && <span className="text-[11px] font-medium text-muted-foreground">{version}</span>}
{settingsExternal && <ExternalLink size={12} className="text-muted-foreground" />}
</>
)}