feat: linkify #NNN references in ChangeLog to Codeberg issues

Closes #472

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas SharedInbox
2026-06-06 21:51:13 +02:00
co-authored by Claude Sonnet 4.6
parent 913f9e8855
commit e22322166c
2 changed files with 27 additions and 1 deletions
+14
View File
@@ -102,4 +102,18 @@ void main() {
expect(find.textContaining('Installed:'), findsNothing);
expect(find.textContaining('initial release'), findsOneWidget);
});
testWidgets('ChangeLogScreen renders #NNN as a tappable link', (
tester,
) async {
const changelog = '* 2024-03-01 fix: resolve crash, see #42\n';
await tester.pumpWidget(
_buildScreen(assets: {'assets/changelog.txt': changelog}),
);
await tester.pumpAndSettle();
// The link text "#42" must be visible in the rendered output.
expect(find.textContaining('#42'), findsOneWidget);
});
}