a2ui-project / a2ui-project/a2ui

[renderers] Ensure "Graceful Degradation" works.

Aperta
#1,505 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
component: angular renderer component: lit renderer component: react renderer P2 type: feature/enhancement
Lingua principale
TypeScript
Stelle
16.4k
Fork
1.3k
Merge medio
3g 15h
PR unite (30g)
134

Descrizione

Ensure the current renderers support [graceful degradation](https://a2ui.org/concepts/catalogs/#graceful-degradation) of unknown catalog components:

> If an Agent uses a new component/property on an older client, the client MUST handle it gracefully (e.g., ignoring it or rendering a text fallback or a "Not Supported" placeholder) rather than crashing. The client may also report a validation error back to the agent, allowing the agent to self-correct and downgrade the UI automatically.

We need to ensure there's sufficient **testing** for this feature; and that our renderers don't crash when receiving an unexpected widget, AND report an error back to the agent to let it know that something's not rendering correctly.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Esamina i renderer nella codebase per capire come gestiscono i componenti di catalogo sconosciuti. Scrivi test che simulino la ricezione di un widget imprevisto e verifica che il renderer non vada in crash, esegua un degrado corretto (ad esempio, mostrando un fallback) e segnali un errore all’agent. Controlla le suite di test esistenti per i renderer per vedere se esistono test simili e dove aggiungerne di nuovi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
frontend, testing
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.