From e4e49381d8f1c3cf6b73cb63e368008847201f49 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 9 Oct 2026 17:23:52 +0200 Subject: [PATCH] fix(admin): phone GitHub and About links point at the liketrek/TREK repository On the phone, the admin GitHub panel showed "Latest updates from mauriceboe/TREK" and its releases, bug report, feature request and wiki links, as well as the same three links in the settings About section, all went to the old mauriceboe/TREK repository. The desktop panels already use liketrek/TREK. Cause: the phone screens kept the repository name from before the move to the liketrek organisation. Fix: MAdminGitHubPanel and MSettingsAbout now use liketrek/TREK, like GitHubPanel and AboutTab. No other user facing mauriceboe/TREK link is left in the client (the Ko-fi, Buy Me a Coffee and Docker image names are unchanged and identical on both sides). Red test: FE-MOB-SET-ABOUT-001 (new, MSettingsAbout.test.tsx) failed with "Expected the element to have attribute: href= https://github.com/liketrek/TREK/issues/new?template=bug_report.yml". Changed assertions in tests/unit/mobile/admin/MAdminGitHubPanel.test.tsx: - FE-MOB-AGH-001: wiki href was https://github.com/mauriceboe/TREK/wiki, now https://github.com/liketrek/TREK/wiki - FE-MOB-AGH-004: subtitle was "Latest updates from mauriceboe/TREK", now "Latest updates from liketrek/TREK"; GitHub link was https://github.com/mauriceboe/TREK/releases, now https://github.com/liketrek/TREK/releases --- .../screens/admin/MAdminGitHubPanel.tsx | 8 ++++---- .../screens/settings/MSettingsAbout.tsx | 6 +++--- .../mobile/admin/MAdminGitHubPanel.test.tsx | 6 +++--- .../mobile/settings/MSettingsAbout.test.tsx | 20 +++++++++++++++++++ 4 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 client/tests/unit/mobile/settings/MSettingsAbout.test.tsx diff --git a/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx b/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx index ba520f156..dab18b102 100644 --- a/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx +++ b/client/src/mobile/screens/admin/MAdminGitHubPanel.tsx @@ -5,7 +5,7 @@ import { useGithubReleases } from '../../../components/Admin/useGithubReleases' import { escapeReleaseHtml as escapeHtml, parseReleaseNotes } from '../../../utils/releaseNotes' import { MAdminButton, MAdminCard } from './MAdminUi' -const REPO = 'mauriceboe/TREK' +const REPO = 'liketrek/TREK' // Support / community link cards (design: brand-tinted icon tile + title/sub). // Brand hex stays as content identity; every surface/border uses --m-* tokens. @@ -113,9 +113,9 @@ export default function MAdminGitHubPanel({ isPrerelease = false }: { isPrerelea { href: 'https://ko-fi.com/mauriceboe', color: '#ff5e5b', icon: , title: 'Ko-fi', sub: t('admin.github.support') }, { href: 'https://buymeacoffee.com/mauriceboe', color: '#ffdd00', icon: , title: 'Buy Me a Coffee', sub: t('admin.github.support') }, { href: 'https://discord.gg/NhZBDSd4qW', color: '#5865F2', icon: discordIcon, title: 'Discord', sub: 'Join the community' }, - { href: 'https://github.com/mauriceboe/TREK/issues/new?template=bug_report.yml', color: '#ef4444', icon: , title: t('settings.about.reportBug'), sub: t('settings.about.reportBugHint') }, - { href: 'https://github.com/mauriceboe/TREK/discussions/new?category=feature-requests', color: '#f59e0b', icon: , title: t('settings.about.featureRequest'), sub: t('settings.about.featureRequestHint') }, - { href: 'https://github.com/mauriceboe/TREK/wiki', color: '#6366f1', icon: , title: 'Wiki', sub: t('settings.about.wikiHint') }, + { href: 'https://github.com/liketrek/TREK/issues/new?template=bug_report.yml', color: '#ef4444', icon: , title: t('settings.about.reportBug'), sub: t('settings.about.reportBugHint') }, + { href: 'https://github.com/liketrek/TREK/discussions/new?category=feature-requests', color: '#f59e0b', icon: , title: t('settings.about.featureRequest'), sub: t('settings.about.featureRequestHint') }, + { href: 'https://github.com/liketrek/TREK/wiki', color: '#6366f1', icon: , title: 'Wiki', sub: t('settings.about.wikiHint') }, ] return ( diff --git a/client/src/mobile/screens/settings/MSettingsAbout.tsx b/client/src/mobile/screens/settings/MSettingsAbout.tsx index da69888d7..a6f2a983e 100644 --- a/client/src/mobile/screens/settings/MSettingsAbout.tsx +++ b/client/src/mobile/screens/settings/MSettingsAbout.tsx @@ -18,9 +18,9 @@ export default function MSettingsAbout({ appVersion }: { appVersion: string }) { { href: 'https://ko-fi.com/mauriceboe', icon: Coffee, title: 'Ko-fi', sub: t('admin.github.support') }, { href: 'https://buymeacoffee.com/mauriceboe', icon: Heart, title: 'Buy Me a Coffee', sub: t('admin.github.support') }, { href: 'https://discord.gg/NhZBDSd4qW', icon: Heart, title: 'Discord', sub: 'Join the community' }, - { href: 'https://github.com/mauriceboe/TREK/issues/new?template=bug_report.yml', icon: Bug, title: t('settings.about.reportBug'), sub: t('settings.about.reportBugHint') }, - { href: 'https://github.com/mauriceboe/TREK/discussions/new?category=feature-requests', icon: Lightbulb, title: t('settings.about.featureRequest'), sub: t('settings.about.featureRequestHint') }, - { href: 'https://github.com/mauriceboe/TREK/wiki', icon: BookOpen, title: 'Wiki', sub: t('settings.about.wikiHint') }, + { href: 'https://github.com/liketrek/TREK/issues/new?template=bug_report.yml', icon: Bug, title: t('settings.about.reportBug'), sub: t('settings.about.reportBugHint') }, + { href: 'https://github.com/liketrek/TREK/discussions/new?category=feature-requests', icon: Lightbulb, title: t('settings.about.featureRequest'), sub: t('settings.about.featureRequestHint') }, + { href: 'https://github.com/liketrek/TREK/wiki', icon: BookOpen, title: 'Wiki', sub: t('settings.about.wikiHint') }, ] return ( diff --git a/client/tests/unit/mobile/admin/MAdminGitHubPanel.test.tsx b/client/tests/unit/mobile/admin/MAdminGitHubPanel.test.tsx index 706e677a1..39c44c492 100644 --- a/client/tests/unit/mobile/admin/MAdminGitHubPanel.test.tsx +++ b/client/tests/unit/mobile/admin/MAdminGitHubPanel.test.tsx @@ -69,7 +69,7 @@ describe('MAdminGitHubPanel', () => { expect(discord).toHaveAttribute('rel', 'noopener noreferrer'); expect(screen.getByText('Report a Bug')).toBeInTheDocument(); expect(screen.getByText('Feature Request')).toBeInTheDocument(); - expect(screen.getByText('Wiki').closest('a')).toHaveAttribute('href', 'https://github.com/mauriceboe/TREK/wiki'); + expect(screen.getByText('Wiki').closest('a')).toHaveAttribute('href', 'https://github.com/liketrek/TREK/wiki'); expect(screen.getAllByText('Helps me keep building TREK')).toHaveLength(2); }); @@ -102,10 +102,10 @@ describe('MAdminGitHubPanel', () => { await renderPanel(); expect(screen.getByText('Release History')).toBeInTheDocument(); - expect(screen.getByText('Latest updates from mauriceboe/TREK')).toBeInTheDocument(); + expect(screen.getByText('Latest updates from liketrek/TREK')).toBeInTheDocument(); expect(screen.getByText('GitHub').closest('a')).toHaveAttribute( 'href', - 'https://github.com/mauriceboe/TREK/releases', + 'https://github.com/liketrek/TREK/releases', ); }); diff --git a/client/tests/unit/mobile/settings/MSettingsAbout.test.tsx b/client/tests/unit/mobile/settings/MSettingsAbout.test.tsx new file mode 100644 index 000000000..d9c115a83 --- /dev/null +++ b/client/tests/unit/mobile/settings/MSettingsAbout.test.tsx @@ -0,0 +1,20 @@ +// FE-MOB-SET-ABOUT-001 +import { describe, expect, it } from 'vitest'; +import MSettingsAbout from '../../../../src/mobile/screens/settings/MSettingsAbout'; +import { render, screen } from '../../../helpers/render'; + +describe('MSettingsAbout', () => { + it('FE-MOB-SET-ABOUT-001: points the bug, feature request and wiki links at the liketrek/TREK repository', () => { + render(); + + expect(screen.getByText('Report a Bug').closest('a')).toHaveAttribute( + 'href', + 'https://github.com/liketrek/TREK/issues/new?template=bug_report.yml' + ); + expect(screen.getByText('Feature Request').closest('a')).toHaveAttribute( + 'href', + 'https://github.com/liketrek/TREK/discussions/new?category=feature-requests' + ); + expect(screen.getByText('Wiki').closest('a')).toHaveAttribute('href', 'https://github.com/liketrek/TREK/wiki'); + }); +});