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'); + }); +});