Commit Graph
10 Commits
Author SHA1 Message Date
Pierre MartinandClaude Opus 4.8 1878ba08ec feat: parse iCalendar feed into Event[] (T1)
Add a pure parser parserEvenements(flux, aujourdhui) backed by vendored
ical.js v2.2.1 (ESM, no build). Returns events at the frozen Event contract
{ uid, titre, description, lieu, debut, fin, categories, journeeEntiere }:

- register embedded VTIMEZONE before toJSDate (correct offset, e.g. Africa/Lagos)
- dedupe by UID, keep the master (RECURRENCE-ID exceptions ignored)
- filter to today and future (local start of day)
- coerce missing text fields to ""

Edge cases deferred to T3 (RRULE expansion, all-day hour) are documented.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 01:18:29 +02:00
Pierre Martin fd28d3b2d3 Merge branch 'trouver-l-url-ical-publique-nextcloud-o42d' 2026-06-30 00:34:35 +02:00
Pierre MartinandClaude Opus 4.8 b359902c69 docs: capitalize CalDAV feed reading solution (T1)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 00:20:45 +02:00
Pierre MartinandClaude Opus 4.8 b27bb478bf feat: show calendar fetch state on the list page
Orchestrate the feed retrieval from the list page: loading / success
(event count) / actionable French error states with a Réessayer button
and an Ouvrir Nextcloud link when the session is missing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 00:07:43 +02:00
Pierre MartinandClaude Opus 4.8 1432aba561 feat: read raw iCalendar feed via browser session
Isolated CalDAV transport module that reuses the browser's Nextcloud
session (cookies, no stored password). Returns a discriminated result
and detects the HTTP-200 login-page redirect by sniffing the body for
BEGIN:VCALENDAR. compterEvenements counts real VEVENT line starts as the
T1 proof of life.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 00:07:43 +02:00
Pierre Martin 4889a9931a Merge branch 'squelette-de-l-extension-firefox-cubi' 2026-06-29 23:54:40 +02:00
Pierre MartinandClaude Opus 4.8 ade15c5635 docs: capitalize Firefox extension skeleton solution
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 23:51:48 +02:00
Pierre MartinandClaude Opus 4.8 5aa8ea2b0b docs: document dev install of the Firefox extension
Load via about:debugging as a temporary add-on (extension/manifest.json),
note its volatility across restarts, and add the web-ext lint command.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 23:41:53 +02:00
Pierre MartinandClaude Opus 4.8 0b1c022247 feat: scaffold Firefox extension skeleton with manifest validation tests
Manifest V3 (Firefox keys: background.scripts, host_permissions), a
background event page that opens a standalone list page on toolbar
click, and the placeholder list page (HTML/CSS/JS vanilla). No build
step. extension.test.ts validates manifest shape and referenced files.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 23:40:48 +02:00
Pierre MartinandClaude Sonnet 4.6 328df2d181 Initialise le projet : documentation et squelette
Extension Firefox pour publier une sélection d'événements du calendrier
Nextcloud de L'Atelier du Huit vers l'agenda de la mairie de Cugnaux.

- README : vue d'ensemble et installation
- CLAUDE.md : guide agent et contraintes structurantes
- docs/RECHERCHE.md : faits techniques vérifiés (CalDAV, formulaire, agenda, ICS)
- docs/DECISIONS.md : choix d'architecture et leur pourquoi
- package.json : Bun comme outil de dev minimaliste (pas de build au runtime)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-29 23:40:13 +02:00