feat(38): editorial candidates admin page#53
Merged
Conversation
Admin page to view posts eligible for editorial promotion (≥4 spots, each with ≥1 solution) and trigger editorial generation via existing pipeline. Closes #38 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
JWT claim-based admin_middleware doesn't work with Supabase authenticated tokens (role is always "authenticated"). Switch to admin_db_middleware which checks users.is_admin in DB, matching the magazine_sessions pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
generate_post_magazineAPI를 그대로 재사용하여 editorial 생성Changes
Backend (Rust api-server)
GET /api/v1/admin/editorial-candidates— 적격 post 목록 조회 API + unit test 5개Frontend (Next.js web)
/admin/editorial-candidates페이지 (테이블 + 페이지네이션 + Generate 버튼)POST /api/v1/post-magazines/generateproxy routeuseEditorialCandidates,useGenerateEditorial)Test plan
cargo test -p decoded-api -- "domains::admin::editorial_candidates"통과 (5/5)/admin/editorial-candidates페이지 접속 후 적격 post 목록 확인post_magazines레코드 생성 확인/editorial페이지에서 생성된 editorial 노출 확인Closes #38
🤖 Generated with Claude Code