Skip to content

feat: pages for soon countries, and Benin operators - #11

Merged
gausoft merged 9 commits into
mainfrom
feat/add-a-country
Oct 23, 2026
Merged

gausoft merged 9 commits into
mainfrom
feat/add-a-country

Conversation

@gausoft

@gausoft gausoft commented Oct 19, 2026

Copy link
Copy Markdown
Owner

What this changes

Every country in data/countries.json now has a page, the seven listed as soon included, and Benin becomes the pilot with its three operators sourced. The funnel for the next country is in place, and price fields are renamed so the currency of a country no longer lives in the field names.

Type

  • Data (offers, codes, fees)
  • Website (pages, components, styles)
  • Docs or tooling

Data changes only

  • Each entry follows docs/data-schema.md
  • Each entry has a source and an access date
  • Device-tested entries include a screenshot with numbers and balances blurred
  • No PIN appears anywhere

No device-tested entry in this pull request: every Benin record is unverified, and the page shows it as such.

Checks

  • npm run verify passes locally (118 files typed, 92 tests, 47 pages built)

What a reviewer should know

  • Soon pages are noindex. Seven thin pages repeating one template would be doorway pages. They become indexable the day the country goes live; the sitemap still lists live countries only.
  • Benin is sourced, not guessed. ARCEP Benin and the three operators' own pages, read on 2026-10-19. Moov Africa Benin publishes no service number, so the field is null and the page mentions only what exists.
  • customer_service is now a diallable number. The page prints it and dials it through tel:, so it accepts digits, spaces and an optional leading +: a USSD code could open a menu and ask for a PIN.
  • payment_methods is checked against the operator's own services, not against the country's. An offer paid with another operator's mobile money is a copy-paste error, and the build refuses it now.
  • amount_presets needs at least one entry. The old comment promised an app default that had been deleted; a country left the field empty would have generated a code builder with no quick amount.

Diagram

flowchart TD
  D["data/countries.json<br/>+ currency, amount_label, amount_presets"] --> S
  O["data/&lt;code&gt;/operators.json<br/>+ provenance required, customer_service nullable"] --> S
  E["data/&lt;code&gt;/&lt;op&gt;/&lt;cat&gt;.json<br/>price, min, max, fee"] --> S
  S["src/lib/schema.ts<br/>+ country-aware amounts, + provenance"] --> C
  F["src/lib/freshness.ts<br/>hasAcceptedProof, lastReadOn"] --> C
  C["src/lib/catalog.ts<br/>amountLabel, pending countries, payment methods per operator"] --> L
  L["src/lib/localize.ts<br/>localizes pending countries"] --> R
  C --> R["src/lib/routes.ts<br/>countryPaths (union)"]
  R --> P["src/pages/[country]/index.astro + en/…<br/>country and section routes"]
  P --> H["src/views/CountryHome.astro<br/>live country (unchanged)"]
  P --> N["src/views/CountrySoon.astro<br/>NEW: soon country page"]
  P --> SX["src/views/Section.astro<br/>read date now taken from the data"]
  SC["src/lib/seo-copy-fr.ts / seo-copy-en.ts<br/>soonTitle, soonDescription"] --> SE
  SE["src/lib/seo.ts<br/>countrySoonSeo, noindex"] --> N
  I["src/i18n/fr.ts + en.ts<br/>+ soon block"] --> N
  I --> Q["src/views/Search.astro<br/>soon flags became links"]
  C --> Q
  C --> M["src/pages/sitemap.xml.ts<br/>live countries only"]
  SE --> G["src/pages/og/[slug].png.ts<br/>unchanged default card"]
  N --> K["scripts/new-country.mjs, docs/adding-a-country.md,<br/>.github/ISSUE_TEMPLATE/new-country.yml"]
  FT["src/lib/format.ts<br/>formatDay"] --> N
  FT --> SX
Loading

gausoft and others added 9 commits October 19, 2026 07:46
price_xof, min_xof, max_xof and fee_xof become price, min, max and fee: the
country file now says which currency, and how it is written.
* feat(data): list the Yas bill payment menu under bills

* feat(ui): split calls into calls-only and combo tabs

* fix(data): accept only http(s) links for sources and websites

---------

Co-authored-by: Gauthier Eholoum <[email protected]>
@gausoft
gausoft merged commit 5062365 into main Oct 23, 2026
1 check passed
@gausoft
gausoft deleted the feat/add-a-country branch October 23, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant