- AGENT.md: §7 full capability catalog (need → import), §0b/§3/§6 on RenderForm, SiteProviders, createPageRoute, re-exported routes, plugin section fields, resolveLink/resolveNav - PROGRAMISTA §2.4, §2.7–2.8 rewritten; §6 items 28–33 (28: FormRenderer leaked the Emails tab) - forms, links, blocks, pages, consent, turnstile, notifications, seo, mcp, i18n, deployment docs - ipal-form: RenderForm block, formClasses, CustomForm example (FormRenderer template removed), seed template handles steps and option labels per language - ipal-nav, ipal-block, ipal-setup, ipal-upgrade, ipal-seo-check, ipal-consent-check, vibe.md - ipal-audit: re-export routes and SiteProviders satisfy the mandatory set; flags form-engine copies, project section fields / navigation, server entries in client components - test/docsConsistency: docs imports exist in code; every public export is documented - CHANGELOG 1.9.2 Co-Authored-By: Claude Opus 5.5 <[email protected]>
2.1 KiB
2.1 KiB
name, description
| name | description |
|---|---|
| ipal-nav | Builds the site header, footer, mobile menu and company data in an ipal-kit project — Header/Footer/Company globals with buildLinkField from the plugin, server-side link resolution (resolveNav from the plugin), a small client MobileNav, legal links from System Pages, revalidation on change. Use when creating or changing navigation, menu, header, footer, contact details, social links or the company global. |
ipal-nav
Gotowy kod: resources/kod-nawigacji.md (ten skill). Reguły: AGENT.md §6.8.
Wymaga prymitywów z ../ipal-block/resources/kod-sekcji.md (jak skill ipal-block, krok 0).
Plan (zapisz, potem od razu kod — AGENT.md §0a)
- pozycje menu (jeden poziom podmenu, nie głębiej), CTA w nagłówku (
links), - kolumny stopki, notka,
- model
Companydla rynku z AGENTS.md (PL: NIP/REGON, AU: ABN, US: EIN…), - etykiety a11y (przycisk menu itp.) — pola w panelu.
Kod
src/globals/Header.ts,Footer.ts— z §6.8;Company.ts— dane firmy (teksty localized),access.read: () => true.- Hook
afterChangena każdym globalu:revalidatePath('/', 'layout')(wstrzyknięty znext/cache, hooks.md). - Menu:
await resolveNav(header.navItems, locale)zlib/content(plugin) — linki rozwiązane na serwerze do{ href, label, internal, newTab, targetProps, children }. Nie twórzlib/navigation.ts. src/components/layout/Header.tsx,Footer.tsx(serwer),MobileNav.tsx('use client', tylko stan otwarcia, dane przez props,import type { NavItem } from '@intecion/ipal-kit').- Linki prawne w stopce z ról System Pages (
getSystemPagePath+ tytuł strony) — nie jako ręczne pozycje. Rok w copyright z kodu, nazwa zCompany. - Logo z Site Settings przez
<Media>— nie duplikuj pola w Header. - Podepnij w
src/app/(frontend)/[locale]/layout.tsx(pobranie globali przez cached gettery wlib/, przekazanie jako props).
Weryfikacja
Skill ipal-audit. Ręcznie: dodanie pozycji menu w panelu widać od razu po zapisie; menu mobilne działa z klawiatury (Tab, Enter, Esc).