Padrão de tela de consentimento OAuth (conectar app/IA)

Đang mở
#1,236 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start from the hand-built reference in apps/web/src/routes/oauth/consent/_components/ in the wi app, which the issue says already contains the whole screen; compare it against the existing component conventions in this library before choosing between one ConsentScreen and the smaller pieces. The work is presentation only, so keep OAuth logic out and make the pieces accept props for app identity, redirect host, verification state, permissions with risk level, org/resource choice and actions. Done means the pieces (or the single component) are exported from the library and documented like the neighbouring screens, with prefers-reduced-motion respected for the connector and success animations.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Contexto

O wi passou a ser servidor OAuth para clientes de IA (MCP: Claude, Claude Code, Cursor). A tela de consentimento precisou de um padrão que não existe no ui e que outros produtos CodeAtlas vão repetir em qualquer "Conectar app/IA".

O que a tela precisou (montado à mão em apps/web/src/routes/oauth/consent/_components/)

  • Identidade dos dois lados: logo/iniciais do app → marca do produto, com conector animado.
  • Host de retorno em destaque (exigência do Claude: o usuário precisa ver para onde volta) e host que publicou o app.
  • Selo/alerta "App não verificado" para clientes auto-registrados (DCR/CIMD fora de allowlist).
  • Lista de permissões com nível de risco (baixo/médio/alto: ícone + cor) e explicação humana por permissão.
  • Escolha de organização e de recursos (todas / escolher).
  • Ações fixas no celular (StickyActions) e estado de sucesso animado antes do redirect.
  • Faixa de promessas de segurança.

Proposta

ConsentScreen (ou peças: AppLinkHeader, RedirectHostCard, PermissionList com risk, UnverifiedAppAlert) sem lógica de OAuth, só apresentação, com prefers-reduced-motion respeitado.

Ngôn ngữ chính
TypeScript
Star
6
Fork
3
Merge trung bình
5 giờ 21 phút
Pull request đã merge (30 ngày)
378

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codeatlasdev/ui

Tất cả issue của codeatlasdev/ui

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.