hub-client: allow user display names longer than 50 characters

Đang mở
#1,053 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
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust

Hướng nghiên cứu

Start with hub-client/src/services/storage/utils.ts and hub-client/src/services/userSettings.ts to trace username validation and updateUserName, then inspect hub-client/src/services/presenceService.ts for the presence display. Allow names of at least 100 characters and ensure presence and attribution layouts handle them without breaking; the issue suggests ellipsis as one option.

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

Mô tả

Goal

updateUserName accepts display names longer than 50 characters, so an embedding app can label a collaborator with their full name without cutting it.

Done when:

  • isValidUserName allows a larger maximum (or one an embedder can rely on for full names, e.g. 100+ characters).
  • The presence and attribution UI handles long names without breaking layout (e.g. ellipsis).

Why

  • Embedders pass real full names. The Posit Connect Quarto Hub editor (connect-satellites quartohub) labels each collaborator with their Connect first and last name. Names longer than 50 characters exist, and updateUserName throws on them (Invalid user name: must be 1-50 characters), which would stop the editor from opening.
  • The current workaround drops information. The embedder cuts the name to 50 characters before calling updateUserName, so long names show cut off in attribution and on cursors.

References

  • hub-client/src/services/storage/utils.ts (isValidUserName)
  • hub-client/src/services/userSettings.ts (updateUserName)
  • hub-client/src/services/presenceService.ts (where the name is shown)
  • Issue: quartohub: attribute edits to the Connect user instead of a per-browser id posit-dev/connect-satellites#88
Ngôn ngữ chính
Rust
Star
293
Fork
20
Merge trung bình
12 giờ 21 phút
Pull request đã merge (30 ngày)
178

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 quarto-dev/q2

Tất cả issue của quarto-dev/q2

Issue tương tự

Thêm issue về Rust

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.