CodeForPhilly / CodeForPhilly/codeforphilly-ng

RelativeTime component for the 13 <time dateTime title> sites

オープン
#168 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
1
フォーク
1
平均マージ
5日 3時間
マージ済み PR(30日)
9

説明

## Context

PR #157 converted every relative or `title`-only date in `apps/web` to `` — 13 sites after the sweep, across `ActivityCard`, `HelpWantedCard`, `BlogIndex`, `BlogDetail`, `Account`, `AccountClaim`, `StaffAccountClaimQueue`, `PersonDetail`, `ProjectDetail`.

## Problem

Three attributes and two formatter calls per site, all identical. The next date rendered in the app will likely drop one of them (that is exactly how three sites were missed on the first pass of #157).

## Proposal

A `RelativeTime` component (`apps/web/src/components/RelativeTime.tsx`) taking `iso` and an optional `className`, rendering the `

Deferred from `plans/a11y-mechanical.md` (PR #157).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with apps/web/src/components/RelativeTime.tsx and review PR #157 plus plans/a11y-mechanical.md for the existing date patterns. Check the 13 named sites across ActivityCard, HelpWantedCard, BlogIndex, BlogDetail, Account, AccountClaim, StaffAccountClaimQueue, PersonDetail, and ProjectDetail. Done means those sites use the shared component with their needed props and retain the dateTime, absolute title, relative text, and any prefixes.

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

評価

技術スタック
typescript
領域
frontend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
76/100

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

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