算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
connect-widget【设计与创意】Operates the embeddable Connect widget iframe, client-side session UX, parent-child postMessage, OAuth popup recovery, theme updates, connection creation, folder selection, and sync progress handling.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an Airweave task touches the embeddable Connect widget itself: iframe mount and shutdown, session token request and validation, parent-child messaging, live theme updates, OAuth popup recovery, connection creation, folder selection, or sync progress rendering.
Do not use this sub-skill for backend endpoint lifecycle, dashboard UI, MCP transport, or Monke orchestration. For route and schema details, cross-link to backend-api. For dashboard-hosted launch flows around the widget, cross-link to frontend-dashboard.
CONNECT_READY, token exchange, trusted-origin behavior, NAVIGATE, SET_THEME, STATUS_CHANGE, CONNECTION_CREATED, and CLOSE.SET_THEME messages, and the widget should keep rendering with the latest theme.all and connect can launch new connections; manage and reauth focus on existing connections and reauth flows.| User intent | Start here | Notes |
|---|---|---|
| "How does the iframe handshake work?" | messaging-contract.md | Covers CONNECT_READY → token exchange → status updates. |
| "Why did OAuth fail or reopen?" | oauth-and-modes.md | Covers popup-blocked recovery, callback posting, and claim-token verification. |
| "How does folder selection behave?" | oauth-and-modes.md | Covers the selection step and back-out cleanup. |
| "Why is sync progress missing or stale?" | oauth-and-modes.md and troubleshooting.md | Covers SSE subscription, reconnecting, and terminal progress states. |
| "Why does the widget close or show an error?" | troubleshooting.md | Covers origin mismatch, timeouts, session mismatch, and unsupported launch states. |
Later verification should prioritize the native widget tests and unit anchors:
connect/tests/e2e/session.spec.tsconnect/tests/e2e/widget.spec.tsconnect/tests/e2e/sdk.spec.tsconnect/src/components/SyncProgressIndicator.test.tsxconnect/src/hooks/useSyncProgress.test.ts