Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Sorting and Timestamp Display in "Your Posts" Section #1088

Closed
John-Paul-Larkin opened this issue Oct 7, 2024 · 3 comments
Closed

Post Sorting and Timestamp Display in "Your Posts" Section #1088

John-Paul-Larkin opened this issue Oct 7, 2024 · 3 comments

Comments

@John-Paul-Larkin
Copy link
Member

Context

When users click on "Your Posts," they are presented with three tabs: Drafts, Scheduled, and Published.

Problem 1: Drafts Tab - Incorrect Sorting
In the Drafts tab, posts are not loaded in chronological order based on their last update. Although the posts load in the same order every time, newly added drafts can appear randomly in the list instead of appearing at the top.

Problem 2: Published Tab - Handling Edited Posts
In the Published tab, posts are currently ordered by the "Published on" date. While this behavior is correct, we want to account for posts that have been edited after being published.

Expected Behavior

Problem 1:
Add a "Last updated at" timestamp to the bottom of each draft card.
Sort the posts in the Drafts tab in descending order, by the "Last updated at" timestamp (newest updates first).

Problem 2:
If a published post has been edited, replace the "Published on" date with the "Last updated" timestamp on the post's card.

Sort all posts chronologically, showing the most recent at the top. For edited posts, use the "Last updated" timestamp for sorting. For unedited posts, use the "Published on" date for sorting. Both edited and unedited posts should be sorted together, without giving precedence to either timestamp.
Also, if a post has been edited it should say "Last updated" instead of "Published on"

If this is unclear please watch the livestream starting from 30:40, where we discuss this issue

Current Behavior

Drafts have no sort order, or timestamp.

Drafts posts

@John-Paul-Larkin John-Paul-Larkin added the good first issue Good for newcomers label Oct 7, 2024
@HarshitT00
Copy link
Contributor

want to work on this one

@John-Paul-Larkin
Copy link
Member Author

Awesome @HarshitT00
I assigned you.

@HarshitT00
Copy link
Contributor

Added a PR for this issue have a look and could you please add hacktoberfest label also
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants