feat: sort by recency + project detail redesign (#51) #52
No reviewers
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!52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "51-recency-project-detail"
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?
Summary
Changes
src/pal_e_docs/routes/frontend.py: Changedlanding()sort queries from alphabetical to descending timestamps. Enhancedbrowse_project_notes()to fetch and render page_note through the full sanitize/autolink/wrap_tables pipeline, query project repos, and exclude page_note from the notes feed.src/pal_e_docs/templates/project_notes.html: Restructured template to render page note content at top, repos card grid below, then notes list. Styled consistently with existing repos listing page.Test Plan
PALDOCS_DATABASE_PATH=:memory: python -m pytest)ruff format— no changes needed (already formatted)ruff check— all checks passedReview Checklist
Related Notes
plan-2026-02-27-browse-ux-enhancements— Phase 1 implementationReview Round 1 — Clean Pass
Reviewed the full diff (2 files, +76/-18 lines). No issues found.
What was checked:
Project.created_at,Repo.created_at,Note.updated_at) verified to exist inmodels.py. Descending order applied correctly.sanitize_html -> autolink_slugs -> wrap_tables) matchesbrowse_note()pattern. Guard checks bothpage_note_idandpage_noterelationship before rendering.Note.id != project.page_note_idfilter only applied whenpage_note_idis truthy — avoids excludingNone.note-contentclass for rendered page note content,card-gridfor repos,note-listfor notes feed. All CSS classes exist inbase.html. Tag row div now usesclass="tag-row"(was bare<div>— minor fix).Verdict: Ready for user review.
ceac1bafc9d560a191c0