a2ui-project / a2ui-project/a2ui
[renderers] Ensure "Graceful Degradation" works.
- 主要言語
- TypeScript
- スター
- 16.4k
- フォーク
- 1.3k
- 平均マージ
- 3日 15時間
- マージ済み PR(30日)
- 134
説明
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.
コントリビューションガイド
調査の方向性
コードベースのレンダラーを調べて、未知のカタログコンポーネントをどのように処理しているかを理解します。予期しないウィジェットを受信した状況をシミュレートするテストを書き、レンダラーがクラッシュせず、適切に縮退し(例: フォールバックを表示する)、エラーをエージェントに報告することを確認します。レンダラーの既存のテストスイートを確認し、同様のテストが存在するか、また新しいテストをどこに追加すべきかを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- frontend, testing
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100