fix: add w and h to save emit#152
Conversation
Signed-off-by: Sobyt483 <andrianingomel@gmail.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe Dashboard now captures and persists card dimensions ( ChangesCard Dimension Persistence
Sequence DiagramsequenceDiagram
participant GridStack
participant DashboardTemplate
participant DashboardComponent
participant CardsPosition
participant SavedEvent
GridStack->>DashboardTemplate: removedCB/addedCB/changeCB event
DashboardTemplate->>DashboardComponent: onGridChange($event)
DashboardComponent->>CardsPosition: saveCardsPosition() reads node (x,y,w,h)
DashboardComponent->>CardsPosition: store {x,y,w,h} for each card
DashboardComponent->>DashboardComponent: saveEdit() called
DashboardComponent->>SavedEvent: emit cards with x,y,w,h
SavedEvent->>DashboardTemplate: (saved) event to parent
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Signed-off-by: Grzegorz Krajniak <gkrajniak@gmail.com>
Summary by CodeRabbit
Documentation
Enhancements
Developer Experience