Skip to content

feat(extension): reveal the current chapter from the status bar - #91

Merged
RJiazhen merged 1 commit into
mainfrom
feat/90-status-bar-reveal-current-chapter
Oct 19, 2026
Merged

RJiazhen merged 1 commit into
mainfrom
feat/90-status-bar-reveal-current-chapter

Conversation

@RJiazhen

Copy link
Copy Markdown
Owner

Summary

Clicking the chapter status item in the status bar ran Next Chapter, so a click that meant “show me where I am” silently applied the next chapter’s start snapshot.

  • Point the status item at learnByDiff.scrollToCurrentChapter; the item tooltip becomes “Scroll to Current Chapter” (bundle.l10n*.json in en / zh-cn / zh-tw / ja).
  • Add a focus option to CourseTreeProvider.revealCurrentChapter. The status bar (and the view title jump) now focus the course view and scroll to the applied chapter without expanding or selecting the row; the post-apply reveal keeps focus: false so a chapter switch does not steal focus.
  • Document the status bar behavior next to the other view surfaces in docs/architecture.md.

Closes #90

Test plan

  • pnpm exec vp check
  • pnpm exec vp run -r test
  • pnpm exec vp run learn-by-diff#pack
  • F5 in sandbox/: clicking the status bar chapter item focuses Learn By Diff and scrolls to the current chapter, without applying the next chapter
  • F5: switching chapters (Not Started / Completed) still leaves focus where it was
  • F5: the view title target icon still scrolls to the current chapter

Made with Cursor

Clicking the status item used Next Chapter, so an accidental click
switched the applied snapshot. The item now focuses the course view and
scrolls to the applied chapter instead, reusing the title-bar jump
command and its localized title.

Co-authored-by: Cursor <cursoragent@cursor.com>
@RJiazhen
RJiazhen merged commit 1e2450a into main Oct 19, 2026
1 check passed
@RJiazhen
RJiazhen deleted the feat/90-status-bar-reveal-current-chapter branch October 19, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not advance to the next chapter when clicking the chapter status in the status bar

1 participant