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
This commit is contained in:
Maurice
2026-10-09 17:23:52 +02:00
parent 6c916cc257
commit e4e49381d8
4 changed files with 30 additions and 10 deletions
@@ -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',
);
});
@@ -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(<MSettingsAbout appVersion="1.0.0" />);
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');
});
});