Commit Graph

10 Commits

Author SHA1 Message Date
Jonas Bark
a8c18633e0 fix(store): show a finished setup on the home board, and stop the corner eating the status bar
Four things the first pass got wrong.

The home screen is the first board on the listing, and it was advertising
an unconfigured app: an amber "3 steps left — Controller & Trainer app
still need setting up" banner, nine controller cards (the set the card
goldens further down need, not a rider's bars), a steering gauge reading
"Calibrating…" where the Click V2's contour belongs, and an "Unlock it
with Zwift" card. The scene now runs with one controller — the Click V2,
which `screenshotMode` already shows as "Controller" — its unlock-mode
choice made and its unlock persisted, the trainer bridged and the
MyWhoosh Link connected. Every one of those buys off a step the home
chain was counting, so the banner is green and the controller card draws
its contour.

The device's corner radius was a fraction of the viewport WIDTH, which is
fine on a portrait phone and wrong on a landscape tablet: 78 logical
units on the 917-wide iPad viewport, where golden_screenshot's status bar
image puts the battery 23 units in from the right. It ate the battery.
Radius and bezel now scale off the viewport's SHORT side — a bezel is a
physical property of the device, not of the orientation it is held in —
and phones and tablets get their own radius fractions, because a real
phone is dramatically rounder than a real tablet. store_board_test.dart
holds every slot's corner arc clear of that status bar corner, with the
insets measured off the package's own topbar assets.

Version to 6.4.2+146, which the boards print in the overview header — the
fixture was still claiming 6.1.0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-15 14:09:42 +02:00
Jonas Bark
b805019ec7 feat(store): refresh the App Store / Play Store screenshot boards
Ports the marketing board BikeOtter moved to, onto the slots and scenes
this project already emits. The board is now written entirely in
fractions of the canvas — the five board slots are 440x956, 414x896,
1280x800, 917x688 and 853x533 logical, so anything in pixels lands
somewhere different on each.

The look:
  * gradient corner to corner instead of straight down, so the board has
    a light side and a dark side rather than a horizon;
  * a white radial glow under everything — the falloff is what makes it
    read, so it holds better than half its strength through the inner
    half before dropping;
  * the device tilted -3 degrees, with the rotation's overhang taken off
    the top so the painted top edge still lands at the band foot (a
    Transform resizes nothing);
  * the bezel as padding rather than a foregroundDecoration border,
    which used to eat 8 logical px of app on every edge and clip the app
    bar at tablet width; plus a drop shadow and a bottom bleed, so the
    board reads as a product shot;
  * one accent phrase per headline in a light cyan from the brand
    family — always the subject of the claim, never the verb;
  * a 24-degree hue ramp across the listing, so six boards read as a
    series instead of one image repeated.

Marketing copy and the brand style move to test/store_copy.dart, and the
slot table to custom_frame.dart, so the new board tests can read both
without booting the app. Two French headlines were shortened to fit the
character cap.

test/store_board_test.dart asserts the composition arithmetically on
every slot — the goldens are generated on demand and the suite that
writes them is tagged out of a normal run, so nothing else looks at the
layout, and its failure mode is silent.

Note: regenerating also picked up app-content drift on the `device`
scene (the "3 steps left" banner, a Calibrating gauge and the "Unlock it
with Zwift" card). That is the redesigned home screen reacting to the
marketing fixture's state, not the board change, and still needs a
decision on what that scene should feature.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-15 13:19:47 +02:00
Jonas Bark
964974f74c Keep screenshot title from overlapping the device frame
Long localized titles (e.g. es/companion, fr/device) wrapped past the device
frame's top. Constrain the title to the band above the frame and shrink it to
fit (FittedBox scaleDown), and raise it slightly, so any title length sits
fully above the frame.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 15:21:00 +02:00
Jonas Bark
db7990d6c0 updated screenshots 2026-03-12 11:57:36 +01:00
Jonas Bark
2528342a7b remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
506edcd9e8 update screenshots 2025-12-09 17:59:10 +01:00
Jonas Bark
2a4444bf3b screenshot work 2025-12-06 13:42:18 +01:00
Jonas Bark
5bf9c4df63 work on mDNS 2025-12-05 10:51:40 +01:00
Jonas Bark
794b838e48 work on screenshots 2025-12-04 21:51:16 +00:00
Jonas Bark
c4184a5bed screenshot adjustments 2025-12-01 18:14:16 +00:00