Docs: admin languages and texts, wording rule for agents, new screen names

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-27 15:46:25 +01:00
co-authored by Claude Opus 5.5
parent 6b46bc0c14
commit 0a2374db18
45 changed files with 443 additions and 360 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
---
name: ipal-nav
description: 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.
description: 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
@@ -27,9 +27,9 @@ Requires the UI primitives from `../ipal-block/resources/section-code.md` (like
Do not create `lib/navigation.ts`.
4. `src/components/layout/Header.tsx`, `Footer.tsx` (server), `MobileNav.tsx`
(`'use client'`, open state only, data via props, `import type { NavItem } from '@intecion/ipal-kit'`).
5. **Legal links in the footer** from the System Pages roles: `getSystemLinks(locale)` (href + page
5. **Legal links in the footer** from the System pages roles: `getSystemLinks(locale)` (href + page
title) — not as manual items. Copyright year from code, name from `Company`.
6. Logo from Site Settings via `<Media>` — do not duplicate the field in Header.
6. Logo from Site settings via `<Media>` — do not duplicate the field in Header.
7. Wire it in `src/app/(frontend)/[locale]/layout.tsx` (fetch the globals through
cached getters in `lib/`, pass them as props).
@@ -7,7 +7,7 @@
Navigation, footer and company data are **project globals** (the model depends on the client
and the country), built from the same shared fields as sections. Logo and name live in
Site Settings — do not duplicate them in Header.
Site settings — do not duplicate them in Header.
```ts
// src/globals/Header.ts
@@ -79,7 +79,7 @@ export const Footer: GlobalConfig = {
```
- **Legal links in the footer** (privacy policy, cookies, terms): `await getSystemLinks(locale)` from `lib/content`
— href and label (page title) from System Pages; do not add them by hand to `columns`, do not write labels in code.
— href and label (page title) from System pages; do not add them by hand to `columns`, do not write labels in code.
- Highlighted menu item / button in a different colour = a style in the admin panel:
`buildLinkField({ appearances: ['default', { label: 'Highlighted', value: 'highlight' }] })` → a class in the project.
- **Company data** (name, address, NIP/ABN, phone) — the project's `company` global;
@@ -117,7 +117,7 @@ export async function Header({ header, locale }: { header: HeaderData; locale: s
return (
<header className="border-b">
<nav className="container flex items-center justify-between py-4">
{/* logo: Site Settings → <Media> */}
{/* logo: Site settings → <Media> */}
<ul className="hidden gap-6 md:flex">
{items.map((item) => (
<li key={item.href}>