Merge main

This commit is contained in:
2026-11-02 00:36:49 +00:00
33 changed files with 2239 additions and 378 deletions
@@ -0,0 +1,18 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/features/artifacts/ui/artifact_thumbnail_image.dart';
void main() {
test('decodes a large picture just big enough to cover its box', () {
// Landscape into a square: the height binds, the width overflows.
final wide = coverTargetSize(4000, 2000, width: 200, height: 200);
expect((wide.width, wide.height), (400, 200));
// Portrait into a 4:3 tile: the width binds.
final tall = coverTargetSize(1000, 3000, width: 400, height: 300);
expect((tall.width, tall.height), (400, 1200));
});
test('never upscales a picture smaller than its box', () {
final small = coverTargetSize(100, 80, width: 200, height: 200);
expect((small.width, small.height), (null, null));
});
}