-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix #1397. Add show empty toggle to Dashboard #1398
Conversation
@chenilim I think you need to update the test snapshot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Snapshot still failing.
Yup, thanks. Looking into it. My environment seems to be borked, as jest is failing on something unrelated ( |
Ok, turns out my node version was outdated. Updated the snapshot, and should be final now. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just update 'userSettings.ts' for consistency. Otherwise LGTM.
webapp/src/userSettings.ts
Outdated
static set dashboardShowEmpty(newValue: boolean) { | ||
localStorage.setItem('dashboardShowEmpty', JSON.stringify(newValue)) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the new item name to the UserSettingKey
enum above? Also call the local methods for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done. I originally made the changes on the release-0.9.0 branch, and missed this enum.
Summary
Add a "Show empty" toggle to the Dashboard to show / hide workspaces with no boards. This setting is persisted in localStorage.
Ticket Link
#1397