auth plugin: own the public profile route /profile/$accountId (generic identity profile with child-app extension sections)

Đang mở
#685 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/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
authentication, frontend

Hướng nghiên cứu

Start with the auth plugin (@everything-dev/auth-plugin) and its existing /settings/profile, /login, /onboard and /admin/users routes, then read #661 for the extension-point design this depends on and #684 for the composed-runtime invariant. Work out how a plugin-owned public /profile/$accountId route can take section extensions with ordering and per-section failure isolation. Done means the route renders identity data for any account without a session, and a child app can add a section that renders inside the plugin layout.

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

Mô tả

Problem

Public account profiles (/profile/$accountId) are a standard identity surface every child app needs (user-nav "Profile" links, leaderboard/campaign signer links), but each child currently hand-rolls the route. In our app that hand-rolled route is also where a composed-runtime invariant surfaced (#684).

Proposal

The auth plugin (@everything-dev/auth-plugin), which already owns /settings/profile, /login, /onboard, and /admin/users, also ships a public /profile/$accountId page:

  • Generic identity profile: NEAR social profile data (name, image), badges, linked auth methods
  • Declared extension point per #661 so child apps add their own sections below the identity fields (e.g. our crosspost posts list), rendered inside the plugin's layout, in configured order, with failure isolation per section
  • Auth gate only where appropriate (public viewing of other accounts should not require a session)
Child impact

Apps delete their local _authenticated/profile/ routes and link to the plugin-owned route; app-specific content moves into the extension sections.

Related
  • #661 (Settings → Profile extension point — same mechanism, different surface)
  • #684 (composed-runtime invariant that surfaced on the hand-rolled profile route)
Ngôn ngữ chính
TypeScript
Star
5
Fork
3
Merge trung bình
11 giờ 58 phút
Pull request đã merge (30 ngày)
168

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 NEARBuilders/everything-dev

Tất cả issue của NEARBuilders/everything-dev

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.