From 1009f19bad1559db8e1973e7463f37b2d0fe4048 Mon Sep 17 00:00:00 2001 From: Ahmi Date: Sun, 15 Nov 2026 18:51:15 -0600 Subject: [PATCH 1/2] Add the About signature and source link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show "Hope this helps" - Ahmi in the About dialog and in Settings → About, with the app name, the version read from the running app, and a link to the GitHub repo. Translate the new Source code label in every locale catalog. Leave the signature itself untranslated. End the README with the same line. --- README.md | 2 + desktop/src/aboutLine.test.ts | 38 ++++++++++++++++++ desktop/src/aboutLine.tsx | 39 +++++++++++++++++++ desktop/src/components/AboutDialog.tsx | 5 ++- .../src/components/settings/sections_rest.tsx | 3 ++ desktop/src/i18n/en.ts | 1 + desktop/src/i18n/gap/de.ts | 1 + desktop/src/i18n/gap/es.ts | 1 + desktop/src/i18n/gap/fr.ts | 1 + desktop/src/i18n/gap/it.ts | 1 + desktop/src/i18n/gap/ja.ts | 1 + desktop/src/i18n/gap/ko.ts | 1 + desktop/src/i18n/gap/pl.ts | 1 + desktop/src/i18n/gap/pt.ts | 1 + desktop/src/i18n/gap/ru.ts | 1 + desktop/src/i18n/gap/zhHans.ts | 1 + 16 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 desktop/src/aboutLine.test.ts create mode 100644 desktop/src/aboutLine.tsx diff --git a/README.md b/README.md index 2f907e69..c4c56561 100644 --- a/README.md +++ b/README.md @@ -129,3 +129,5 @@ Contributing: [CONTRIBUTING.md](https://github.com/AhmiDarrow/RemedyAI/blob/mast Free to use, modify, and redistribute, including commercially. Use is at your own risk; see [TERMS](https://github.com/AhmiDarrow/RemedyAI/blob/master/docs/TERMS.md). Third-party notices: `desktop/public/THIRD_PARTY_NOTICES.txt`. Copyright © 2025–2026 **Ahmi Darrow**. + +"Hope this helps" - Ahmi diff --git a/desktop/src/aboutLine.test.ts b/desktop/src/aboutLine.test.ts new file mode 100644 index 00000000..878ad3e3 --- /dev/null +++ b/desktop/src/aboutLine.test.ts @@ -0,0 +1,38 @@ +import { readFileSync } from 'node:fs' +import { dirname, join } from 'node:path' +import { fileURLToPath } from 'node:url' +import { describe, expect, it } from 'vitest' +import { AHMI_SIGNATURE, REMEDY_SOURCE_URL } from './aboutLine' +import { EN } from './i18n/en' +import { GAP } from './i18n/gap' + +const here = dirname(fileURLToPath(import.meta.url)) +const root = join(here, '..', '..') + +describe('Ahmi about line', () => { + it('keeps the signature exact', () => { + expect(AHMI_SIGNATURE).toBe('"Hope this helps" - Ahmi') + expect(REMEDY_SOURCE_URL).toBe('https://github.com/AhmiDarrow/RemedyAI') + }) + + it('shows the signature and source link in About and at the end of the README', () => { + const dialog = readFileSync(join(here, 'components/AboutDialog.tsx'), 'utf8') + const settings = readFileSync(join(here, 'components/settings/sections_rest.tsx'), 'utf8') + const readme = readFileSync(join(root, 'README.md'), 'utf8') + expect(dialog).toContain('AhmiSignature') + expect(dialog).toContain('AboutSourceLink') + expect(settings).toContain('AhmiSignature') + expect(settings).toContain('AboutSourceLink') + expect(readme.trimEnd().endsWith(AHMI_SIGNATURE)).toBe(true) + }) + + it('translates the Source code label and never translates the signature', () => { + expect(EN['about.source']).toBe('Source code') + for (const [id, catalog] of Object.entries(GAP)) { + expect(catalog['about.source']?.trim().length, id).toBeGreaterThan(0) + expect(catalog['about.source'], id).not.toBe(EN['about.source']) + expect(Object.values(catalog).includes(AHMI_SIGNATURE), id).toBe(false) + } + expect(Object.values(EN).includes(AHMI_SIGNATURE)).toBe(false) + }) +}) diff --git a/desktop/src/aboutLine.tsx b/desktop/src/aboutLine.tsx new file mode 100644 index 00000000..a6787fad --- /dev/null +++ b/desktop/src/aboutLine.tsx @@ -0,0 +1,39 @@ +/** Standing About line. Identical in every language — do not translate. */ +import { openExternalUrl } from './api/auth' +import { useI18n } from './i18n' + +export const AHMI_SIGNATURE = '"Hope this helps" - Ahmi' +export const REMEDY_SOURCE_URL = 'https://github.com/AhmiDarrow/RemedyAI' + +export function AhmiSignature({ className }: { className?: string }) { + return ( +
+ {AHMI_SIGNATURE} +
+ ) +} + +/** Translated "Source code" label plus the repo link. The URL is not translated. */ +export function AboutSourceLink({ className }: { className?: string }) { + const { t } = useI18n() + return ( +
+ {t('about.source')}{' '} + +
+ ) +} diff --git a/desktop/src/components/AboutDialog.tsx b/desktop/src/components/AboutDialog.tsx index 95b8c3e5..47b88419 100644 --- a/desktop/src/components/AboutDialog.tsx +++ b/desktop/src/components/AboutDialog.tsx @@ -1,6 +1,7 @@ /** About Remedy dialog — extracted from App.tsx. */ import { useEffect } from 'react' +import { AboutSourceLink, AhmiSignature } from '../aboutLine' import { browserStackHold } from '../utils/browserStack' import { useDialogFocus } from '../hooks/useDialogFocus' import { useI18n } from '../i18n' @@ -112,8 +113,9 @@ export function AboutDialog({ {t('about.fromCreator')} {t('about.creator')} + -
+
{t('about.version')}{' '} @@ -123,6 +125,7 @@ export function AboutDialog({
{userName ?
{t('about.signedIn', { userName })}
: null}
+
@@ -488,6 +490,7 @@ export function SettingsSections_rest(p: SettingsFormProps): ReactNode { Config ~/.remedy/config.toml
+
{onOpenHelp && (