8000 The repo's front page shows the app, and stops describing a scaffold by zakariaf · Pull Request #32 · zakariaf/Odova · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,17 @@ An empty heading is an unanswered question, not a formality. If a heading does n

`.github/workflows/ci.yml` runs on every pull request, with `concurrency: ci-${{ github.ref }}` and `cancel-in-progress: true` — a new push cancels the run in flight. **A cancelled run is not a green run.** Watch the run for the commit you actually intend to merge.

Five jobs. **`ios build` is the one that matters most from EPIC-19 onwards**, because v1 ships to the App Store and nothing else in this repo compiles Swift — an `AppDelegate` typo that stopped the iOS app building at all reached `main` once, back when that lane reported `skipping`:
Five jobs. **`ios build` is the one that matters most from EPIC-19 onwards**, because v1 ships to the App Store and nothing else in this repo compiles Swift — an `AppDelegate` typo that stopped the iOS app building at all reached `main` once, before that lane existed.

It is **path-filtered on pull requests** and reports `skipping` on a PR that cannot have broken iOS, which is deliberate: a cold iOS build is twenty to thirty minutes against the Android lane's two. `skipping` there is not the same as the old always-skipping — but the two look identical in the checks list, so read the condition before concluding the Swift was compiled:

| Job | Name in checks | When it runs | What it proves |
|---|---|---|---|
| `repo` | `repo gates` | always | the repo lane, below |
| `app` | `flutter` | only `if pubspec.yaml exists` | format, analyze `--fatal-infos --fatal-warnings`, `pub get --enforce-lockfile`, regenerated `lib/l10n/gen/` matches the ARBs, `flutter test --coverage` with randomized ordering |
| `goldens` | `goldens` | only `if pubspec.yaml exists` | the golden and parity suites, which are slow enough to deserve their own lane |
| `build` | `android build` | only `if pubspec.yaml exists`, after `app` | `flutter build apk --debug`. **Android is not a shipping target** — EPIC-19 ships iOS only — and this lane stays anyway, because compiling for a second target is a cheap check that catches a plugin resolving on one platform and not the other |
| `ios` | `ios build` | only `if pubspec.yaml exists`, after `app` | `flutter build ios --simulator --debug`. The **only** thing in this repo that compiles the Swift that ships |
| `ios` | `ios build` | after `app`, and on a PR **only when iOS could have broken** — the iOS host sources, the Podfile, or the dependency set that generates the plugin registrant. Force it with an `ios` label. Always on a push to `main`. | `flutter build ios --simulator --debug`. The **only** thing in this repo that compiles the Swift that ships |

The `app` job also runs `tools/audit_deps.sh` and `tools/check_lint_include.sh`, which live there rather than in `repo` because both need the resolved tree that `flutter pub get` produces.

Expand Down
90 changes: 78 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,42 @@
<div align="center">

<img src="docs/icon.png" alt="" width="112" height="112">

# Odova

**Your car, handled.**

An offline, account-free log for car maintenance, fuel and running costs.
10000
[![ci](https://github.com/zakariaf/Odova/actions/workflows/ci.yml/badge.svg)](https://github.com/zakariaf/Odova/actions/workflows/ci.yml)
![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20Android-2B3A42)
![platform](https://img.shields.io/badge/platform-iOS%2015%2B-2B3A42)
![flutter](https://img.shields.io/badge/flutter-3.44.6-02569B)
![network calls](https://img.shields.io/badge/network%20calls-zero-1F7A55)
![locales](https://img.shields.io/badge/locales-6%20·%20LTR%20%2B%20RTL-6B4E9B)
![tests](https://img.shields.io/badge/tests-5%2C109-1F7A55)
[![licence](https://img.shields.io/badge/licence-Apache--2.0-blue)](LICENSE)

</div>

---

<div align="center">

<img src="docs/screenshots/home-en.png" alt="Home: what the car needs next" width="215">
&nbsp;
<img src="docs/screenshots/reminders-en.png" alt="Reminders, each due by distance and by date" width="215">
&nbsp;
<img src="docs/screenshots/home-fa.png" alt="The same home screen in Persian, mirrored" width="215">
&nbsp;
<img src="docs/screenshots/reminders-ckb.png" alt="Reminders in Kurdish Sorani, mirrored" width="215">

<sub>Home and Reminders in English · the same two in فارسی and کوردیی ناوەندی —
mirrored, with Jalali dates and Eastern Arabic numerals</sub>

</div>

---

Most people look after their car by remembering. They remember the oil was
changed "sometime last spring", they keep a fuel receipt in the door pocket, and
they find out the timing belt was overdue when it breaks.
Expand Down Expand Up @@ -50,33 +70,66 @@ else in the app exists to make that answer correct.
| Rule | What it means for you |
|---|---|
| **No account** | No sign-up, no email, no password. Open it and use it. |
| **No server, no sync, no analytics** | The app ships with no networking code. Nothing leaves your phone because there is nothing to leave through. |
| **No server, no sync, no analytics** | The app ships with no networking code. Odova uploads nothing, because there is nothing in it to upload through. Your phone's own iCloud backup may include the app's data, as it does for any app — that is yours and Apple's, not ours. |
| **Offline, always** | It works in a basement car park in aeroplane mode, forever. |
| **Your backup is a plain JSON file** | Export it, keep it wherever you like, read it in a text editor. No password to lose, no account to recover. |
| **Six languages, both directions** | English, Deutsch, Français, فارسی, العربية, کوردیی ناوەندی — right-to-left is a first-class target, not a port. |
| **Calm** | It tells you what matters and stays quiet otherwise. At most two notifications in any seven days, across every vehicle combined. |

## Repo state
## Where this is

**Built, and not yet submitted.** All nineteen epics are merged: 28 screens in
six languages and both reading directions, a due engine that counts distance and
date together, fuel maths from real fill-ups, backup and restore, local
reminders, and the release engineering around them. `flutter test` is 5,109
green.

**What stands between here and the App Store is a design sign-off, not code.**
[`design/review/SIGNOFF-2026-09-08.md`](design/review/SIGNOFF-2026-09-08.md)
reads **NOT SIGNED**, and says why: the vertical band profile fails on 106 of
112 parity comparisons, and no release build has ever been looked at.
`tools/release.sh` treats that file as a precondition and refuses while it says
so. Signing it to clear a checklist would make the release ritual's first
assumption false.

**Scaffold stage.** `SPEC.md` is complete and is the source of truth. The
Flutter app exists and is empty on purpose: it launches, it speaks six
languages, and every gate around it is armed and has been seen to fail. There
is no theme, no database and no screen yet — those are EPIC-02 onward. All
three CI lanes run: `repo gates`, `flutter`, `android build`.
Two other things are open and worth naming, because both need a person rather
than a commit:

- **Kurdish Sorani has not been read by a native speaker.** `SPEC.md` §18.11
calls it the single largest risk to the right-to-left launch. The app's
strings and the store listing are both written to the same shape as the other
five languages, and both should be reviewed before submission.
- **The aeroplane-mode pass has not happened.** §17's offline gate ends in a
manual walk from a clean install on a device that has never been online. A
simulator borrows the host's networking, so it cannot stand in.

### The map

| File | What it is |
|---|---|
| [`SPEC.md`](SPEC.md) | The full specification — data model, due engine, six-locale contract, backup format, every screen and every navigation edge. 18 sections. |
| [`SPEC.md`](SPEC.md) | The full specification — data model, due engine, six-locale contract, backup format, every screen and every navigation edge. 18 sections, and still the source of truth. |
| [`IDEA.md`](IDEA.md) | The idea in plain words, plus the naming research: how the name was chosen and what was checked against both app stores. |
| [`design/`](design/README.md) | Three candidate design systems, each covering all 28 screens, with 340 reference screenshots in light/dark and LTR/RTL. |
| [`epics/`](epics/README.md) | 19 executable build epics derived from the spec — 182 TDD tasks, each screen task gated against its reference screenshot. |
| [`design/`](design/README.md) | The Calm design system and 112 reference screenshots in light/dark and LTR/RTL, which the parity gates compare the built screens against. |
| [`epics/`](epics/README.md) | The 19 executable build epics, and [`epics/progress/`](epics/progress/) — one file per epic recording what was decided, what was deferred, and what the tests found. |
| [`store/`](store/README.md) | The App Store listing in six languages, the screenshots, and the privacy answers with `SPEC.md` §18 decision 12 closed in writing. |
| [`.claude/`](.claude/README.md) | 47 Flutter engineering skills — 40 vendored, 7 written here for the Calm design system. |
| `lib/` | The app. Seven directories with a stated owner each — `app core data features l10n theme ui` — and a policy test that keeps the list at seven. |
| `tools/` | Repo gates, the design mockup pipeline, and the app-name availability checker. |
| `tools/` | The repo gates, the release ritual, and `check_gates_selftest.sh`, which plants a real violation for every gate and asserts both arms. |

Start with **§1 Who it is for** and **§2 Non-negotiables**. If you are about to
propose a feature, read **§15 Explicitly out of v1** first.

### iOS first

v1 ships to the App Store and not to Google Play. That is a deliberate decision,
recorded in [`epics/EPIC-19-release.md`](epics/EPIC-19-release.md) along with
what it costs — the strongest mechanical evidence for the zero-network claim was
Android's merged manifest, and iOS has no equivalent.

The Android build stays in CI anyway: compiling for a second platform is a cheap
check that catches a plugin resolving on one and not the other. It is a
compile target, not a shipping one.

## Building

```bash
Expand Down Expand Up @@ -104,6 +157,19 @@ bash tools/audit_deps.sh --require-graph # no dependency opens a network path
bash tools/check_lint_include.sh # the lint ruleset is actually loaded
```

And the two that need a built artifact rather than source:

```bash
flutter build ios --simulator --debug
bash tools/check_binary_offline.sh build/ios/iphonesimulator/Runner.app
bash tools/release.sh --dry-run # names every release precondition it checked
```

`check_binary_offline.sh` walks every Mach-O in the bundle — the Dart AOT image
and each plugin's framework, not just the Swift host — for imported networking
symbols and linked networking libraries. It is a link-time fact, so it survives
obfuscation and describes what actually ships.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md). The short version: the spec is decided
Expand Down
31 changes: 31 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# docs/

Images the repository's own `README.md` shows. Nothing here is used by the app,
and nothing here is a source of truth.

| | |
|---|---|
| `icon.png` | A copy of the 1024 marketing icon, which is generated into the iOS asset catalogue by [`design/icon/generate.py`](../design/icon/generate.py) from the Calm tokens. |
| `screenshots/` | Four of the App Store captures in [`store/screenshots/`](../store/README.md), scaled to 440 px so the landing page loads in kilobytes rather than megabytes. |

**These are copies, and the originals are the ones that ship.** The icon is
gated against `--color-brand` by `test/policy/app_icon_test.dart`, and the store
set by `test/policy/store_screenshots_test.dart`; neither gate looks here. If
the app's look changes, regenerate the originals first and then re-scale:

```bash
python3 design/icon/generate.py
bash tools/capture_store_screenshots.sh # needs a booted simulator
cp ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png docs/icon.png
for pair in en/1-home:home-en en/2-reminders:reminders-en \
fa/1-home:home-fa ckb/2-reminders:reminders-ckb; do
src=${pair%%:*}; dst=${pair##*:}
sips -Z 440 "store/screenshots/${src%/*}/6.9-inch/${src#*/}.png" \
--out "docs/screenshots/$dst.png"
done
```

The four were chosen to show the two things the README claims and a reader would
otherwise take on trust: that the home screen answers one question, and that
right-to-left is a first-class target rather than a port — hence Persian with
Jalali dates and Eastern Arabic numerals, and Sorani with its own reminder names.
Binary file added docs/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/home-en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/home-fa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/reminders-ckb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/reminders-en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions test/policy/privacy_claims_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,31 @@ void main() {
expect(found, isEmpty, reason: found.join('\n'));
});

test("the repo's own docs make no claim the app does not", () {
// README.md is the most-read privacy claim this project has — more than
// the About screen, more than the listing — and it was the one document
// this gate did not cover. It said "Nothing leaves your phone", which §18
// decision 12 makes false: the container is inside the user's own OS
// backup, deliberately, so a restored phone finds the history there.
//
// The clause was defensible in context — the sentence went on to say "there
// is nothing to leave through", which is about Odova's code — but the
// absolute is the half people quote.
final found = <String>[];
for (final path in ['README.md', 'SECURITY.md', 'CONTRIBUTING.md']) {
final file = File(path);
if (!file.existsSync()) continue;
final text = file.readAsStringSync().toLowerCase();
for (final banned in _banned.where((b) => b.locale == 'en')) {
if (text.contains(banned.phrase.toLowerCase())) {
found.add('$path: "${banned.phrase}" — ${banned.why}');
}
}
}

expect(found, isEmpty, reason: found.join('\n'));
});

test('the About paragraph still says the thing it is allowed to say', () {
// The other direction, and the one a ban list alone would let rot: an
// over-cautious edit that removes the promise entirely leaves a privacy
Expand Down
Loading
0