diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d9a700750..9bd4a72b79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,18 @@ ### Bug Fixes 1. [#1450](https://github.com/influxdata/chronograf/pull/1450): Fix infinite spinner when using "/chronograf" as a basepath + 1. [#1455](https://github.com/influxdata/chronograf/issues/1455): Fix backwards sort arrows in tables + 1. [#1423](https://github.com/influxdata/chronograf/issues/1423): Make logout nav item consistent with design + 1. [#1426](https://github.com/influxdata/chronograf/issues/1426): Fix graph loading spinner ### Features ### UI Improvements 1. [#1451](https://github.com/influxdata/chronograf/pull/1451): Refactor scrollbars to support non-webkit browsers 1. [#1453](https://github.com/influxdata/chronograf/pull/1453): Give QueryMaker a greater initial height than Visualization + 1. [#1464](https://github.com/influxdata/chronograf/pull/1464): Make Template Variables Manager more space efficient + 1. [#1464](https://github.com/influxdata/chronograf/pull/1464): Add page spinners to pages that did not have them + 1. [#1464](https://github.com/influxdata/chronograf/pull/1464): Denote which source is connected in the Sources table ## v1.3.0 [2017-05-09] diff --git a/ui/src/admin/components/AdminTabs.js b/ui/src/admin/components/AdminTabs.js index 2826161656..ea4f35ba03 100644 --- a/ui/src/admin/components/AdminTabs.js +++ b/ui/src/admin/components/AdminTabs.js @@ -38,7 +38,7 @@ const AdminTabs = ({ }) => { let tabs = [ { - type: 'DB Management', + type: 'Databases', component: , }, { diff --git a/ui/src/admin/containers/AdminPage.js b/ui/src/admin/containers/AdminPage.js index 42d5a0240c..8d9968ad8f 100644 --- a/ui/src/admin/containers/AdminPage.js +++ b/ui/src/admin/containers/AdminPage.js @@ -176,10 +176,10 @@ class AdminPage extends Component { -
-
- {users - ? +
+ - : Loading...} -
-
+
+ + :
}
) diff --git a/ui/src/alerts/components/AlertsTable.js b/ui/src/alerts/components/AlertsTable.js index f3e63c611a..763e8af85c 100644 --- a/ui/src/alerts/components/AlertsTable.js +++ b/ui/src/alerts/components/AlertsTable.js @@ -82,68 +82,83 @@ const AlertsTable = React.createClass({

{this.props.alerts.length} Alerts

- + {this.props.alerts.length + ? + : null}
- - - - - - - - - - - - {alerts.map(({name, level, time, host, value}) => { - return ( - - - + + - - + Name + + + + + - ) - })} - -
this.changeSort('name')} - className="sortable-header" - > - Name - this.changeSort('level')} - className="sortable-header" - > - Level - this.changeSort('time')} - className="sortable-header" - > - Time - this.changeSort('host')} - className="sortable-header" - > - Host - this.changeSort('value')} - className="sortable-header" - > - Value -
{name} +
this.changeSort('name')} + className="sortable-header" > - {level} - - - {new Date(Number(time)).toISOString()} - - - {host} - - {value} this.changeSort('level')} + className="sortable-header" + > + Level + this.changeSort('time')} + className="sortable-header" + > + Time + this.changeSort('host')} + className="sortable-header" + > + Host + this.changeSort('value')} + className="sortable-header" + > + Value +
+ + + {alerts.map(({name, level, time, host, value}) => { + return ( + + {name} + + {level} + + + {new Date(Number(time)).toISOString()} + + + + {host} + + + {value} + + ) + })} + + + :
+

+ Alerts appear here when you have Rules +

+
+ + Create a Rule + +
}
) diff --git a/ui/src/alerts/containers/AlertsApp.js b/ui/src/alerts/containers/AlertsApp.js index b308995cc8..a20f98dd93 100644 --- a/ui/src/alerts/containers/AlertsApp.js +++ b/ui/src/alerts/containers/AlertsApp.js @@ -95,18 +95,18 @@ class AlertsApp extends Component { } renderSubComponents() { - let component - if (this.state.loading) { - component =

Loading...

- } else { - const {source} = this.props - if (this.state.hasKapacitor) { - component = - } else { - component = - } - } - return component + const {source} = this.props + return ( +
+
+
+ {this.state.hasKapacitor + ? + : } +
+
+
+ ) } handleToggleTime() { @@ -151,13 +151,7 @@ class AlertsApp extends Component { -
-
-
- {this.renderSubComponents()} -
-
-
+ {this.renderSubComponents()}
) diff --git a/ui/src/dashboards/components/TemplateQueryBuilder.js b/ui/src/dashboards/components/TemplateQueryBuilder.js index 1ad5b86541..35e3812733 100644 --- a/ui/src/dashboards/components/TemplateQueryBuilder.js +++ b/ui/src/dashboards/components/TemplateQueryBuilder.js @@ -16,7 +16,7 @@ const TemplateQueryBuilder = ({ }) => { switch (selectedType) { case 'csv': - return
Enter values below
+ return null case 'databases': return
SHOW DATABASES
case 'measurements': diff --git a/ui/src/hosts/components/HostsTable.js b/ui/src/hosts/components/HostsTable.js index 240926b1cc..8a7ab80f68 100644 --- a/ui/src/hosts/components/HostsTable.js +++ b/ui/src/hosts/components/HostsTable.js @@ -84,9 +84,9 @@ const HostsTable = React.createClass({ sortableClasses(key) { if (this.state.sortKey === key) { if (this.state.sortDirection === 'asc') { - return 'sortable-header sorting-up' + return 'sortable-header sorting-ascending' } - return 'sortable-header sorting-down' + return 'sortable-header sorting-descending' } return 'sortable-header' }, diff --git a/ui/src/kapacitor/components/DataSection.js b/ui/src/kapacitor/components/DataSection.js index 856525a349..3684a6cfc6 100644 --- a/ui/src/kapacitor/components/DataSection.js +++ b/ui/src/kapacitor/components/DataSection.js @@ -1,5 +1,6 @@ import React, {PropTypes} from 'react' import buildInfluxQLQuery from 'utils/influxql' +import classnames from 'classnames' import DatabaseList from '../../data_explorer/components/DatabaseList' import MeasurementList from '../../data_explorer/components/MeasurementList' @@ -76,16 +77,21 @@ export const DataSection = React.createClass({ render() { const {query, timeRange: {lower}} = this.props - const statement = - query.rawText || - buildInfluxQLQuery({lower}, query) || - 'Build a query below' + const statement = query.rawText || buildInfluxQLQuery({lower}, query) return (

Select a Time Series

-
{statement}
+
+            
+              {statement || 'Build a query below'}
+            
+          
{this.renderQueryBuilder()}
diff --git a/ui/src/kapacitor/components/KapacitorForm.js b/ui/src/kapacitor/components/KapacitorForm.js index 8b8d5b514b..4a6a66dfeb 100644 --- a/ui/src/kapacitor/components/KapacitorForm.js +++ b/ui/src/kapacitor/components/KapacitorForm.js @@ -127,10 +127,11 @@ class KapacitorForm extends Component {

Configure Alert Endpoints

-
-

- Connect to an active Kapacitor instance to configure alerting endpoints. -

+
+

+ Connect to an active Kapacitor instance to configure alerting endpoints +

+
) diff --git a/ui/src/side_nav/containers/SideNav.js b/ui/src/side_nav/containers/SideNav.js index 90695f0874..4e2506c609 100644 --- a/ui/src/side_nav/containers/SideNav.js +++ b/ui/src/side_nav/containers/SideNav.js @@ -81,9 +81,7 @@ const SideNav = React.createClass({ {showLogout ? - - Logout - + : null} diff --git a/ui/src/sources/components/InfluxTable.js b/ui/src/sources/components/InfluxTable.js index 8f0d7bce66..88da490dc3 100644 --- a/ui/src/sources/components/InfluxTable.js +++ b/ui/src/sources/components/InfluxTable.js @@ -120,12 +120,16 @@ const InfluxTable = ({ )} - - Connect - + {s.id === source.id + ? + Connected + + : + Connect + }