CodeForPhilly / CodeForPhilly/codeforphilly-ng
RelativeTime component for the 13 <time dateTime title> sites
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1
- Forks
- 1
- Ø Merge
- 5 T. 3 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
## 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).
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 76/100