From bf6394fc7d609d0a64383627a7e2f527228abcf9 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 17 Oct 2025 12:20:43 +0200 Subject: [PATCH] feat(debug): add version and git commit footer to /debug page --- src/components/Debug.tsx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/components/Debug.tsx b/src/components/Debug.tsx index 826e5520..f3ec4ef5 100644 --- a/src/components/Debug.tsx +++ b/src/components/Debug.tsx @@ -1,3 +1,4 @@ +/* global __APP_VERSION__, __GIT_COMMIT__, __GIT_COMMIT_URL__, __RELEASE_URL__ */ import React, { useEffect, useMemo, useState } from 'react' import { Hooks } from 'applesauce-react' import { DebugBus, type DebugLogEntry } from '../utils/debugBus' @@ -162,6 +163,30 @@ const Debug: React.FC = () => { + +
+ + {typeof __RELEASE_URL__ !== 'undefined' && __RELEASE_URL__ ? ( + + Version {typeof __APP_VERSION__ !== 'undefined' ? __APP_VERSION__ : 'dev'} + + ) : ( + `Version ${typeof __APP_VERSION__ !== 'undefined' ? __APP_VERSION__ : 'dev'}` + )} + + {typeof __GIT_COMMIT__ !== 'undefined' && __GIT_COMMIT__ ? ( + + {' '}ยท{' '} + {typeof __GIT_COMMIT_URL__ !== 'undefined' && __GIT_COMMIT_URL__ ? ( + + {__GIT_COMMIT__.slice(0, 7)} + + ) : ( + {__GIT_COMMIT__.slice(0, 7)} + )} + + ) : null} +
) }