feat(screenshots): CC0/PD example photos for all visible varieties (+CREDITS)
13
apps/app_seeds/test/screenshots/fixtures/CREDITS.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Example inventory photos — credits
|
||||
|
||||
CC0 / public-domain images used as example variety photos in the screenshot
|
||||
harness only (to generate store/landing screenshots). They are **not** bundled
|
||||
in the app. Square-cropped and re-compressed from the originals below.
|
||||
|
||||
| Fixture | Subject | Author | License | Source |
|
||||
|---|---|---|---|---|
|
||||
| maize.jpg | Red & white flint corn | vjrj (Tane project) | own photo | — |
|
||||
| buckwheat.jpg | Fagopyrum esculentum (buckwheat) | Daderot | CC0 | https://commons.wikimedia.org/wiki/File:Fagopyrum_esculentum_-_Osaka_Museum_of_Natural_History_-_DSC07737.JPG |
|
||||
| tomato.jpg | Ripe red tomatoes | Glenda Green | CC0 | https://commons.wikimedia.org/wiki/File:Ripe_Red_Tomatoes.jpg |
|
||||
| pepper.jpg | Capsicum annuum (Guajillo), dried | ZooFari | Public domain | https://commons.wikimedia.org/wiki/File:Capsicum_annuum_(Guajillo)_-_dried.jpg |
|
||||
| raspberry.jpg | Rubus idaeus (raspberry) | Vassil | Public domain | https://commons.wikimedia.org/wiki/File:Framboise_Margy_3.jpg |
|
||||
BIN
apps/app_seeds/test/screenshots/fixtures/buckwheat.jpg
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
apps/app_seeds/test/screenshots/fixtures/pepper.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
apps/app_seeds/test/screenshots/fixtures/raspberry.jpg
Normal file
|
After Width: | Height: | Size: 143 KiB |
BIN
apps/app_seeds/test/screenshots/fixtures/tomato.jpg
Normal file
|
After Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 350 KiB |
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 207 KiB After Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 129 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 351 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 351 KiB |
|
|
@ -168,13 +168,17 @@ Future<SeededInventory> seedShowcase(
|
|||
return id;
|
||||
}
|
||||
|
||||
// A real photo of red & white flint corn is the hero variety, so the detail
|
||||
// shot shows a genuine seed photo. Loaded from the committed test fixture
|
||||
// (CWD is the package root under `flutter test`).
|
||||
final maizePhoto = await File(
|
||||
'test/screenshots/fixtures/maize.jpg',
|
||||
).readAsBytes();
|
||||
final maize = await add('Painted flint corn', 'Poaceae', photo: maizePhoto);
|
||||
// Example photos are CC0 / public domain (see fixtures/CREDITS.md), except the
|
||||
// maize which is vjrj's own; loaded from the committed fixtures (CWD is the
|
||||
// package root under `flutter test`). The maize is the hero for the detail shot.
|
||||
Future<Uint8List> photo(String name) =>
|
||||
File('test/screenshots/fixtures/$name.jpg').readAsBytes();
|
||||
|
||||
final maize = await add(
|
||||
'Painted flint corn',
|
||||
'Poaceae',
|
||||
photo: await photo('maize'),
|
||||
);
|
||||
await repo.addLot(
|
||||
varietyId: maize,
|
||||
harvestYear: 2024,
|
||||
|
|
@ -190,12 +194,12 @@ Future<SeededInventory> seedShowcase(
|
|||
offerStatus: OfferStatus.exchange,
|
||||
);
|
||||
|
||||
// The rest sit in families that sort at/after Poaceae, so the maize (and its
|
||||
// photo) stays the first, top-of-list group in the inventory shot.
|
||||
await add('Common buckwheat', 'Polygonaceae');
|
||||
await add('Alpine strawberry', 'Rosaceae');
|
||||
await add('Cherry tomato', 'Solanaceae');
|
||||
await add('Sweet pepper', 'Solanaceae');
|
||||
// The rest sit in families that sort at/after Poaceae, so the maize stays the
|
||||
// first, top-of-list group in the inventory shot. Each carries a CC0/PD photo.
|
||||
await add('Common buckwheat', 'Polygonaceae', photo: await photo('buckwheat'));
|
||||
await add('Wild raspberry', 'Rosaceae', photo: await photo('raspberry'));
|
||||
await add('Slicing tomato', 'Solanaceae', photo: await photo('tomato'));
|
||||
await add('Guajillo chilli', 'Solanaceae', photo: await photo('pepper'));
|
||||
|
||||
return SeededInventory(maize);
|
||||
}
|
||||
|
|
|
|||