Refresh store listing text and screenshots for the current app

Store screenshots now render at real phone and tablet density
(--screenshot-ui-scale), show the painted Wim Hof, Sun Salutation and
Meditation cards, an Upward salute pose and showcase habits instead of
test fixtures. Descriptions in all five store locales name the actual
practices, patterns and habit features. TODO.md tracks the marketing plan.
This commit is contained in:
waozi committed 2026-10-02 18:10:41 -03:00
1 parent 6128fa5f6e
commit cea16cc681
56 files changed
+299 -232

No files matched your search

+78
View File
@@ -0,0 +1,78 @@
# Inner Breeze TODO
Marketing plan from 2026-10-02. Tick items off as they land and add a date or
link where it helps. Inner Breeze's edge: free, no ads, no account, offline,
open source, against breathing apps that charge $60–100 a year. It is also
visual (painted practice art, the Sun Salutation characters), so put effort
where those two things matter.
## Store listing
- [x] Rewrite the Play/F-Droid short and full descriptions around what people
search for (Wim Hof breathing, box and 4-7-8 breathing, Sun Salutation,
meditation timer, habit tracker, no ads, no account) in en-US, de-DE,
es-ES, fr-FR and pt-BR. (2026-10-02)
- [x] Regenerate the store screenshots from the current app at real phone and
tablet scale: painted practice cards, a Sun Salutation pose and showcase
habits (`make screenshot`). (2026-10-02)
- [ ] Publish the new text and screenshots on Google Play. F-Droid reads them
from this repo at the next release. `scripts/upload-play-screenshots.py`
uploads images only; the text goes in through Play Console.
- [ ] Make a new 1024x500 feature graphic in the painted style. The current
one is the old pixel art.
- [ ] Add a one-line caption to each store screenshot ("Wim Hof-style
rounds", "Follow the Sun Salutation").
- [ ] Keep "Wim Hof" out of the app title and icon. Wim Hof Method is a
registered trademark; a description that says "based on the Wim Hof
Method" is fine.
- [ ] Fix the Portuguese app string "Saudacao ao sol" to "Saudação ao sol".
- [ ] Give each channel its own tagged Play link, for example
`https://play.google.com/store/apps/details?id=xyz.waozi.inbe&referrer=utm_source%3Dreddit`,
and check Play Console's acquisition report every month.
## Short vertical video (best reach for new users)
- [ ] Record 30–60 second "breathe with me" sessions: a Wim Hof round, box
breathing, a Sun Salutation sequence.
- [ ] Post them on YouTube Shorts, TikTok and Instagram Reels. Reels can be
posted by hand from the phone; the Meta API hold only blocks automation.
- [ ] Finish Social's YouTube path: approval in Telegram and a background
upload worker (yuebot `plugins/social`).
- [ ] Optional: Pinterest pins for Sun Salutation and breathing technique
guides, which keep bringing traffic for a long time.
## Reddit
Read each subreddit's self-promotion rules first. Post as the developer, show
the app, and stay to answer comments.
- [ ] For users: r/WimHofMethod, r/breathwork, r/Meditation, r/yoga
- [ ] For the free/open-source angle: r/androidapps, r/fossdroid,
r/opensource, r/degoogle, r/linux
## Website (inbe.waozi.xyz)
- [ ] One page per technique with the `?mini` embed, so visitors practise on
the page: box breathing timer, 4-7-8 breathing, Wim Hof-style breathing,
Sun Salutation steps, meditation timer.
- [ ] Put the Play and F-Droid links under each embed.
## Directories and launches (one-time)
- [ ] AlternativeTo: list Inner Breeze as an alternative to Calm, Headspace,
Breathwrk and Prana Breath.
- [ ] Flathub: check whether `packaging/flatpak/xyz.waozi.inbe.yml` is
published, and submit it if not.
- [ ] Open-source app lists (awesome lists, F-Droid collections).
- [ ] Product Hunt launch.
- [ ] One Show HN about how it is built: the whole app in Ziran and Kryon,
running on Android, web, Linux and Windows. This brings developers and
GitHub stars, not meditators, so do it once.
## Channels to keep small
- Facebook and Threads Pages: the Meta API is on hold (no business
verification). Social is moving Facebook to the ThinkPad's signed-in
Chromium instead.
- X: the audience is mostly developers; keep it for Ziran and Kryon.
- Telegram @lotusinbe: keeps current users engaged but does not find new ones.
@@ -1,10 +1,27 @@
Eine freie, quelloffene App für Atmung, Meditation und Gewohnheiten.
Inner Breeze ist eine kostenlose, quelloffene App für Atmung, Meditation, Yoga und tägliche Gewohnheiten. Ohne Werbung und ohne Konto. Sie funktioniert offline und speichert deine Daten auf deinem Gerät.
Funktionen:
- Geführte Übungen mit visuellen und akustischen Hinweisen
- Mind, Yoga und Fitness für verschiedene Übungsroutinen
- Anpassbare Atemsitzungen, Meditationstimer und Zähler
- Gewohnheitstracking mit Verlauf und verknüpften Übungszahlen
- Optionale Synchronisierung von Gewohnheiten, Sitzungen und Fortschritt
- Lokale Speicherung mit Import und Export
- Anpassbare Designs mit hellen und dunklen Varianten
ÜBUNGEN
- Wim-Hof-Atmung: geführte Runden mit tiefen Atemzügen und Atempausen mit Timer, basierend auf der Wim-Hof-Methode, mit einem Diagramm deiner Haltezeiten.
- Atemmuster: Box, 4-7-8, Kohärent und Verlängertes Ausatmen, oder dein eigener Rhythmus.
- Meditationstimer mit Intervallglocke und optionaler Hintergrundmusik. Du kannst auch eigene Musik importieren.
- Sonnengruß: Folge einer gemalten Figur durch alle zwölf Haltungen. Wähle eine von vier Figuren und stelle Tempo und Rundenzahl ein.
GEWOHNHEITEN
- Verfolge tägliche Gewohnheiten mit einfachem Abhaken oder Zählern.
- Wochen- und Monatskalender, Serien und Statistiken.
- Verknüpfe eine Gewohnheit mit einer Übung, dann zählen abgeschlossene Sitzungen automatisch mit.
- Eine kurze Stimmungsabfrage nach jeder Übung.
DEINE DATEN
- Alles wird auf deinem Gerät gespeichert.
- Importiere und exportiere deine Daten, oder exportiere Sitzungen als CSV oder zu Health Connect.
- Optionale Synchronisierung zwischen deinen Geräten mit einem Konto.
GANZ NACH DEINEM GESCHMACK
- Helle und dunkle Designs in vielen Farben.
- In 12 Sprachen verfügbar.
- Läuft auch im Browser sowie unter Windows und Linux: inbe.waozi.xyz
Mache Atemübungen niemals beim Autofahren, im Stehen oder im Wasser.
Inner Breeze ist quelloffen unter der BSD-3-Clause-Lizenz: github.com/waozixyz/inbe
@@ -1 +1 @@
Atmung, Meditation und Gewohnheiten mit Synchronisierung.
Kostenlos: Wim-Hof-Atmung, Meditation und Gewohnheiten. Ohne Werbung und Konto.
@@ -1,10 +1,27 @@
A free, open-source practice app for breathing, meditation, and habit tracking.
Inner Breeze is a free, open-source app for breathing, meditation, yoga and daily habits. No ads and no account needed. It works offline and keeps your data on your device.
Features:
- Guided practice sessions with visual and audio cues
- Mind, Yoga, and Fitness organization for different practice routines
- Customizable breathing sessions, meditation timers, and habit counters
- Habit tracking with session history and linked practice counts
- Optional sync for habits, sessions, and practice progress
- Local storage with import/export support
- Theme customization with light and dark variants
PRACTICES
- Wim Hof Breathing: guided rounds of deep breaths and timed breath holds, based on the Wim Hof Method, with a chart of your hold times.
- Breathing patterns: Box, 4-7-8, Coherent and Extended exhale, or set your own rhythm.
- Meditation timer with an interval bell and optional background music. You can import your own music.
- Sun Salutation: follow a painted guide through all twelve poses. Choose one of four characters and set the tempo and number of rounds.
HABITS
- Track daily habits with simple check-ins or counts.
- Week and month calendars, streaks and statistics.
- Link a habit to a practice, and finished sessions count toward it.
- A quick mood check-in after each practice.
YOUR DATA
- Everything is stored on your device.
- Import and export your data, or export sessions as CSV or to Health Connect.
- Optional account sync between your devices.
MAKE IT YOURS
- Light and dark themes in many colors.
- Available in 12 languages.
- Also runs in your browser and on Windows and Linux: inbe.waozi.xyz
Never do breathing exercises while driving, standing or in water.
Inner Breeze is open source under the BSD 3-Clause license: github.com/waozixyz/inbe
Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 KiB

After

Width:  |  Height:  |  Size: 273 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 418 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 604 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 KiB

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 471 KiB

@@ -1 +1 @@
Syncable breathing, meditation, and habit practice app.
Free Wim Hof-style breathing, meditation and habit tracker. No ads, no account.
@@ -1,10 +1,27 @@
Una app libre y de código abierto para respiración, meditación y hábitos.
Inner Breeze es una app gratuita y de código abierto para respiración, meditación, yoga y hábitos diarios. Sin anuncios y sin necesidad de cuenta. Funciona sin conexión y guarda tus datos en tu dispositivo.
Funciones:
- Prácticas guiadas con señales visuales y de audio
- Organización Mind, Yoga y Fitness para distintas rutinas de práctica
- Sesiones de respiración, temporizadores y contadores configurables
- Seguimiento de hábitos con historial y recuentos vinculados a prácticas
- Sincronización opcional de hábitos, sesiones y progreso
- Almacenamiento local con importación y exportación
- Temas personalizables con variantes claras y oscuras
PRÁCTICAS
- Respiración Wim Hof: rondas guiadas de respiraciones profundas y retenciones cronometradas, basadas en el método Wim Hof, con un gráfico de tus tiempos de retención.
- Patrones de respiración: Caja, 4-7-8, Coherente y Exhalación prolongada, o tu propio ritmo.
- Temporizador de meditación con campana de intervalo y música de fondo opcional. También puedes importar tu propia música.
- Saludo al sol: sigue a una guía pintada a través de las doce posturas. Elige uno de cuatro personajes y ajusta el ritmo y el número de rondas.
HÁBITOS
- Registra hábitos diarios con marcas sencillas o contadores.
- Calendarios semanales y mensuales, rachas y estadísticas.
- Vincula un hábito a una práctica y las sesiones terminadas cuentan para él.
- Un breve registro de tu estado de ánimo después de cada práctica.
TUS DATOS
- Todo se guarda en tu dispositivo.
- Importa y exporta tus datos, o exporta sesiones en CSV o a Health Connect.
- Sincronización opcional entre tus dispositivos con una cuenta.
A TU MANERA
- Temas claros y oscuros en muchos colores.
- Disponible en 12 idiomas.
- También funciona en el navegador y en Windows y Linux: inbe.waozi.xyz
Nunca hagas ejercicios de respiración mientras conduces, de pie o en el agua.
Inner Breeze es de código abierto bajo la licencia BSD 3-Clause: github.com/waozixyz/inbe
@@ -1 +1 @@
Respiración, meditación y hábitos con sincronización.
Respiración Wim Hof, meditación y hábitos. Gratis, sin anuncios y sin cuenta.
@@ -1,10 +1,27 @@
Une app libre et open source pour respiration, méditation et habitudes.
Inner Breeze est une application gratuite et open source pour la respiration, la méditation, le yoga et les habitudes quotidiennes. Sans publicité et sans compte. Elle fonctionne hors ligne et garde vos données sur votre appareil.
Fonctionnalités :
- Pratiques guidées avec repères visuels et audio
- Organisation Mind, Yoga et Fitness pour différentes routines
- Séances de respiration, minuteries et compteurs personnalisables
- Suivi des habitudes avec historique et comptes liés aux pratiques
- Synchronisation optionnelle des habitudes, séances et progrès
- Stockage local avec import et export
- Thèmes personnalisables avec variantes claires et sombres
PRATIQUES
- Respiration Wim Hof : des séries guidées de respirations profondes et de rétentions chronométrées, basées sur la méthode Wim Hof, avec un graphique de vos temps de rétention.
- Schémas respiratoires : Carré, 4-7-8, Cohérent et Expiration prolongée, ou votre propre rythme.
- Minuteur de méditation avec cloche d'intervalle et musique de fond facultative. Vous pouvez aussi importer votre propre musique.
- Salutation au soleil : suivez un guide peint à travers les douze postures. Choisissez l'un des quatre personnages et réglez le tempo et le nombre de séries.
HABITUDES
- Suivez vos habitudes quotidiennes avec de simples coches ou des compteurs.
- Calendriers hebdomadaires et mensuels, séries et statistiques.
- Liez une habitude à une pratique : les séances terminées comptent automatiquement.
- Un court bilan d'humeur après chaque pratique.
VOS DONNÉES
- Tout est enregistré sur votre appareil.
- Importez et exportez vos données, ou exportez vos séances en CSV ou vers Health Connect.
- Synchronisation facultative entre vos appareils avec un compte.
À VOTRE IMAGE
- Thèmes clairs et sombres dans de nombreuses couleurs.
- Disponible en 12 langues.
- Fonctionne aussi dans le navigateur et sous Windows et Linux : inbe.waozi.xyz
Ne pratiquez jamais d'exercices de respiration en conduisant, debout ou dans l'eau.
Inner Breeze est open source sous licence BSD 3-Clause : github.com/waozixyz/inbe
@@ -1 +1 @@
Respiration, méditation et habitudes avec synchronisation.
Respiration Wim Hof, méditation et habitudes. Gratuit, sans pub et sans compte.
@@ -1,10 +1,27 @@
Um app livre e de código aberto para respiração, meditação e hábitos.
Inner Breeze é um app gratuito e de código aberto para respiração, meditação, ioga e hábitos diários. Sem anúncios e sem precisar de conta. Funciona offline e mantém seus dados no seu aparelho.
Recursos:
- Práticas guiadas com sinais visuais e sonoros
- Organização Mind, Yoga e Fitness para diferentes rotinas de prática
- Sessões de respiração, timers de meditação e contadores configuráveis
- Acompanhamento de hábitos com histórico e contagens ligadas às práticas
- Sincronização opcional de hábitos, sessões e progresso
- Armazenamento local com importação e exportação
- Temas personalizáveis com variantes claras e escuras
PRÁTICAS
- Respiração Wim Hof: rodadas guiadas de respirações profundas e retenções cronometradas, baseadas no método Wim Hof, com um gráfico dos seus tempos de retenção.
- Padrões de respiração: Caixa, 4-7-8, Coerente e Expiração prolongada, ou o seu próprio ritmo.
- Timer de meditação com sino de intervalo e música de fundo opcional. Você também pode importar suas próprias músicas.
- Saudação ao sol: siga um guia pintado pelas doze posturas. Escolha um de quatro personagens e ajuste o ritmo e o número de rodadas.
HÁBITOS
- Acompanhe hábitos diários com marcações simples ou contadores.
- Calendários semanais e mensais, sequências e estatísticas.
- Vincule um hábito a uma prática e as sessões concluídas contam para ele.
- Um registro rápido do seu humor depois de cada prática.
SEUS DADOS
- Tudo fica salvo no seu aparelho.
- Importe e exporte seus dados, ou exporte sessões em CSV ou para o Health Connect.
- Sincronização opcional entre seus aparelhos com uma conta.
DO SEU JEITO
- Temas claros e escuros em várias cores.
- Disponível em 12 idiomas.
- Também funciona no navegador e no Windows e Linux: inbe.waozi.xyz
Nunca faça exercícios de respiração dirigindo, em pé ou dentro da água.
Inner Breeze é de código aberto sob a licença BSD 3-Clause: github.com/waozixyz/inbe
@@ -1 +1 @@
Respiração, meditação e hábitos com sincronização.
Respiração Wim Hof, meditação e hábitos. Grátis, sem anúncios e sem conta.
+19 -177
View File
@@ -20,25 +20,25 @@ FASTLANE_IMAGES_DIR="${SCREENSHOT_FASTLANE_IMAGES_DIR:-"$ROOT_DIR/fastlane/metad
FASTLANE_SYNC="${SCREENSHOT_FASTLANE_SYNC:-1}"
FASTLANE_FORMAT="${SCREENSHOT_FASTLANE_FORMAT:-png}"
FASTLANE_JPEG_QUALITY="${SCREENSHOT_FASTLANE_JPEG_QUALITY:-92}"
SCREENSHOT_STYLE="${SCREENSHOT_STYLE:-2}"
ANALYSIS_FILE="$OUT_DIR/screenshot-analysis.tsv"
SCENES=(
"home:01-practice-home:-1:0:Practice home"
"patterns:02-pattern-breathing:-1:0:Pattern breathing session"
"habits_overview:03-habits-overview:-1:0:Habits overview"
"habits_stats:04-habit-statistics:-1:0:Habit statistics"
"wim_hof_session:05-wim-hof-session:-1:0:Wim Hof session"
"meditation_session:06-meditation-session:-1:0:Meditation session"
"home:01-practice-home:-1:0:Wim Hof Breathing practice card"
"sun_salutation_home:02-sun-salutation-home:-1:0:Sun Salutation practice card"
"sun_salutation_pose:03-sun-salutation-pose:-1:0:Sun Salutation Upward salute pose"
"meditation_home:04-meditation-home:-1:0:Meditation practice card"
"promo_habits:05-habits-overview:-1:0:Habits overview"
"habits_stats:06-habit-statistics:-1:0:Habit statistics"
"practice_manual_whm:07-wim-hof-how-to:-1:0:Wim Hof Method how to"
"cobalt_dark:08-cobalt-dark-pattern-breathing:11:1:Cobalt dark Pattern Breathing"
)
# name:width:height:ui scale in tenths:Fastlane folder. The scale gives each
# device its real layout: a 432x768 phone and 1280x720 tablets.
BUCKETS=(
"phone:1080:1920:phoneScreenshots"
"tablet-7:1920:1080:sevenInchScreenshots"
"tablet-10:2560:1440:tenInchScreenshots"
"chromebook:2560:1440:"
"phone:1080:1920:25:phoneScreenshots"
"tablet-7:1920:1080:15:sevenInchScreenshots"
"tablet-10:2560:1440:20:tenInchScreenshots"
"chromebook:2560:1440:20:"
)
if [[ ! -x "$BIN" ]]; then
@@ -56,12 +56,12 @@ mkdir -p "$OUT_DIR"
rm -rf "$OUT_DIR/phone" "$OUT_DIR/tablet-7" "$OUT_DIR/tablet-10" \
"$OUT_DIR/chromebook" "$DATA_BASE"
mkdir -p "$DATA_BASE"
printf 'bucket\tfastlane_dir\torder\tscene\tfile\tfastlane_file\twidth\theight\ttheme\tdark\tstyle\texpected\n' > "$ANALYSIS_FILE"
printf 'bucket\tfastlane_dir\torder\tscene\tfile\tfastlane_file\twidth\theight\tscale\ttheme\tdark\texpected\n' > "$ANALYSIS_FILE"
if [[ "$FASTLANE_SYNC" = "1" ]]; then
mkdir -p "$FASTLANE_IMAGES_DIR"
for bucket in "${BUCKETS[@]}"; do
IFS=: read -r _bucket_name _width _height fastlane_subdir <<<"$bucket"
IFS=: read -r _bucket_name _width _height _scale fastlane_subdir <<<"$bucket"
if [[ -n "$fastlane_subdir" ]]; then
rm -rf "$FASTLANE_IMAGES_DIR/$fastlane_subdir"
mkdir -p "$FASTLANE_IMAGES_DIR/$fastlane_subdir"
@@ -77,165 +77,7 @@ run_app() {
local output="$5"
local theme="$6"
local dark="$7"
local style="$8"
if [[ "${SCREENSHOT_SEED_DB:-0}" = "1" && ! -f "$data_root/inbe.db" ]]; then
NOW=$(date +%s)
USER_ID="local-screenshot-$NOW"
# Calculate today's date in YYYYMMDD format
TODAY_DATE=$(date +%Y%m%d)
sqlite3 "$data_root/inbe.db" <<EOF
CREATE TABLE users(
id TEXT PRIMARY KEY,
created_at INTEGER NOT NULL,
kind TEXT NOT NULL
);
CREATE TABLE settings(
user_id TEXT NOT NULL,
key TEXT NOT NULL,
value TEXT NOT NULL,
updated_at INTEGER NOT NULL,
PRIMARY KEY(user_id,key)
);
CREATE TABLE meta(
key TEXT PRIMARY KEY,
value TEXT
);
CREATE TABLE habits(
id TEXT PRIMARY KEY,
user_id TEXT NOT NULL,
name TEXT NOT NULL,
color_r INTEGER NOT NULL,
color_g INTEGER NOT NULL,
color_b INTEGER NOT NULL,
sync_mode INTEGER NOT NULL,
sync_activity INTEGER NOT NULL,
counter_enabled INTEGER NOT NULL DEFAULT 0,
sort_order INTEGER NOT NULL,
deleted_at INTEGER NOT NULL DEFAULT 0
);
CREATE TABLE habit_days(
habit_id TEXT NOT NULL,
local_date INTEGER NOT NULL,
completed INTEGER NOT NULL,
count INTEGER NOT NULL DEFAULT 0,
session_count INTEGER NOT NULL DEFAULT 0,
updated_at INTEGER NOT NULL,
PRIMARY KEY(habit_id,local_date)
);
CREATE TABLE sessions(
id TEXT PRIMARY KEY,
user_id TEXT NOT NULL,
started_at INTEGER NOT NULL,
local_date INTEGER NOT NULL,
topic INTEGER NOT NULL DEFAULT 0,
activity INTEGER NOT NULL DEFAULT 0,
source TEXT NOT NULL,
imported_at INTEGER NOT NULL,
rounds_hash INTEGER NOT NULL,
deleted_at INTEGER NOT NULL DEFAULT 0,
updated_at INTEGER NOT NULL DEFAULT 0,
UNIQUE(user_id,started_at,rounds_hash)
);
CREATE TABLE session_rounds(
session_id TEXT NOT NULL,
round_index INTEGER NOT NULL,
seconds INTEGER NOT NULL,
PRIMARY KEY(session_id,round_index)
);
CREATE TABLE imports(
id TEXT PRIMARY KEY,
imported_at INTEGER NOT NULL,
format TEXT NOT NULL,
source_name TEXT NOT NULL,
session_count INTEGER NOT NULL,
habit_count INTEGER NOT NULL
);
CREATE TABLE sync_outbox(
seq INTEGER PRIMARY KEY AUTOINCREMENT,
entity_type TEXT NOT NULL,
entity_id TEXT NOT NULL,
local_date INTEGER NOT NULL DEFAULT 0,
queued_at INTEGER NOT NULL,
UNIQUE(entity_type,entity_id,local_date)
);
INSERT INTO users(id, created_at, kind) VALUES ('$USER_ID', $NOW, 'local');
INSERT INTO settings(user_id,key,value,updated_at) VALUES ('$USER_ID', 'tutorial_seen', '1', $NOW);
INSERT INTO settings(user_id,key,value,updated_at) VALUES ('$USER_ID', 'habits_guide_seen', '1', $NOW);
INSERT INTO settings(user_id,key,value,updated_at) VALUES ('$USER_ID', 'schema_version', '11', $NOW);
-- Habits (sync_activity: 1=WIM_HOF, 2=MEDITATION, 3=both)
INSERT INTO habits(id, user_id, name, color_r, color_g, color_b, sync_mode, sync_activity, counter_enabled, sort_order, deleted_at) VALUES
('habit-1', '$USER_ID', 'Meditation', 126, 183, 230, 1, 3, 0, 0, 0),
('habit-2', '$USER_ID', 'Exercise', 150, 200, 150, 1, 1, 1, 1, 0),
('habit-3', '$USER_ID', 'Yoga', 200, 150, 200, 1, 2, 0, 2, 0),
('habit-4', '$USER_ID', 'Mindfulness', 200, 180, 130, 1, 3, 1, 3, 0),
('habit-5', '$USER_ID', 'Breathing', 150, 180, 220, 1, 1, 0, 4, 0),
('habit-6', '$USER_ID', 'Stretching', 220, 180, 150, 1, 2, 1, 5, 0);
EOF
# Generate habit completion data for each habit for the last 28 days
for habit_num in {1..6}; do
habit_id="habit-$habit_num"
for day_offset in {0..27}; do
local_date=$(date -d "$day_offset days ago" +%Y%m%d)
completed=$((RANDOM % 2)) # Random 0 or 1
habit_day_count=$((completed > 0 ? 1 + (RANDOM % 3) : 0)) # 1-3 if completed, 0 otherwise
updated_at=$(date -d "$day_offset days ago" +%s)
sqlite3 "$data_root/inbe.db" "INSERT INTO habit_days(habit_id, local_date, completed, count, session_count, updated_at) VALUES ('$habit_id', $local_date, $completed, $habit_day_count, 0, $updated_at);"
done
done
# Generate varied session data for the last 28 days
session_count=0
for day_offset in {0..27}; do
local_date=$(date -d "$day_offset days ago" +%Y%m%d)
day_start_time=$(date -d "$day_offset days ago" +%s)
# Decide session pattern: 40% no sessions, 40% 1 session, 20% 2 sessions
session_pattern=$((RANDOM % 10))
num_sessions=0
if [ $session_pattern -lt 4 ]; then
num_sessions=0
elif [ $session_pattern -lt 8 ]; then
num_sessions=1
else
num_sessions=2
fi
for session_num in $(seq 1 $num_sessions); do
# Only WHM sessions (topic=0, activity=0)
topic=0
# Vary start times throughout the day
hour=$((8 + RANDOM % 12))
minute=$((RANDOM % 60))
started_at=$((day_start_time + hour * 3600 + minute * 60))
updated_at=$((started_at + 300)) # Session ends ~5 min later
session_id="session-$session_count"
session_count=$((session_count + 1))
# Generate round hash (just use timestamp)
rounds_hash=$started_at
sqlite3 "$data_root/inbe.db" "INSERT INTO sessions(id, user_id, started_at, local_date, topic, activity, source, imported_at, rounds_hash, deleted_at, updated_at) VALUES ('$session_id', '$USER_ID', $started_at, $local_date, $topic, 0, 'screenshot', 0, $rounds_hash, 0, $updated_at);"
# Generate rounds with varied durations
if [ $topic -eq 0 ]; then
# WHM: 3-5 rounds, 30-90 seconds each
num_rounds=$((3 + RANDOM % 3))
for round_index in $(seq 0 $((num_rounds - 1))); do
seconds=$((30 + RANDOM % 61)) # 30-90 seconds
sqlite3 "$data_root/inbe.db" "INSERT INTO session_rounds(session_id, round_index, seconds) VALUES ('$session_id', $round_index, $seconds);"
done
fi
done
done
fi
local scale="$8"
set +e
env -u DISPLAY -u WAYLAND_DISPLAY -u SESSION_MANAGER \
@@ -249,7 +91,7 @@ EOF
--screenshot-height "$height" \
--screenshot-theme "$theme" \
--screenshot-dark "$dark" \
--screenshot-style "$style"
--screenshot-ui-scale "$scale"
app_status=$?
set -e
if [[ "$app_status" -ne 0 && ! -s "$output" ]]; then
@@ -291,7 +133,7 @@ sync_fastlane_screenshot() {
count=0
for bucket in "${BUCKETS[@]}"; do
IFS=: read -r bucket_name width height fastlane_subdir <<<"$bucket"
IFS=: read -r bucket_name width height scale fastlane_subdir <<<"$bucket"
bucket_dir="$OUT_DIR/$bucket_name"
mkdir -p "$bucket_dir"
@@ -301,7 +143,7 @@ for bucket in "${BUCKETS[@]}"; do
data_root="$DATA_BASE/${bucket_name}-${scene}"
mkdir -p "$data_root"
echo "Generating $bucket_name/$slug ${width}x${height} [$expected]"
run_app "$width" "$height" "$data_root" "$scene" "$output" "$theme" "$dark" "$SCREENSHOT_STYLE"
run_app "$width" "$height" "$data_root" "$scene" "$output" "$theme" "$dark" "$scale"
if [[ ! -s "$output" ]]; then
echo "Screenshot was not created: $output" >&2
exit 1
@@ -329,7 +171,7 @@ for bucket in "${BUCKETS[@]}"; do
fi
printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' \
"$bucket_name" "$fastlane_subdir" "${slug%%-*}" "$scene" "$output" "$fastlane_file" \
"$width" "$height" "$theme" "$dark" "$SCREENSHOT_STYLE" "$expected" \
"$width" "$height" "$scale" "$theme" "$dark" "$expected" \
>> "$ANALYSIS_FILE"
count=$((count + 1))
done
+1 -1
View File
@@ -20,7 +20,7 @@ DEFAULT_X_DRAFT = ROOT / ".local" / "social-posts" / "latest-x-draft.txt"
DEFAULT_X_ATTACHMENTS = ROOT / ".local" / "social-posts" / "latest-x-attachments.txt"
DEFAULT_FEATURE_SCREENSHOTS = [
ROOT / "build" / "screenshots" / "results" / "all-results-pages.png",
ROOT / "build" / "screenshots" / "phone" / "04-habit-statistics-1080x1920.png",
ROOT / "build" / "screenshots" / "phone" / "06-habit-statistics-1080x1920.png",
]
+8
View File
@@ -9,6 +9,8 @@ ScreenshotRequest :: struct {
height: s32
theme_id: s32
dark_mode: s32
// The app's ui_scale setting in tenths, or 0 to keep the saved scale.
ui_scale_tenths: s32
scene: [64]u8
output: [512]u8
}
@@ -98,6 +100,8 @@ ScreenshotParse :: (args: []string, width: s32, height: s32,
request.theme_id = ScreenshotParseInt(value, request.theme_id)
} else if option == "--screenshot-dark" {
request.dark_mode = ifx ScreenshotParseInt(value, 0) != 0 then 1 else 0
} else if option == "--screenshot-ui-scale" {
request.ui_scale_tenths = ScreenshotParseInt(value, 0)
} else {
consumed = false
}
@@ -117,6 +121,10 @@ ScreenshotParse :: (args: []string, width: s32, height: s32,
if request.height < 320 {
request.height = 320
}
// Same range as the ui_scale setting; anything else keeps the saved scale.
if request.ui_scale_tenths < 5 || request.ui_scale_tenths > 25 {
request.ui_scale_tenths = 0
}
if request.theme_id < SCREENSHOT_THEME_CURRENT || request.theme_id >= theme_count {
request.theme_id = SCREENSHOT_THEME_CURRENT
}
+23
View File
@@ -151,6 +151,12 @@ screenshot_seed_habit_counts :: (app: *InnerBreeze) {
habit_set_day_count(*app.habits, 2, screenshot_day_index_offset(4), 2)
}
// The sun_salutation_pose scene: Upward salute, the second step, with the
// fourth painted character, held four seconds in so the move has finished.
screenshot_pose_character :: 3
screenshot_pose_step :: 1
screenshot_pose_ticks :: 4 * 60
// Realistic habit set for promotional captures. The fixtures above stay as
// they are because tests rely on them; only the promo_habits scene uses this.
screenshot_showcase_habit_days: [42]s32 = .[
@@ -273,6 +279,10 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
screenshot_seed_showcase_habits(app)
}
screenshot_apply_theme(app, request.theme_id, request.dark_mode)
// Store screenshots render a phone or tablet layout at device density.
if request.ui_scale_tenths != 0 {
app.ui_scale_tenths = request.ui_scale_tenths
}
if AppTextFromCString(*request.scene[0], 64) == "lists" || AppTextFromCString(*request.scene[0], 64) == "lists_completed" {
list_id: [37] u8
completed_id: [37] u8
@@ -403,6 +413,19 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
app.main_tab = APP_MAIN_TAB_PRACTICE
app.exercise_type = EXERCISE_SUN_SALUTATION
sun_salutation_practice_start(app)
} else if scene_text == "sun_salutation_pose" {
// A full-body pose for store pages, selected by the request's step.
app.main_tab = APP_MAIN_TAB_PRACTICE
app.exercise_type = EXERCISE_SUN_SALUTATION
app.sun_salutation.character = screenshot_pose_character
sun_salutation_practice_start(app)
app.sun_salutation.step = screenshot_pose_step
app.sun_salutation.step_ticks = screenshot_pose_ticks
} else if scene_text == "meditation_home" || scene_text == "sun_salutation_home" {
app.exercise_type = ifx scene_text == "meditation_home" then (EXERCISE_MEDITATION) else (EXERCISE_SUN_SALUTATION)
app.main_tab = APP_MAIN_TAB_PRACTICE
app.practice_tab = PRACTICE_TAB_PLAY
app.breathing.screen = ScreenStart
} else if AppTextFromCString(*request.scene[0], 64) == "sun_salutation_results" {
screenshot_setup_result_scene(app, EXERCISE_SUN_SALUTATION)
} else if AppTextFromCString(*request.scene[0], 64) == "calendar_meditation" {
+23
View File
@@ -58,6 +58,29 @@ Answer :: () -> s32 {
ScreenshotParseInt("not-a-number", 9) != 9 {
return -6
}
if request.ui_scale_tenths != 0 {
return -8
}
args[12] = "--screenshot-ui-scale"
request = ScreenshotParse(args[:], 800, 600, 5, true)
if request.ui_scale_tenths != 0 {
return -9
}
scaled: [5]string
scaled[0] = "inbe"
scaled[1] = "--screenshot"
scaled[2] = "capture.png"
scaled[3] = "--screenshot-ui-scale"
scaled[4] = "25"
request = ScreenshotParse(scaled[:], 800, 600, 5, true)
if !request.valid || request.ui_scale_tenths != 25 {
return -10
}
scaled[4] = "26"
request = ScreenshotParse(scaled[:], 800, 600, 5, true)
if request.ui_scale_tenths != 0 {
return -11
}
args[3] = ""
request = ScreenshotParse(args[:], 800, 600, 5, true)
if request.active != 1 || request.valid {
+12 -4
View File
@@ -9,8 +9,10 @@ fail() {
exit 1
}
grep -q 'SCREENSHOT_STYLE="${SCREENSHOT_STYLE:-2}"' "$SCRIPT" ||
fail "screenshots must default to Material style"
grep -q -- '--screenshot-ui-scale "$scale"' "$SCRIPT" ||
fail "screenshots must render each device bucket at its own UI scale"
grep -q '"phone:1080:1920:25:phoneScreenshots"' "$SCRIPT" ||
fail "phone screenshots must use the phone layout at 2.5x"
mapfile -t scenes < <(
awk '
@@ -27,13 +29,19 @@ mapfile -t scenes < <(
[[ "${#scenes[@]}" -eq 8 ]] ||
fail "expected 8 Play screenshot scenes, got ${#scenes[@]}"
for forbidden in 'rest_break' 'sun_salutation_session' \
'07-sun-salutation-session' '08-cobalt-dark-practice'; do
for forbidden in 'rest_break' '08-cobalt-dark-practice'; do
if printf '%s\n' "${scenes[@]}" | grep -q "$forbidden"; then
fail "forbidden screenshot scene is still present: $forbidden"
fi
done
IFS=: read -r scene slug theme dark expected <<<"${scenes[1]}"
[[ "$scene" = "sun_salutation_home" ]] ||
fail "slot 2 must show the Sun Salutation practice card"
IFS=: read -r scene slug theme dark expected <<<"${scenes[4]}"
[[ "$scene" = "promo_habits" ]] ||
fail "slot 5 must use the showcase habits, not test fixtures"
for i in 0 1 2 3 4 5 6; do
IFS=: read -r scene slug theme dark expected <<<"${scenes[$i]}"
[[ "$theme" = "-1" ]] ||