Add extension reporting system for community moderation#721
Draft
shyim wants to merge 1 commit into
Draft
Conversation
Let users flag a store extension for performance, security,
compatibility, stability or other issues. Reports start in a pending
state and are only surfaced to other users once an admin approves them;
approved reports appear as an aggregated community warning badge on the
"My Extensions" list and the per-environment extensions tab.
- DB: new store_extension_report table (migration 000014 + schema.sql)
- API: POST /account/extensions/{name}/report plus admin list/approve/
reject endpoints, with approval audit-logged
- Account and environment extension lists carry approved report summaries
- Frontend: report modal, warning badge, and an admin review page
(route + nav + en/de translations)
- Tests for submit validation and the full submit→moderate→surface flow
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PTa5cyD5et3bj76bfD1qL
6f9d00b to
2aec75e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a community-driven extension reporting system that allows authenticated users to flag store extensions for issues (performance, security, compatibility, stability, or other), with admin moderation capabilities to approve or reject reports. Approved reports surface as community warnings on extension listings.
Key Changes
Backend (API)
POST /account/extensions/{extensionName}/report- allows users to submit extension reports with category and commentGET /admin/extension-reports- list reports with filtering by status (pending/approved/rejected)POST /admin/extension-reports/{reportId}/approve- approve a report to make it community-visiblePOST /admin/extension-reports/{reportId}/reject- reject a reportstore_extension_reporttable tracking reports with status, reviewer info, and timestampsFrontend
ReportExtension.vue) - user-facing dialog to submit extension reports with category selection and comment textareaListExtensionReports.vue) - paginated admin interface to review pending reports with filtering, approve/reject actions, and reporter/reviewer informationExtensionReportBadge.vue) - visual indicator showing count of approved reports per category with tooltip breakdownAPI Schema
ExtensionReportRequest,ExtensionReportSummary,AdminExtensionReport,AdminExtensionReportsResponseExtensionReportRequestCategorywith validation methodreportsfield for community warningsImplementation Details
https://claude.ai/code/session_016PTa5cyD5et3bj76bfD1qL