Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add generated labels to social link transforms

オープン
#42 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@qianmao1989 がすでに取り組んでいます。

2026年5月16日 から。

  • #43 @qianmao1989 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
tooling

調査の方向性

まず、@fujocoded/zod-transform-socials パッケージと、そのソーシャル入力・出力スキーマ、または transform のエントリーポイントを見つけます。URL、プラットフォーム、ユーザー名、アイコンが現在どのように生成されているかを追跡し、その後、issue に記載された label の優先順位を実装します。オブジェクト入力で任意の label を受け付け、変換されたすべてのソーシャルリンクに期待される生成 label が設定されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
27
フォーク
7
平均マージ
6分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FujoWebDev/fujocoded-plugins のほかの issue

FujoWebDev/fujocoded-plugins の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。