Open the run's artifact from notifications

Phone and browser notifications that carry an artifact open it full
screen in the artifact viewer, with an Open run action and the preview as
expanded text; pipelines://artifact deep links route to the viewer.
This commit is contained in:
2026-11-12 18:56:26 +00:00
parent d42d7a3534
commit 767643d991
17 changed files with 487 additions and 35 deletions
+7
View File
@@ -2,6 +2,13 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/application/app_route.dart';
void main() {
test('parses artifact deep links and preserves escaped path', () {
final route = AppRoute.parse(
'pipelines://artifact/42/3/reports%2Ffinal.md',
);
expect(route, AppRoute.artifact(42, 3, 'reports/final.md'));
expect(route.path, '/artifact/42/3/reports%2Ffinal.md');
});
test('parses each destination, detail and stage pane', () {
expect(AppRoute.parse('/pipelines'), AppRoute.pipelines);
expect(AppRoute.parse('/pipelines/5'), AppRoute.pipeline(5));