Files
andrearuffiniandClaude Opus 5.5 a651519dbe feat: read opening hours from Google Business Profile
Places API script normalizes regular and special hours; build uses a
snapshot, an orari sidecar refreshes /dati/orari.json every 6 hours for
the open-now sign. Adds the company legal name. Key stays in .env.server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 16:13:35 +01:00

22 lines
1.7 KiB
Markdown

# Module map
## Top-level areas
- `src/pages/` → site pages: `index`, `officina`, `servizi`, `dove-siamo`, `contatti`, plus `sitemap.xml`
- `src/layouts/Base.astro` → HTML shell, meta/OG, canonical, AutoRepair JSON-LD, header/footer, reveal script
- `src/components/` → `Insegna` (open-now sign + weekly hours), `ServiziLista`, `Marchi`, `Faq` (+ FAQPage JSON-LD), `BloccoContatti`, `StripFoto` (3-photo strip)
- `src/data/officina.ts` → single source of business data (NAP, legal name, services, FAQ)
- `src/data/orari.ts` → opening hours: Google snapshot `orari-google.json` or fallback (ADR 0005)
- `scripts/orari-google.mjs` → reads hours from Places API (deploy + `orari` container on the server)
- `src/styles/global.css` → design tokens and shared styles (ADR 0002)
- `public/` → favicon, robots.txt, partner logos
- `src/assets/home/`, `src/assets/officina/` → page photos (demonstrative, AI-generated; optimized by astro:assets via `StripFoto`)
- `design/proposte/` → static design proposals (reference; 02 is the chosen direction)
- `design/assets/sito-attuale/` → images downloaded from the current site
- `docs/analisi/`, `docs/progetto/` → audit and development plan
- `docs/` (adr, context, runbooks, handoffs), `coordination/`, `.gitea/` → workflow
- `Dockerfile`, `docker/nginx.conf`, `docker-compose.yml`, `deploy.sh` → container image and deploy (ADR 0004)
- `.claude/launch.json` → preview configs: `sito` (Astro dev, 4321), `proposte` (4173)
## Important flows
- Opening hours: Google Business Profile → Places API → `orari-google.json` (build: text, table, JSON-LD) and `/dati/orari.json` (runtime: Insegna "open now", special closures)