semmelei: Admins edit, publish, withdraw and delete a News Post
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design, full-stack, testing
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 1
- Avg merge
- 10h 56m
- Merged PRs (30d)
- 34
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from myOmikron/code
-
wayfinder:task
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
wayfinder:task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
myOmikron/code#102 · 2 comments ·
Maintainers usually reply within 1 day
-
ready-for-agent
Difficulty 5/5 Over a week Newbie friendliness 18/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
cursor/community-plugins#465 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
vetro-protocol/vetro-monorepo#978 ·
Maintainers usually reply within 1 day
-
ai-generated bug category:security effort:s priority:p3
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
LanternOps/breeze#9697 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
maniator/verticopolis#1303 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
components-web-app/docs#297 ·