Added more agent skills

This commit is contained in:
2026-10-13 19:07:03 +02:00
parent 0ccc7e5064
commit 80d8b7102c
80 changed files with 2802 additions and 390 deletions
+22
View File
@@ -26,6 +26,28 @@ fields: [
| `disableLabel` | `false` | bez etykiety (link owija kartę / obraz) — tylko `buildLinkField` |
| `required` | `false` | wymagane pola celu i etykiety |
| `maxRows` | `2` | tylko `buildLinksField` |
| `labels` | `{ singular: 'Button', plural: 'Buttons' }` | tylko `buildLinksField` — panel: „Add Button”; lista linków: `{ singular: 'Link', plural: 'Links' }` |
`buildLinksField` ma wbudowany `rowLabel`: zwinięty wiersz pokazuje etykietę
przycisku („Contact us”), nie „Button 01”. Wymaga wpisu w importMap —
`pnpm payload generate:importmap` po aktualizacji pluginu.
## Czytelne wiersze w innych tablicach — `rowLabel`
```ts
import { rowLabel } from '@intecion/ipal-kit'
{
name: 'items',
type: 'array',
labels: { singular: 'Feature', plural: 'Features' }, // „+ Add Feature”
admin: { initCollapsed: true, components: rowLabel('heading', 'Feature') },
fields: [/* … */],
}
```
`rowLabel(fields, fallback)` — ścieżki w wierszu (np. `'heading'`, `['name', 'link.label']`),
pierwsza niepusta wygrywa (relacja/upload → `title`/`name`/`alt`/`filename`); wszystkie
puste → „Feature 02”. Komponent: `@intecion/ipal-kit/admin#RowLabel`. Zasady panelu: AGENT.md §6.5a.
Wartość linku: `type` (`internal` strona · `external` URL, `mailto:`, `tel:`,
`#anchor` · `file` upload), `page`, `url`, `file`, `label` (localized), `newTab`,