storkit: done 443_refactor_extract_shared_find_story_name_from_commands
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
name: "Extract shared find_story_name from commands"
|
||||||
|
---
|
||||||
|
|
||||||
|
# Refactor 443: Extract shared find_story_name from commands
|
||||||
|
|
||||||
|
## Current State
|
||||||
|
|
||||||
|
- TBD
|
||||||
|
|
||||||
|
## Desired State
|
||||||
|
|
||||||
|
`find_story_name` is nearly identical in `chat/commands/overview.rs` and `chat/commands/unreleased.rs` (minor style diff: `let stages` vs `const STAGES`). Extract to a shared location (e.g. `chat::commands::util` or `io::stories`) and have both callers use it.
|
||||||
|
|
||||||
|
## Acceptance Criteria
|
||||||
|
|
||||||
|
- [ ] Single shared find_story_name function exists
|
||||||
|
- [ ] Both overview.rs and unreleased.rs use the shared version
|
||||||
|
- [ ] Private copies are removed
|
||||||
|
|
||||||
|
## Out of Scope
|
||||||
|
|
||||||
|
- TBD
|
||||||
Reference in New Issue
Block a user