info-canicule/package.json
Florian 2c4d91ce2f
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
feat: graph T° interactif + widget iframe + MF auth + E2E Playwright
Graph T° (TemperatureChartInteractive.astro) :
- Onglets 24 h / 7 j / 30 j (toggle JS, séries serialisées au SSR)
- Hover vertical line + tooltip valeurs
- Overlay normales mois en pointillé (TX orange, TN bleu)
- Onglet 24 h dispo seulement si l'API MF a répondu (best-effort)

Météo France OAuth2 (lib/meteofrance-auth.ts + observations.ts) :
- client_credentials avec refresh auto, cache token Valkey
- Fallback METEOFRANCE_STATIC_TOKEN pour debug
- /synop endpoint pour 24h horaires par station SYNOP du dept
- Mapping dept → station SYNOP la plus proche (src/data/stations-synop.json)
- En attente de creds : SDK skip silencieusement, l'onglet 24h n'apparaît pas

Widget iframe (/embed/dept/[code] + /embed doc) :
- Layout minimal sans header/footer global
- Réutilisable via iframe avec une ligne
- Page /embed avec snippet copier-coller + aperçu live

Tests E2E Playwright (tests/e2e/) :
- home (carte 96 paths, tooltip dept, navigation)
- api (health, vigilance, vigilance/dept)
- departement (tabs période, DROM notice, 404)
- static pages (a-propos, mentions, dependances, soutenir, conseils, embed)
- embed widget (rendu minimal, headers X-Frame OK)
- 20+ tests, run via pnpm test:e2e (live) ou test:e2e:local

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 00:14:05 +02:00

36 lines
973 B
JSON

{
"name": "info-canicule",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"build:og": "node scripts/build-og-image.mjs",
"preview": "astro preview",
"start": "node ./dist/server/entry.mjs",
"astro": "astro",
"check": "astro check",
"typecheck": "tsc --noEmit",
"test:e2e": "playwright test",
"test:e2e:local": "E2E_BASE_URL=http://localhost:4321 playwright test"
},
"dependencies": {
"@astrojs/node": "^9.2.2",
"@astrojs/sitemap": "^3.6.0",
"@astrojs/tailwind": "^6.0.2",
"@sentry/astro": "^10.53.1",
"@tailwindcss/typography": "^0.5.16",
"astro": "^5.7.0",
"ioredis": "^5.6.0",
"tailwindcss": "^3.4.17"
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@playwright/test": "^1.60.0",
"@types/node": "^22.10.5",
"sharp": "^0.34.5",
"typescript": "^5.7.2"
},
"packageManager": "pnpm@10.0.0"
}