Sort by recency on landing page + project detail redesign #51
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-api#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
plan-2026-02-27-browse-ux-enhancements— Phase 1Repo
pal-e-docs— the repo where the code change happensUser Story
As a visitor browsing pal-e-docs
I need the landing page to surface recently updated content first, and project pages to tell a story (overview → repos → notes)
So that the site feels like a well-organized documentation hub, not a flat alphabetical dump
Acceptance Criteria
When I visit the landing page
Then doc sections (SOPs, conventions, etc.) are sorted by most recently updated first
And projects are sorted by most recently created first
When I visit a project detail page that has a
page_note_idThen the project page note content renders at the top (through the sanitize → autolink → wrap_tables pipeline)
And the project's repos are shown below the page note
And the remaining notes feed follows (excluding the page note to avoid duplication)
Additional Information
order_by(Note.title)— change toorder_by(Note.updated_at.desc())order_by(Project.name)— change toorder_by(Project.created_at.desc())(noupdated_aton Project model)page_note_idFK already exists on projects table (PR #29). Use it to fetch and render the page note.sanitize_html() → autolink_slugs() → wrap_tables()src/pal_e_docs/routes/frontend.py,src/pal_e_docs/templates/project_notes.htmlChecklist
Related
project-pal-e-docs— parent projectissue-pal-e-docs-recency-project-detail— pal-e-docs tracking note