-
Notifications
You must be signed in to change notification settings - Fork 31
Staging #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Staging #202
Conversation
add resize to toolbar panels
|
Caution Review failedThe pull request is closed. WalkthroughAdds draggable resize handles and supporting logic to adjust left and schema side panels. Updates CSS for container sizing and sidebar behavior, inserts handle elements into the chat template, initializes resize handling in app startup, and implements resize logic (with clamping, collapse, and graph resize triggers) in the UI module. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant H as ResizeHandle (.resize-handle)
participant UI as UI Module (setupResizeHandles)
participant P as Target Panel (menu/schema)
participant G as Graph (schema)
U->>H: mousedown/touchstart
H->>UI: startResize(target=data-target)
UI->>P: addClass(resizing), set cursor
loop Drag
U->>H: mousemove/touchmove
H->>UI: onDrag(position)
UI->>UI: compute width % (parent-based), clamp 25–60
alt width < 25%
UI->>P: removeClass(open), clear style.width
UI->>UI: reset chat padding (desktop)
else width ≥ 25%
UI->>P: addClass(open), set style.width=%
opt target is schema-container and open
UI-->>G: debounce resizeGraph()
end
end
end
U->>H: mouseup/touchend
H->>UI: endResize()
UI->>P: removeClass(resizing), clear cursors
sequenceDiagram
autonumber
participant App as app.ts
participant UI as modules/ui.ts
participant DOM as Document
App->>App: setupUIComponents()
App->>UI: setupResizeHandles()
UI->>DOM: bind events to .resize-handle (mouse & touch)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (5)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Summary by CodeRabbit
New Features
Style