Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add generated labels to social link transforms

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

@qianmao1989 đang làm issue này rồi.

Từ ngày 16/5/2026.

  • #43 của @qianmao1989 — đang mở

Đá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
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu bằng việc xác định package @fujocoded/zod-transform-socials và các schema input, output cho mạng xã hội của nó, hoặc entry point của transform. Theo dõi cách URL, platform, username và icon hiện được tạo, sau đó triển khai thứ tự ưu tiên của label được mô tả trong issue. Công việc được hoàn thành khi input dạng object chấp nhận label tùy chọn và mọi liên kết mạng xã hội đã transform đều có label được tạo như mong đợi.

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

Mô tả

good first issue zod-transform-socials

Add a generated label field to @fujocoded/zod-transform-socials social link output. This can be used as a user-facing label for the link text, list item label, etc.

Why

Without a label field, custom platforms or duplicate accounts on a platform have no central place to be specified or overridden. Cases include: distinguishing a personal social account vs an art social account; or giving a name to a custom site.

Example

Input:

contacts:
  - https://github.com/FujoWebDev
  - url: https://www.fujocoded.com/
    label: Official Website
    icon: lucide:globe
  - url: https://store.fujocoded.com
    label: Merch Store
    icon: lucide:shopping-bag
  - https://fujoweb.dev

Output:

[
  { url: "https://github.com/FujoWebDev", platform: "github", username: "fujowebdev", icon: "simple-icons:github", label: "github" },
  { url: "https://www.fujocoded.com/", platform: "custom", username: null, icon: "lucide:globe", label: "Official Website" },
  { url: "https://store.fujocoded.com", platform: "custom", username: null, icon: "lucide:shopping-bag", label: “Merch Store" },
  { url: "https://fujoweb.dev", platform: "custom", username: null, icon: null, label: “fujoweb.dev" },
]

Todo

  • Add optional label?: string to object social input.
  • Add label: string to transformed social output.
  • Generate labels with this precedence:
    • explicit input label
    • known platform name when platform !== "custom"
    • fallback from url, stripping leading www.
Ngôn ngữ chính
TypeScript
Star
27
Fork
7
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
1

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 FujoWebDev/fujocoded-plugins

Tất cả issue của FujoWebDev/fujocoded-plugins

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.