Added more agent skills
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user