Skip to content
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

feat: restore focus on dashboard widget removal #7860

Merged
merged 6 commits into from
Sep 26, 2024

Conversation

tomivirkki
Copy link
Member

Description

When the dashboard widget including focus gets removed (for any reason), restore the focus to the widget closest to the removed one.

Kapture.2024-09-25.at.09.42.43.mp4

Type of change

Feature

Copy link

sonarcloud bot commented Sep 25, 2024

@@ -165,7 +165,8 @@ export function expectLayout(dashboard: HTMLElement, layout: Array<Array<number
if (!element) {
actualRow.push(null);
} else {
actualRow.push(parseInt(element.id.replace('item-', '')));
// TODO: Just use a number for all test item IDs
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add this to an improvements list or create an issue for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a small chore, shouldn't need an issue

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed here 274c8d9

@tomivirkki tomivirkki merged commit 1415b01 into feat/dashboard Sep 26, 2024
9 checks passed
@tomivirkki tomivirkki deleted the feat/dashboard-remove-focused branch September 26, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants