thunderbird / thunderbird/services-ui

Component to display relative dates

Open
#326 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Vue
Stars
9
Forks
1
Avg merge
6h 58m
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.

Presenting relative dates should be displayed in a consistent way, but there are enough details to consider to package them as reusable component.

Describe the solution you'd like

  • Use Intl.RelatieTimeFormat() as the foundation.
  • Wrap the date in a <time> tag for better semantics.
  • Show the full, precise timestamp on hover.
  • At least allow presenting "short" format dates, possibly long format if we need it.

Both Stormbox and Accounts settings need to display relative dates.

Describe alternatives you've considered

  • Considered one-off implementation in accounts, but this is expected to a common pattern we'll want to re-use.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the shared components area of this Vue services-ui repository and review the Current Signins context linked in the issue. Build the reusable component around Intl.RelativeTimeFormat, with time semantics, hover timestamps, and short or long display formats. Done means Stormbox and Accounts can use the same component for consistent relative dates.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.