semmelei: Admins edit, publish, withdraw and delete a News Post
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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
- 平均合并
- 4 小时 25 分钟
- 30 天内合并 PR
- 90
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
myOmikron/code 的其他 Issue
-
wayfinder:task
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
wayfinder:task
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
needs-triage
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
ready-for-agent
难度 5/5 一周以上 新手友好度 18/100
维护者通常 1 天内回复
-
needs-triage
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
farion1231/cc-switch#8829 ·
维护者通常 1 天内回复
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutover未关闭doc-audit enhancement
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100