Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

semmelei: Admins edit, publish, withdraw and delete a News Post

クローズ
#80 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

ready-for-agent

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 ci and the frontend checks are green
主要言語
TypeScript
スター
0
フォーク
1
平均マージ
9時間 39分
マージ済み PR(30日)
144

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

myOmikron/code のほかの issue

myOmikron/code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。