Changes between Initial Version and Version 1 of WriterEditsAnExistingChapter


Ignore:
Timestamp:
03/05/26 15:40:59 (2 weeks ago)
Author:
211099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WriterEditsAnExistingChapter

    v1 v1  
     1==  Writer Edits an Existing Chapter
     2
     3=== Actor: **Writer**
     4A writer edits the content of an already published chapter, for example to apply corrections or improvements.
     5
     6**1.** The writer navigates to their story and selects a chapter to edit.
     7
     8**2.** The system retrieves the current chapter content.
     9{{{#!sql
     10SELECT chapter_id, chapter_number, chapter_name, title,
     11       content, word_count, updated_at
     12FROM CHAPTER
     13WHERE chapter_id = 1 AND story_id = 1;
     14}}}
     15
     16**3.** The writer modifies the chapter content and submits the changes.
     17
     18**4.** The system updates the chapter record with the new content and recalculates the word count.
     19{{{#!sql
     20UPDATE CHAPTER
     21SET content = 'The ground trembled beneath the Crystal Mountains. Updated content here...',
     22    word_count = 3500,
     23    updated_at = CURRENT_TIMESTAMP
     24WHERE chapter_id = 1 AND story_id = 1;
     25}}}
     26
     27**5.** The system checks if there are any pending AI suggestions for this chapter that may now be outdated.
     28{{{#!sql
     29SELECT ai.suggestion_id, ai.original_text, ai.suggested_text
     30FROM AI_SUGGESTION ai
     31JOIN NEED_APPROVAL na ON ai.suggestion_id = na.suggestion_id
     32WHERE na.chapter_id = 1 AND ai.accepted = FALSE;
     33}}}
     34
     35**6.** The system notifies the writer of any pending unreviewed suggestions that may be affected by the edit.
     36
     37**7.** The system confirms the chapter was updated successfully and displays the updated version.