Run through these steps to verify the panel system works correctly:
Test Terminal:
- Launch ClifPad
- ✅ Verify Terminal is visible on the left by default
- Click "Terminal" button in StatusBar (bottom-left)
- ✅ Verify Terminal disappears
- Click "Terminal" button again
- ✅ Verify Terminal reappears
Test Files:
- ✅ Verify Files panel is visible on the right by default
- Click "Hide Git/Files" button in TopBar (top-right)
- ✅ Verify Files panel disappears
- Click "Open Git/Files" button in TopBar
- ✅ Verify Files panel reappears
Test Agent:
- ✅ Verify Agent panel is NOT visible by default
- Click "Open Agent" button in TopBar
- ✅ Verify Agent panel appears on the right (Files panel should disappear)
- Click "Agent" button in StatusBar (bottom-right)
- ✅ Verify Agent panel disappears
Test Editor:
- ✅ Verify Editor is visible in the center by default
- Open a file
- Click "Editor" button in StatusBar
- ✅ Verify Editor disappears
- Click "Editor" button again
- ✅ Verify Editor reappears with the same file still open
Test: Agent + Files conflict resolution
- Make sure Files panel is visible
- Click "Open Agent" button
- ✅ Verify Agent appears and Files disappears (since they share the right space)
- Click "Hide Agent" button
- Click "Open Git/Files" button
- ✅ Verify Files reappears
Test: All panels visible
- Show Terminal (left)
- Show Editor (center)
- Show Files (right)
- ✅ Verify all three are visible simultaneously
- Try showing Agent
- ✅ Verify Agent replaces Files in the right panel
Test: Hide everything except one
- Hide Terminal
- Hide Files/Agent
- Hide Editor
- ✅ Verify the last remaining panel stays visible
- ✅ Verify no glitchy "pinning" to unexpected sides
Test Terminal resize:
- Show Terminal
- Hover over the right edge of Terminal panel
- ✅ Cursor changes to resize cursor
- Drag left/right
- ✅ Terminal width changes smoothly (20-80%)
- Toggle Terminal off and on
- ✅ Width is preserved
Test Files/Agent resize:
- Show Files panel
- Hover over the left edge
- Drag to resize (180-500px)
- Toggle Files off and on
- ✅ Width is preserved
- Switch to Agent
- ✅ Agent uses different width setting
Test: Closing all panels
- Try to close all four panels
- ✅ At least the editor should remain or you should still be able to interact with the app
Test: Rapid toggling
- Rapidly click Agent button multiple times
- ✅ No flickering or stuck states
- Final state matches button state
Test: App restart
- Show Terminal, Editor, Agent
- Close app
- Reopen app
- ✅ Default layout loads (Terminal, Editor, Files)
- ✅ Panel widths are preserved from last session
Test: Button states
- When Terminal is visible:
- ✅ StatusBar Terminal button shows active state (highlighted)
- When Files is visible:
- ✅ TopBar button shows "Hide Git/Files"
- When Agent is visible:
- ✅ TopBar button shows "Hide Agent"
- ✅ StatusBar Agent button shows active state
- When Editor is visible:
- ✅ StatusBar Editor button shows active state
Test: Tooltips
- Hover over each toggle button
- ✅ Tooltip shows current state and action ("Hide X" or "Open X")
Test: Old functionality still works
- ✅ Git operations work with Files panel
- ✅ Terminal tabs work correctly
- ✅ Agent tool execution works
- ✅ Editor Monaco features work (autocomplete, etc.)
- ✅ File tree navigation works
Test: No memory leaks
- Toggle panels on/off 50+ times
- ✅ Memory usage stays stable (check Activity Monitor/Task Manager)
- ✅ No console errors
Test: Smooth transitions
- Toggle panels rapidly
- ✅ No janky animations
- ✅ Resize handles respond immediately
| Action | Expected Result |
|---|---|
| Click TopBar "Open Agent" | Agent panel appears on right, Files hides |
| Click TopBar "Hide Agent" | Agent panel disappears |
| Click TopBar "Open Git/Files" | Files panel appears on right, Agent hides |
| Click TopBar "Hide Git/Files" | Files panel disappears |
| Click StatusBar "Terminal" | Terminal toggles on/off on left |
| Click StatusBar "Agent" | Agent toggles on/off on right |
| Click StatusBar "Editor" | Editor toggles on/off in center |
| Close all but Agent | Agent doesn't "pin" to wrong position |
| App restart | Returns to default: Terminal + Editor + Files |
If you find issues, report:
- Steps to reproduce - Exact clicks/actions
- Expected - What should happen
- Actual - What actually happened
- State before - Which panels were visible
- Console errors - Check browser DevTools
✅ All toggle buttons work consistently
✅ No panels "stick" in wrong positions
✅ Agent and Files properly alternate in right space
✅ Panel widths persist correctly
✅ No console errors or warnings
✅ UI feels responsive and predictable
✅ Default state loads correctly on restart