Tane dialled its four default relays at launch, before anyone had asked for anything — an F-Droid reviewer spotted it, and they were right. The seed book needs no network at all, so the app should not have one until the person joins the sharing side. - SocialSettings gains a three-state `sharingEnabled`. `null` means "never asked", which is what lets `migrateSharingEnabled` keep an existing install exactly as it was: anyone past the intro was on a build that connected at launch, so they keep messaging, device sync and offer alerts. A fresh install starts fully offline. - bootstrap only starts the shared connection when sharing is on. The inbox/sync/plantaré/alert listeners are untouched: they react to a session, and none arrives. - SharingSwitch is the single place that moves the stored choice, the live connection and the flag the UI listens to, so they cannot drift. - Agreeing to the community rules is the opt-in — one consent surface, reached from the market or from the drawer's invitation. - SocialConnection.start is now idempotent and gains stop(), so turning sharing off goes offline immediately instead of at the next launch. - The social drawer entries stay visible but padlocked while sharing is off; tapping one explains what wakes up and offers to join. Hiding them would have kept the tool a secret. "Coming soon" is gone for good — everything it labelled is built. Covered by tests for the migration in both directions, start/stop lifecycle, the gate turning sharing on, the invitation, and the drawer in all three states (no social layer / off / on). |
||
|---|---|---|
| .. | ||
| fixtures | ||
| goldens | ||
| README.md | ||
| screenshot_support.dart | ||
| screenshots_test.dart | ||
Localized app screenshots
Golden-based harness that renders key screens as PNGs in several languages, for
the landing site (tane.comunes.org) and the app-store listings. No emulator —
it runs under flutter test, so it's deterministic and CI-friendly.
Regenerate
cd apps/app_seeds
flutter test --update-goldens --run-skipped --tags screenshots test/screenshots/screenshots_test.dart
tool/collect_screenshots.sh # copy PNGs into site/ and fastlane/
Drop --update-goldens to verify the committed PNGs still match. The
screenshots tag is skipped by default (dart_test.yaml) — so it never
runs in the normal suite or CI's flutter test --coverage, where golden pixel
differences across OS/font versions would cause false failures. --run-skipped
opts it back in.
What it produces
goldens/<locale>/<screen>.png for en, es, fr, de, pt, ja, screens
home · inventory · market · calendar · detail, plus goldens/rtl/inventory.png.
The market is rendered populated via a seeded OffersCubit with a no-op transport
(no network); home/calendar/detail/inventory render from the repository alone.
- Fonts: real glyphs come from
loadScreenshotFonts()— every family inFontManifest.json(MaterialIcons + bundled Noto/seedks) plus the bundled DejaVu Sans as the Latin text face. No Roboto needed. rtl/is a layout demo, not a locale: English strings forced right-to-left to prove the design is RTL-safe. The app ships no Arabic translation yet, so there is deliberately noar/with Arabic copy.- Partial locales (e.g.
ja) fall back to English for untranslated strings — that's the app's real runtime behavior, shown honestly. - These are raw device-canvas frames (no marketing captions or device bezels). Add those downstream only if a store rejects plain screenshots.
Adding a screen or locale
Edit screenshotLocales / the screens map in screenshots_test.dart. Screens
must render from the repository + cubits alone (no live Nostr/network stack), so
inventory/detail/calendar are the safe, self-contained set.