Skip to content

Conversation

@narsaynorath
Copy link
Member

Stores the newly added widget in the dashboard state, passes it along, and in the sortable component when it renders and sees that it matches the newly added widget, it'll use a ref to scroll itself into view.

TODO: IDs should be stable or else this causes a bunch of unnecessary
scrolling
@narsaynorath narsaynorath requested a review from a team May 15, 2025 14:45
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 15, 2025
@codecov
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #91721      +/-   ##
==========================================
- Coverage   82.69%   82.69%   -0.01%     
==========================================
  Files       10335    10335              
  Lines      586485   586483       -2     
  Branches    22546    22546              
==========================================
- Hits       484988   484986       -2     
  Misses     101051   101051              
  Partials      446      446              

Copy link
Member

@nikkikapadia nikkikapadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweeettt lgtm

@narsaynorath narsaynorath merged commit bbdeeff into master May 15, 2025
41 checks passed
@narsaynorath narsaynorath deleted the narsaynorath/dain-353-dashboards-should-scroll-newly-added-widgets-into-view branch May 15, 2025 15:18
@github-actions github-actions bot locked and limited conversation to collaborators May 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants