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: Dashboards maintain sort order after navigating away #18400

Merged

Conversation

reparker837
Copy link

@reparker837 reparker837 commented Jun 8, 2020

Closes #15292

Dashboard page remembers sort order when you go to a different page–does not save across page reloads.

@reparker837 reparker837 force-pushed the rp_save_board_sort_order branch from 1234b80 to 983e34e Compare June 8, 2020 20:23
@hoorayimhelping hoorayimhelping requested review from a team and asalem1 and removed request for a team June 8, 2020 20:24
Copy link
Contributor

@asalem1 asalem1 left a comment

Choose a reason for hiding this comment

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

Looks great! A couple minor details, but great work

@@ -6,6 +6,10 @@ import {Cell, Dashboard, RemoteDataState} from 'src/types'
import {DecimalPlaces} from 'src/types'
import {DEFAULT_TIME_FORMAT} from 'src/shared/constants'

import {SortTypes} from 'src/shared/utils/sort'
import {Sort} from '@influxdata/clockface'
import {DashboardSortKey} from 'src/shared/components/resource_sort_dropdown/generateSortItems'
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 it's strange that this type is being set in a decentralized location. It might be beyond the scope of this PR to move this to src/types but it is worth considering doing that as a fast follow-up

Copy link
Contributor

Choose a reason for hiding this comment

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

good suggestion, but I think it's beyond this PR's scope to do that.

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.

Dashboard page should remember sort order
3 participants