semmelei: Admins edit, publish, withdraw and delete a News Post
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by reading the existing News Post admin routes and their tests to follow the validation and AdminRequiredLayer patterns. Then trace the admin list and frontend routing to add the editor at /admin/posts/$uuid. Done means the acceptance criteria pass, including publication-time behavior, access checks, unsaved-change warnings, just ci, and frontend checks.
索引モデルが issue の本文から書いたものです。
説明
Parent
#77
What to build
Admins can work on a News Post on its own editor page at /admin/posts/$uuid (a page, not a dialog): edit title and body in a large plain textarea, save without publishing, publish, withdraw, and delete after a confirmation dialog. The editor must be comfortable on a phone.
Publishing sets the publication time to now, also when re-publishing a withdrawn News Post (so it moves to the top again); withdrawing clears it and makes it a Draft. Editing title or body never touches the publication time.
Backend: admin routes to update title and body, publish, withdraw and delete, same validation and AdminRequiredLayer as the existing News Post admin routes.
Frontend: save, publish / withdraw depending on state, delete with confirmation; a warning when leaving with unsaved changes, both on in-app navigation and on tab close. No Markdown toolbar or preview yet (separate ticket), no editor library.
Acceptance criteria
- HTTP test: publish sets a publication time; withdraw clears it; re-publish gives a newer publication time
- HTTP test: update after publishing keeps the publication time
- HTTP test: delete removes the News Post
- HTTP test: validation and access (401 anonymous, 403 Verkauf) on the new routes
- Admin can save, publish, withdraw and delete from the editor page; the list reflects the state
- Unsaved-changes warning on in-app navigation and tab close (checked by hand)
-
just ciand the frontend checks are green
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 1
- 平均マージ
- 9時間 39分
- マージ済み PR(30日)
- 144
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
myOmikron/code のほかの issue
-
wayfinder:task
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
wayfinder:task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
myOmikron/code#102 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 4/5 3〜5日 初心者へのやさしさ 39/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
marmelab/react-admin#11431 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
db-ux-design-system/core-web#8655 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
stripe/react-stripe-js#728 ·
-
[Upload Grade C dataset] the pop-up changes it's size while uploading the document => Jumping effectオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
epam/statgpt-admin-frontend#305 ·
メンテナーはふだん 1 日以内に返信