Component groups: max-components prop (limit how many components a group holds)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- nuxt
- Ambito
- full-stack
Direzione di ricerca
The work spans the CwaComponentGroup prop, the synchroniser that writes it, the admin Group tab and add/merge options, and an api-components-bundle release containing #467, so start by confirming that release exists. Read commit 6789579f in cwa-nuxt-module to see how allowedComponents is synced, then mirror that path for maxComponents. Done means a full group disables adds, a refused save shows the API message, and the fixture builder accepts max: n.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
cwa-nuxt-module#398 (commit 6789579f, unreleased after 2.0.0-alpha.17) with api-components-bundle#467.
<CwaComponentGroup> takes :max-components="n" alongside allowed-components:
- The synchroniser writes it to the group as it does
allowedComponents: omitted leaves the stored value,nullclears it. Anything but a positive whole number logs a warning and is not sent. - The count is the group's positions, as the API counts them: a dynamic page-data slot counts as one, and a draft and its published component count once.
- A full group: the Group tab's Add to start/end are disabled with the reason on hover, the manager's add options are left out, and the stranded-group merge doesn't offer it as a target unless it has room for every component.
- A group over its limit (the limit was set after content existed) shows a warning in the Group tab. Nothing is removed; it takes no more components until it's under the limit.
- If a save is refused anyway, the API's message ("The component group
<reference>is full …") shows in the admin's error notification. - Needs an api-components-bundle release containing #467; the fixture builder takes
max: nongroup(...).
Example: <CwaComponentGroup reference="headerButton" :location="$cwa.resources.layoutIri.value" :allowed-components="['HeaderButton']" :max-components="1" />
- Lingua principale
- Vue
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di components-web-app/docs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
components-web-app/docs#245 ·
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
components-web-app/docs#244 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
components-web-app/docs#243 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
components-web-app/docs#241 ·
-
Document the generate-fixtures asset store (fixtures.assets, $cwa->asset(), prune-fixture-assets)Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
components-web-app/docs#242 ·
Tutte le issue di components-web-app/docs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/rocketmq-dashboard#6896 ·
I maintainer di solito rispondono entro 3 giorni
-
Endpoint links in the tag operations list are below the 24px target sizeForse già presa @AdzerKI l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
keyxmakerx/Chronicle#1469 ·
I maintainer di solito rispondono entro 1 giorno
-
area: runtime type: bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
eknowledger/toolbench#154 ·
I maintainer di solito rispondono entro 1 giorno
-
bug confirmed issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
open-webui/open-webui#32635 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno