Skip to content

Moderator correct-live-content page - #344

Merged
admdly merged 2 commits into
mainfrom
moderator-correct
Sep 23, 2026
Merged

admdly merged 2 commits into
mainfrom
moderator-correct

Conversation

@admdly

@admdly admdly commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Directory side of FOSSBilling/api#251 (API: FOSSBilling/api#253, merged — verified the merged contract is identical to what this branch's openapi/extensions-v2.json was generated from, so no sync update needed).

  • New account/admin/extensions/[id]/edit.astro (requireModerator, reads through the moderation view so getOwnedExtension stays owner-only): blocked states for unpublished/delisted/pending; read failures render a retryable error (404 reports not-found) instead of redirecting. POST is handled in-page like the author flow, echoing submitted values + note back on error; success purges catalogue cache, flashes, redirects to detail.
  • ExtensionForm gains optional submitLabel/cancelHref/correctionNote props (required note field with no-email copy, .textarea styling like the readme field) — author pages render unchanged.
  • getModerationExtension client wrapper + exported toOwnedExtensionDetail mapper; regenerated OpenAPI client includes ModeratorCorrect / postExtensionsByIdModeratorCorrect plus a correctExtension wrapper with no notify option.
  • Tests: client wire test (path/method/body, no notify query) + mapper test. Full suite: 169 passed, astro check clean.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-23T22:40:24.121764Z 30d9c53 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 12 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/pages/account/admin/extensions/[id]/edit.astro Outdated
Comment thread src/pages/account/admin/extensions/[id]/correct.ts Outdated
Comment thread src/components/ExtensionForm.astro Outdated

@cubic-dev-ai cubic-dev-ai Bot 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.

0 issues found across 5 files (changes from recent commits).

Auto-approved: Adds a moderator correct-live-content page and API wiring that fixes published listings directly, with necessary note, tests, and gating; no public-contract or authorization change beyond the feature it implements.

Re-trigger cubic

@admdly
admdly merged commit ba5895a into main Sep 23, 2026
9 checks passed
@admdly
admdly deleted the moderator-correct branch September 23, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant