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(ui): redesign load data page #19246

Merged
merged 78 commits into from
Aug 14, 2020
Merged
Show file tree
Hide file tree
Changes from 69 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
f54fc1f
refactor: rename client libraries from overlay to page
alexpaxton Aug 5, 2020
bb4272f
refactor: remove client libraries from load data nav
alexpaxton Aug 5, 2020
4ef9bd3
refactor: remove client libraries from main nav
alexpaxton Aug 5, 2020
51c276b
refactor: convert client library overlays to pages
alexpaxton Aug 5, 2020
9b111d5
feat: create Write Data and related sub-pages
alexpaxton Aug 5, 2020
a9ee256
fix: assing proper component to route
alexpaxton Aug 5, 2020
46c692f
refactor: separate sections of write data page into own files
alexpaxton Aug 6, 2020
487cfe9
refactor: implement telegraf plugins pages
alexpaxton Aug 6, 2020
64aeac4
refactor: rename components to match filenames
alexpaxton Aug 6, 2020
517ee87
refactor: organize client libraries within writeData folder
alexpaxton Aug 6, 2020
ed74c54
fix: cleanup loose ends from moving files around
alexpaxton Aug 6, 2020
edabb58
refactor: move client lib graphics into write data section
alexpaxton Aug 6, 2020
a93c04c
fix: correct import path
alexpaxton Aug 6, 2020
5d3ec20
fix: import path
alexpaxton Aug 6, 2020
cfd8794
feat: enable importing of markdown files
alexpaxton Aug 6, 2020
8fda8ac
feat: use markdown source for example telegraf plugin
alexpaxton Aug 6, 2020
9365b8f
feat: convert Arduino page to use markdown
alexpaxton Aug 6, 2020
a326956
fix: properly type svg and markdown imports
alexpaxton Aug 7, 2020
4dd09cd
feat: replace react component images with regular images
alexpaxton Aug 7, 2020
0a14036
feat: add placeholder image for items without images
alexpaxton Aug 7, 2020
31bc620
fix: cleanup
alexpaxton Aug 7, 2020
f0ed073
feat: start standardizing pages for write data views
alexpaxton Aug 7, 2020
43b5203
Merge branch 'master' into feat/write-data-page
alexpaxton Aug 7, 2020
2b5eb45
refactor: use params instead making a component for each page
alexpaxton Aug 7, 2020
927db46
refactor: make client libraries pages all markdown and use template
alexpaxton Aug 8, 2020
7fd1eac
refactor: cleanup
alexpaxton Aug 8, 2020
6df3661
refactor: move templates out of folder
alexpaxton Aug 8, 2020
09f3909
refactor: style details view
alexpaxton Aug 8, 2020
9e78473
feat(ui): add activemq, aerospike, and bcache
Aug 8, 2020
d6faa42
feat(writeData): load up all the telegraf inputs
Aug 10, 2020
2322b4a
feat: add telegraf explainer to telegraf plugins pages
alexpaxton Aug 10, 2020
12d85b7
refactor: make card grid more compact
alexpaxton Aug 10, 2020
0e13c79
refactor: polish
alexpaxton Aug 10, 2020
eb3d343
feat(write): adding logos
Aug 10, 2020
4ab2ecd
fix(writeData): more logos
Aug 10, 2020
0b5ce32
refactor: make CopyButton more customizable
alexpaxton Aug 10, 2020
32fbca7
refactor: add real content to telegraf plugin explainer
alexpaxton Aug 10, 2020
4de0f39
Merge branch 'feat/write-data-page' of github.com:influxdata/influxdb…
alexpaxton Aug 10, 2020
76f1bd6
refactor: polish thumbnail appearance
alexpaxton Aug 10, 2020
a389650
refactor: make index views scrollable
alexpaxton Aug 10, 2020
c47f42b
feat(write): alphabetize & more logos
Aug 11, 2020
988ed19
refactor: increase width of token overlay
alexpaxton Aug 11, 2020
646a9bb
refactor: add description to telegraf section
alexpaxton Aug 11, 2020
24b551f
feat: wrap each section in feature flags
alexpaxton Aug 11, 2020
1f21117
refactor: WIP helper widgets for details pages
alexpaxton Aug 11, 2020
4e7a33d
Merge branch 'feat/write-data-page' of github.com:influxdata/influxdb…
alexpaxton Aug 11, 2020
eac42ca
feat(writeData): add more logos
Aug 11, 2020
7603f88
feat(writeData): update Plugin names, readmes, add logos
Aug 11, 2020
d86cacb
feat(write): final batch of logos
Aug 12, 2020
e10e7f3
feat(write): readme updates
Aug 12, 2020
abbb84d
feat(write): adding proxmox
Aug 12, 2020
4cc8b6d
refactor: add tabbed navigation back to browse page
alexpaxton Aug 13, 2020
ee6923f
refactor: make code snippets templatized
alexpaxton Aug 13, 2020
6d536fc
fix: replace untemplatized URL key in arduino markdown
alexpaxton Aug 13, 2020
43346e0
refactor: cleanup
alexpaxton Aug 13, 2020
f1ff1cf
refactor: rename "browse" to "sources"
alexpaxton Aug 13, 2020
7537173
refactor: rename feature flags to match page names
alexpaxton Aug 13, 2020
63b264f
refactor: make sort case insensitive
alexpaxton Aug 13, 2020
7f91c55
refactor: make code sample helper only appear in client libraries pages
alexpaxton Aug 13, 2020
3c41de6
fix: remove image padding from client library logos
alexpaxton Aug 13, 2020
9b6d3e3
fix: select first user bucket instead of first any bucket
alexpaxton Aug 13, 2020
c0c7275
fix: make less legible logos more legible
alexpaxton Aug 13, 2020
799f7f2
refactor: make search field autofocus
alexpaxton Aug 13, 2020
504c513
Merge branch 'master' into feat/write-data-page
alexpaxton Aug 13, 2020
a0cd53d
fix: linter error
alexpaxton Aug 13, 2020
0cdbc56
fix: case sensitive file import
alexpaxton Aug 13, 2020
e85c594
fix: remove empty prop definitions
alexpaxton Aug 13, 2020
efe3b94
fix: more case sensitive imports
alexpaxton Aug 14, 2020
1d87ea4
refactor: remove use of lodash
alexpaxton Aug 14, 2020
7b28e5a
fix(writeData): update kapa & tele logos; rename internal plugin
Aug 14, 2020
083ce0f
fix: repair broken explorer test
alexpaxton Aug 14, 2020
a436b6a
fix: rework client libs e2e tests to match new design
alexpaxton Aug 14, 2020
7673201
refactor: rename e2e test appropriately
alexpaxton Aug 14, 2020
1fc15f2
refactor: rewrite data sources e2e to assert proper rendering of the …
alexpaxton Aug 14, 2020
060deac
feat: add GA tracking of code snippet copy event
alexpaxton Aug 14, 2020
3796e87
chore: changelog update
alexpaxton Aug 14, 2020
519b501
Merge branch 'master' into feat/write-data-page
alexpaxton Aug 14, 2020
71de7bd
Merge branch 'master' into feat/write-data-page
alexpaxton Aug 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 14 additions & 4 deletions ui/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ declare global {
interface Window {
monaco: MonacoType
}
}
declare module '*.png' {
const value: any
export = value
}

declare module "*.png" {
const value: any;
export = value;
declare module '*.md' {
const value: string
export default value
}

declare module '*.svg' {
export const ReactComponent: SFC<SVGProps<SVGSVGElement>>
const src: string
export default src
}
}

window.monaco = window.monaco || {}
11 changes: 8 additions & 3 deletions ui/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,12 @@ declare module 'src/external/dygraph' {

// Allow typescript to recognize json files

declare module "*.json" {
const value: any;
export default value;
declare module '*.json' {
const value: any
export default value
}

declare module '*.md' {
const value: string
export default value
}
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"mutation-observer": "^1.0.3",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"prettier": "^1.19.1",
"raw-loader": "^4.0.0",
"raw-loader": "^4.0.1",
"sass": "^1.22.7",
"sass-loader": "^7.1.0",
"source-map-loader": "^0.2.4",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/authorizations/components/ViewTokenOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class ViewTokenOverlay extends PureComponent<Props> {
}

return (
<Overlay.Container>
<Overlay.Container maxWidth={830}>
<Overlay.Header
title={description}
onDismiss={this.handleDismiss}
Expand Down
19 changes: 4 additions & 15 deletions ui/src/authorizations/containers/TokensIndex.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Libraries
import React, {Component} from 'react'
import {connect, ConnectedProps} from 'react-redux'
import {Switch, Route} from 'react-router-dom'

// Components
Expand All @@ -17,28 +16,22 @@ import {

// Utils
import {pageTitleSuffixer} from 'src/shared/utils/pageTitles'
import {getOrg} from 'src/organizations/selectors'

// Types
import {AppState, ResourceType} from 'src/types'
import {ResourceType} from 'src/types'

import {ORGS, ORG_ID, TOKENS} from 'src/shared/constants/routes'

const tokensPath = `/${ORGS}/${ORG_ID}/load-data/${TOKENS}/generate`

type ReduxProps = ConnectedProps<typeof connector>
type Props = ReduxProps

@ErrorHandling
class TokensIndex extends Component<Props> {
class TokensIndex extends Component {
public render() {
const {org} = this.props

return (
<>
<Page titleTag={pageTitleSuffixer(['Tokens', 'Load Data'])}>
<LoadDataHeader />
<LoadDataTabbedPage activeTab="tokens" orgID={org.id}>
<LoadDataTabbedPage activeTab="tokens">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored to get orgID directly from redux instead of prop drilling

<GetResources resources={[ResourceType.Authorizations]}>
<TokensTab />
</GetResources>
Expand All @@ -59,8 +52,4 @@ class TokensIndex extends Component<Props> {
}
}

const mstp = (state: AppState) => ({org: getOrg(state)})

const connector = connect(mstp)

export default connector(TokensIndex)
export default TokensIndex
22 changes: 4 additions & 18 deletions ui/src/buckets/containers/BucketsIndex.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Libraries
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {Switch, Route} from 'react-router-dom'

// Components
Expand All @@ -21,31 +20,24 @@ import {Page} from '@influxdata/clockface'

// Utils
import {pageTitleSuffixer} from 'src/shared/utils/pageTitles'
import {getOrg} from 'src/organizations/selectors'

// Constants
import {ORGS, ORG_ID, BUCKETS, BUCKET_ID} from 'src/shared/constants/routes'

// Types
import {AppState, Organization, ResourceType} from 'src/types'

interface StateProps {
org: Organization
}
import {ResourceType} from 'src/types'

const bucketsPath = `/${ORGS}/${ORG_ID}/load-data/${BUCKETS}/${BUCKET_ID}`

@ErrorHandling
class BucketsIndex extends Component<StateProps> {
class BucketsIndex extends Component {
public render() {
const {org} = this.props

return (
<>
<Page titleTag={pageTitleSuffixer(['Buckets', 'Load Data'])}>
<LimitChecker>
<LoadDataHeader />
<LoadDataTabbedPage activeTab="buckets" orgID={org.id}>
<LoadDataTabbedPage activeTab="buckets">
<GetResources
resources={[
ResourceType.Buckets,
Expand Down Expand Up @@ -88,10 +80,4 @@ class BucketsIndex extends Component<StateProps> {
}
}

const mstp = (state: AppState) => {
const org = getOrg(state)

return {org}
}

export default connect<StateProps, {}, {}>(mstp, null)(BucketsIndex)
export default BucketsIndex
98 changes: 0 additions & 98 deletions ui/src/clientLibraries/components/ClientArduinoOverlay.tsx

This file was deleted.

113 changes: 0 additions & 113 deletions ui/src/clientLibraries/components/ClientCSharpOverlay.tsx

This file was deleted.

Loading