Docs: reconcile agent, developer and module docs with the code

- AGENT.md, skills, PROGRAMISTA, vibe, README and module pages checked
  against src/ and package.json; every mismatch fixed (consent/analytics
  loading, revalidation scope, generateStaticParams, construction gating,
  Turnstile fail modes, email/Graph, MCP, i18n, links, slug, hooks, ...)
- New pages: frontend.md, media.md, integrations.md; docs/README.md now
  indexes every page
- Main rule (plugin helps, never limits) at the top of AGENT.md,
  PROGRAMISTA.md, docs/README.md, README and the setup/plugin-gap skills;
  module pages gain a "Wyłączenie, nadpisanie, rozszerzenie" section
- README/PROGRAMISTA: stop telling projects to install packages ipal-kit
  already depends on; peer table; publish flow matches prepublishOnly
- ipal-skills: refuse --dest without a value or pointing at the project
  root (previously could delete ipal-* folders in cwd)
- docsConsistency: option keys, IPAL_* env names, relative links, README
  index, AGENT.md section refs, skill frontmatter, frontend.md helper keys,
  no `pnpm add` of own dependencies

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-22 17:06:52 +02:00
co-authored by Claude Opus 5.5
parent 12fbd424a5
commit 6e0f59c62b
49 changed files with 1736 additions and 605 deletions
+27 -1
View File
@@ -162,6 +162,23 @@ return <html lang={locale} {...htmlAttrs}>...</html>
Provider i tak re-aplikuje na kliencie i synchronizuje. To tylko eliminuje flash.
### Stan i atrybuty (`A11yState`)
Cookie `a11y-prefs` (`A11Y_COOKIE`, JSON, `path=/`, `max-age` 1 rok, `samesite=lax`).
Helpery `A11Y_COOKIE`, `A11Y_DEFAULT`, `parseA11y`, `serializeA11y`, `a11yAttributes`
są w `@intecion/ipal-kit` (nie w `/client`). `A11yState` jako typ jest w obu entry.
| Klucz stanu | Wartości | Atrybut na `<html>` (brak = domyślne) |
|---|---|---|
| `textSize` | `0`–`3` | `data-a11y-text="1..3"` |
| `lineHeight` | `0`–`2` | `data-a11y-line="1..2"` |
| `contrast` | `'default' \| 'high' \| 'inverted'` | `data-a11y-contrast="high\|inverted"` |
| `grayscale` | boolean | `data-a11y-grayscale="on"` |
| `underlineLinks` | boolean | `data-a11y-underline="on"` |
| `readableFont` | boolean | `data-a11y-font="readable"` |
| `reduceMotion` | boolean | `data-a11y-motion="reduce"` |
| `bigCursor` | boolean | `data-a11y-cursor="big"` |
---
## 4. Osobny przycisk otwierający (opcjonalnie)
@@ -190,4 +207,13 @@ to **opcja, nie obowiązek** — dodawaj gdy klient wymaga, nie z automatu.
Gdy dodajesz: widget sam w sobie NIE czyni strony w pełni dostępną — to pomoc dla
użytkownika. Pełna dostępność to też semantyczny HTML, alt teksty, nawigacja
klawiaturą, kontrast bazowy. Widget uzupełnia, nie zastępuje. Nie sprzedawaj
klientowi „mamy widget = jesteśmy zgodni z WCAG". Patrz PROGRAMISTA.md §5.
klientowi „mamy widget = jesteśmy zgodni z WCAG". Patrz [dev/PROGRAMISTA.md](dev/PROGRAMISTA.md) §5.
## Wyłączenie, nadpisanie, rozszerzenie
- **Wyłączenie:** moduł jest opt-in — bez `AccessibilityProvider` / `AccessibilityWidget` nic się nie dzieje
(brak opcji w `ipalKit`, brak pól w panelu).
- **Nadpisanie:** `classNames` i `texts` widgetu; cały wygląd efektów to CSS projektu.
- **Rozszerzenie:** własny UI na `useAccessibility()` (`state`, `set`, `reset`); SSR helpery
`parseA11y` / `a11yAttributes` / `serializeA11y` / `A11Y_DEFAULT`. Zestawu opcji (`A11yState`) obecnie
nie da się rozszerzyć bez zmian w pluginie.