Repository navigation
feat: add projects overview page (#4852) - #5019
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
92bd416 to
6dec812
Compare
onearmy-community-platform
|
||||||||||||||||||||||||||||
| Project |
onearmy-community-platform
|
| Branch Review |
pull/5019
|
| Run status |
|
| Run duration | 12m 00s |
| Commit |
|
| Committer | Sai Sinare |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
110
|
| View all changes introduced in this branch ↗︎ | |
Read-only admin page at /admin/projects listing every project with its author, category, difficulty, moderation status, published date or draft state, step count, comment and view counts, and remake count. Deleted projects are greyed out and not linked. Paginated, 20 per page. ModerationBadge moves out of MapPinsPage so both pages share it.
6dec812 to
4911bf0
Compare
What kind of change does this PR introduce?
What changedAdds a read-only admin page at Each row shows the title (linked to the live project page), author, category, difficulty, moderation status, published date or Draft, step count, comment and view counts, and remake count. Deleted projects are greyed out and not linked. Paginated at 20 per page, following the Comments page. As discussed in the issue, steps are shown as a count only.
Tests: Screenshots
IssueCloses #4852 Database
Checklist
|
|
Double checking you've spotted this @mariojsnunes. :) |
|
Thanks @Saisinare ! Just need to solve the conflict and is ready to merge! |
Ohk!! |
|
@mariojsnunes conflict resolved. All checks are passing except |
|
Awesome, thanks @Saisinare ! @all-contributors add @Saisinare for code |
|
I've put up a pull request to add @Saisinare! 🎉 |
|
🎉 This PR is included in version 2.170.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |




What kind of change does this PR introduce?
What changed
Adds a read-only admin page at
/admin/projects, linked from the admin sidebar.Each row shows the title (linked to the live project page), author, category, difficulty, moderation status, published date or Draft, step count, comment and view counts, and remake count. Deleted projects are greyed out and not linked. Paginated at 20 per page, following the Comments page. As discussed in the issue, steps are shown as a count only.
ModerationBadgemoves out ofMapPinsPageintosrc/pages/Admin/ModerationBadge.tsxso both pages share it.Tests:
ProjectsPage.test.tsx, a newlibraryService.server.test.tsforgetAdminPage, and an admin navigation case inadmin.spec.ts.Screenshots
Before:

After:


Mobile (375px):

Issue
Closes #4852
Database
Checklist
bun run formatandbun run test:unitpass