[feature] Story management: add full CRUD routes and UI #26
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_biz#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
Identified in home#211 (Projects Widget v0.9 Alpha feedback): stories are absent from the kanban board and there is no way to create, view, or manage stories in the UI.
Current state
The
Storymodel exists inmodels/story.rswithproject_sid,milestone_sid,assignee_sid, andstory_pointsfields. Service methods (load_all_stories_for_space,load_story_for_space) exist inservices/mod.rs.Task.story_sidlinks tasks to stories.However: there are zero HTTP routes for stories in
web/server.rs. Stories are invisible in the UI.Work required
server.rs:GET /c/:context/stories— listGET /c/:context/stories/new+POST— create formGET /c/:context/stories/:id— detailGET /c/:context/stories/:id/edit+POST— edit formhandlers/mod.rs:stories_list,stories_detail,story_new,story_create,story_edit,story_updatetemplates/mod.rs:StoriesListTemplate,StoryDetailTemplate,StoryFormTemplateNotes
update_story_links)Implementation complete
Commit
7a1ee4condevelopment_casperadds full story CRUD.What was added
Routes (
web/server.rs)GET /c/:context/stories— listGET /c/:context/stories/new+POST— createGET /c/:context/stories/:id— detailGET /c/:context/stories/:id/edit+POST— editHandlers —
stories_list,stories_detail,story_new,story_create,story_edit,story_updateTemplates —
StoriesListTemplate,StoryDetailTemplate,StoryFormTemplateServices —
save_story,get_tasks_for_story,get_stories_for_project,get_stories_for_milestoneSidebar — Stories entry added under Projects with
bi-journal-bookmarkiconNotable details
render_linked_sectionsave_storyfollows the same pattern assave_taskthrough the OSIS SDKlinksfield preserved on update (same pattern as tasks)Build: clean (19.24s) | Diff: +1121 / -4 lines across 5 files
Implemented in commit
7a1ee4c: full Story CRUD — list/detail/create/edit templates and handlers, 4 routes, 4 service methods, sidebar entry under Projects, linked tasks display on detail page.