fix: Fix diff view not clearing on sidebar tab switch#199
fix: Fix diff view not clearing on sidebar tab switch#199backnotprop merged 2 commits intobacknotprop:mainfrom
Conversation
sidebar.activeTab and isPlanDiffActive were independent states with no synchronization. Switching to TOC tab left the diff viewer active in the main area. Add useEffect to reset isPlanDiffActive when tab changes to "toc".
…story - Add keydown listener to clear isPlanDiffActive on Escape - Add Vite dev plugin (dev-mock-api.ts) serving mock /api/plan endpoints with 3 plan versions so the Versions tab works during local development - Guard setMarkdown against undefined plan from API response
ebf265b to
69a6728
Compare
Code reviewFound 1 issue:
plannotator/packages/editor/App.tsx Lines 409 to 414 in 69a6728 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
|
Correction to my earlier review — disregard the previous comment. After pulling the branch locally and tracing the data flow more carefully, the missing The effect's purpose is to clear the diff view when The closure captures Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Summary