MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / selectStoryByID

Method selectStoryByID

internal/tui/app.go:2192–2200  ·  view source on GitHub ↗

selectStoryByID sets the selected index to the story with the given ID.

(storyID string)

Source from the content-addressed store, hash-verified

2190
2191// selectStoryByID sets the selected index to the story with the given ID.
2192func (a *App) selectStoryByID(storyID string) {
2193 for i, story := range a.prd.UserStories {
2194 if story.ID == storyID {
2195 a.selectedIndex = i
2196 a.adjustStoriesScroll()
2197 return
2198 }
2199 }
2200}
2201
2202// selectInProgressStory sets the selected index to the first in-progress story.
2203func (a *App) selectInProgressStory() {

Callers

nothing calls this directly

Calls 1

adjustStoriesScrollMethod · 0.95

Tested by

no test coverage detected