-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ui): introduce "Load Data" tab (#14709)
* refactor(ui): extend url activator to check on deeper URLs * refactor(ui): create load data nav and page components * refactor(ui): update telegrafs, scrapers, and buckets to use load data nav * refactor(ui): update side nav and router to expose load data tab * chore(ui): update changelog * refactor(ui): update link to telegrafs page from status page * refactor(ui): fix broken routes * refactor(ui): make settings page tabs consistent with load data tabs * refactor(ui): appease the linter gods * refactor(ui): attempt to fix e2e tests
- Loading branch information
1 parent
b355527
commit 450b85f
Showing
22 changed files
with
289 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import _ from 'lodash' | ||
|
||
export const getNavItemActivation = ( | ||
keywords: string[], | ||
location: string | ||
): boolean => { | ||
const ignoreOrgAndOrgID = 3 | ||
const parentPath = _.get(location.split('/'), ignoreOrgAndOrgID, '') | ||
return keywords.some(path => path === parentPath) | ||
const parentPath = location.split('/').slice(ignoreOrgAndOrgID) | ||
return keywords.some(path => parentPath.includes(path)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React, {Component} from 'react' | ||
|
||
// Components | ||
import {Page} from 'src/pageLayout' | ||
import PageTitleWithOrg from 'src/shared/components/PageTitleWithOrg' | ||
|
||
class LoadDataHeader extends Component { | ||
public render() { | ||
return ( | ||
<Page.Header fullWidth={false}> | ||
<Page.Header.Left> | ||
<PageTitleWithOrg title="Load Data" /> | ||
</Page.Header.Left> | ||
<Page.Header.Right /> | ||
</Page.Header> | ||
) | ||
} | ||
} | ||
|
||
export default LoadDataHeader |
Oops, something went wrong.