Skip to content

feat(admin): normalize roadmap and publish safety#11

Merged
coding-hui merged 3 commits into
mainfrom
codex-admin-roadmap-publish-safety-main
May 17, 2026
Merged

feat(admin): normalize roadmap and publish safety#11
coding-hui merged 3 commits into
mainfrom
codex-admin-roadmap-publish-safety-main

Conversation

@coding-hui
Copy link
Copy Markdown
Owner

@coding-hui coding-hui commented May 17, 2026

Summary

  • Normalize the admin module route baseline and remove legacy admin redirects.
  • Add the Superpowers roadmap/spec documents plus the internal .tech execution plan.
  • Move paper and exam publish-safety rules into backend services so direct API calls cannot publish invalid content.
  • Preserve the admin new-paper save flow by saving ready published papers as Draft first, saving the outline, then applying Published status.

Why

The admin UI exposes pre-publish checks and allows selecting Published while creating a ready paper. Backend APIs still need to reject direct invalid publish attempts, so the UI save flow now matches the service contract: content is persisted first, then status is promoted after validation.

Validation

  • go test ./internal/library -run 'PublishPaper' -v
  • go test ./...
  • pnpm --dir apps/admin jest --runInBand
  • pnpm --dir apps/admin lint
  • pnpm --dir apps/admin build
  • Chrome regression for Batch 0 routes and paper save-bar readiness.
  • Chrome regression for Batch 1 publish safety through http://localhost:8004 against API 8083: empty paper publish rejected, draft-paper exam publish rejected, valid paper/exam publish succeeds.
  • Chrome regression for review fix: direct POST status=PUBLISHED rejected, browser-origin save sequence POST Draft -> PUT outline -> PUT Published succeeds with final paper status PUBLISHED, 1 question, total score 10.

@coding-hui coding-hui changed the title [codex] Normalize admin roadmap and publish safety feat(admin): normalize roadmap and publish safety May 17, 2026
@coding-hui coding-hui marked this pull request as ready for review May 17, 2026 03:20
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6624d2fc6e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/library/paper.go
Comment thread internal/library/paper.go
@coding-hui coding-hui merged commit 3ff8683 into main May 17, 2026
2 checks passed
@coding-hui coding-hui deleted the codex-admin-roadmap-publish-safety-main branch May 17, 2026 03:41
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