qubic/explorer-frontend

To use user-friendly format for the timestamp in the trx cell

Opened this issue · 0 comments

Currently, time stamp is displaying the full date
image

As defined in the Figma, user-friendly format should be used and the full date between parenthesis:
image

User-friendly format suggestion:

  • Less than 1 second: Displayed as "Just now."
  • Within 1 to 59 seconds: Displayed as "x seconds ago."
  • Minutes ago: Posts made a few minutes ago will show as "x minutes ago."
  • Hours ago: Posts made within the last day will appear as "x hours ago."
  • Yesterday: Posts from the previous day are labeled as "Yesterday."
  • Days ago: Posts older than one day but less than a week will be shown as "x days ago."
  • Weeks ago: Posts older than a week but less than a month will appear as "x weeks ago."
  • Beyond a week: ?? (@Orestasas could you please define in this case which would be the expected format?)