gray-mueller / gray-mueller/full-stack-document-solution

Enatega Customer Application : In restaurant reviews ,Displaying "0 days ago" for recent reviews can appear awkward and may confuse users

Đang mở
#8 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Displaying "0 days ago" for recent reviews can appear awkward and may confuse users. To enhance clarity and provide a more intuitive user experience, consider implementing a dynamic time display that adjusts based on the elapsed time since the review was posted.

Image

Describe the solution you'd like

Dynamic Time Display Format:

Less than 1 minute ago: Display "Just now".
1 to 59 minutes ago: Display "X minutes ago".
1 to 23 hours ago: Display "X hours ago".
1 to 29 days ago: Display "X days ago".
1 to 11 months ago: Display "X months ago

Example Logic:

If the review was posted less than a minute ago, display "Just now".
If the review was posted between 1 and 59 minutes ago, display "X minutes ago".
If the review was posted between 1 and 23 hours ago, display "X hours ago".
If the review was posted between 1 and 29 days ago, display "X days ago".
If the review was posted between 1 and 11 months ago, display "X months ago".
If the review was posted one year or more ago, display "X years ago".

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.