Skip to content

feat: add projects overview page (#4852) - #5019

Merged
mariojsnunes merged 2 commits into
ONEARMY:mainfrom
Saisinare:feat/admin-projects-page
Nov 8, 2026
Merged

mariojsnunes merged 2 commits into
ONEARMY:mainfrom
Saisinare:feat/admin-projects-page

Conversation

@Saisinare

@Saisinare Saisinare commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

  • 🐛 Bugfix
  • ✨ Feature
  • ♻️ Refactoring
  • ⚡️ Performance
  • 🧪 Tests
  • 🔧 Tools / CI
  • 📝 Documentation
  • 📦 Dependencies

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.

ModerationBadge moves out of MapPinsPage into src/pages/Admin/ModerationBadge.tsx so both pages share it.

Tests: ProjectsPage.test.tsx, a new libraryService.server.test.ts for getAdminPage, and an admin navigation case in admin.spec.ts.

Screenshots

Before:
Screenshot 2026-10-22 090433

After:
Screenshot 2026-10-22 090523
Screenshot 2026-10-22 090601

Mobile (375px):
Screenshot 2026-10-22 091134

Issue

Closes #4852

Database

  • This PR includes a schema change or migration

Checklist

  • I ran the app and checked this change myself
  • bun run format and bun run test:unit pass
  • Tests added or updated for this change

@Saisinare
Saisinare requested a review from a team as a code owner October 22, 2026 08:08
Copilot AI balanced review requested due to automatic review settings October 22, 2026 08:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Saisinare
Saisinare force-pushed the feat/admin-projects-page branch from 92bd416 to 6dec812 Compare October 22, 2026 08:24
@cypress

cypress Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

onearmy-community-platform    Run #10414

Run Properties:  status check passed Passed #10414  •  git commit ea0ccb1ba0: Merge branch 'main' into feat/admin-projects-page
Project onearmy-community-platform
Branch Review pull/5019
Run status status check passed Passed #10414
Run duration 12m 00s
Commit git commit ea0ccb1ba0: Merge branch 'main' into feat/admin-projects-page
Committer Sai Sinare
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 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.
@Saisinare
Saisinare force-pushed the feat/admin-projects-page branch from 6dec812 to 4911bf0 Compare October 26, 2026 18:02
@Saisinare

Copy link
Copy Markdown
Contributor Author

What kind of change does this PR introduce?

  • 🐛 Bugfix
  • ✨ Feature
  • ♻️ Refactoring
  • ⚡️ Performance
  • 🧪 Tests
  • 🔧 Tools / CI
  • 📝 Documentation
  • 📦 Dependencies

What changed

Adds a read-only admin page at /admin/projects. It replaces the "Coming soon" Projects placeholder under the Library section of the admin sidebar added in #5012.

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.

ModerationBadge moves out of MapPinsPage into src/pages/Admin/ModerationBadge.tsx so both pages share it.

Tests: ProjectsPage.test.tsx, a new libraryService.server.test.ts for getAdminPage, an admin navigation case in admin.spec.ts, and AdminSidebar.test.tsx updated now that Projects is a link (Research stays the only "Coming soon" item).

Screenshots

Before:
Screenshot 2026-10-22 090433

After:
download

Mobile (375px):
download

download

Issue

Closes #4852

Database

  • This PR includes a schema change or migration

Checklist

  • I ran the app and checked this change myself
  • bun run format and bun run test:unit pass
  • Tests added or updated for this change

@benfurber

Copy link
Copy Markdown
Member

Double checking you've spotted this @mariojsnunes. :)

@mariojsnunes

Copy link
Copy Markdown
Contributor

Thanks @Saisinare ! Just need to solve the conflict and is ready to merge!

@Saisinare

Copy link
Copy Markdown
Contributor Author

Thanks @Saisinare ! Just need to solve the conflict and is ready to merge!

Ohk!!

@Saisinare

Copy link
Copy Markdown
Contributor Author

@mariojsnunes conflict resolved. All checks are passing except e2e-electron, which needs a maintainer to approve the workflow. Could you approve it when you get a chance? Thanks!

@mariojsnunes
mariojsnunes merged commit 5f63e14 into ONEARMY:main Nov 8, 2026
11 checks passed
@mariojsnunes

Copy link
Copy Markdown
Contributor

Awesome, thanks @Saisinare !

@all-contributors add @Saisinare for code

@allcontributors

Copy link
Copy Markdown
Contributor

@mariojsnunes

I've put up a pull request to add @Saisinare! 🎉

@onearmy-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.170.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[admin panel] Projects

5 participants