You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tutorial): switch to tutorial-v2.md with new-tab preview (#785)
* feat(tutorial): switch to tutorial-v2.md with new-tab preview
- Point tutorial-service and electron-builder to tutorial-v2.md
- Add 'tutorial' TabType with fixed TUTORIAL_TAB_ID constant
- TabContent renders TutorialViewer in a ScrollArea for tutorial tabs
- TutorialBanner opens tutorial New Tab instead of settings panel
- OnboardingView opens tutorial New Tab on completion instead of Sheet popup
- SettingsPanel "教程" nav item opens tutorial New Tab and closes settings
- TabBar handleActivate handles tutorial tab without changing app mode
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(tutorial): use __dirname for dev path, add tutorial-v2.md to git
- Fix dev-mode path: __dirname (dist/) is stable across worktrees,
app.getAppPath() ../../ breaks when worktree is outside the monorepo
- Add tutorial/tutorial-v2.md to git so worktrees can access it
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(tutorial): use __dirname for dev-mode tutorial path
app.getAppPath() ../../ breaks in worktrees outside the monorepo root.
__dirname (dist/) → ../../../tutorial/ is stable regardless of worktree location.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat(tutorial): use DiffTabContent for tutorial tab (TOC support)
- Export getTutorialFilePath from tutorial-service
- Add GET_TUTORIAL_FILE_PATH IPC channel
- TabContent tutorial branch uses DiffTabContent with previewOnly+readOnly
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(tutorial): use resources/tutorial.md for dev-mode path
Copies tutorial-v2.md into resources/tutorial.md so build:resources
puts it at dist/resources/tutorial.md — same path as __dirname/resources/
in dev mode, matching prod behavior.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(tutorial): use getTutorialContent + MarkdownRichEditor instead of DiffTabContent
DiffTabContent's path auth rejects the tutorial file.
Switch to getTutorialContent IPC (no auth) + MarkdownRichEditor + MarkdownToc directly.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(tutorial): move TOC to left, use markdownTocOpenAtom
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(tutorial): remove unused getTutorialFilePath IPC chain and dead settings tab
清理迭代遗留:删除全程未被渲染层消费的 getTutorialFilePath IPC 链路
(chat 常量 / ipc handler / preload 绑定,函数降级为模块内私有),
并移除 SettingsPanel 中因 handleTabChange 拦截而不可达的 tutorial 分支
及孤儿组件 TutorialViewer。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments