A quest's facts, objectives and the GM's quest editor (D242, #925) #929
Loading…
Reference in a new issue
No description provided.
Delete branch "build/925-quest-editor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #925.
Server
GET/PATCH /api/campaigns/{cid}/lore/{eid}/quest: status, main/side, giver (a page) and giver note, reward, started/ended sessions, objectives (each with its own audience — a GM-only objective is sent to GMs alone).quest_service:get_details,set_status,replace_objectives,objective_audience.Front end
QuestFacts.jsx: the quest's facts panel on its wiki page, and the GM's Edit the quest modal. Hidden while "See it as".Tests
tests/wiki/test_quest_details_api.py(8). The full backend suite passed locally: 5873 passed, 13 skipped.QuestFacts.test.jsx; the wiki front-end tests pass (175).Changelog:
changelog.d/925-quest-editor.added.md.🤖 Generated with Claude Code
GET /lore/{id}/quest reads a quest page's own facts for anyone who may read the page: status, main or side, who gave it (only if they may see that page), the reward, the sessions it started and ended in, and the objectives they may see (a GM-only objective is never sent to a player). PATCH (GM only) changes any of them and replaces the objectives, each with its own audience. A status change adds a line to the page's timeline and an 'updated' wiki event (IS-104). Sessions and the giver must be this campaign's. On the page, QuestFacts shows them, with Edit the quest for a GM. The quest log gives a GM's rumours Confirm as quest (status active) and Not canon (asks, then deletes the page; it waits in Deleted articles; IS-155). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>