Commit Graph

7068 Commits (058af91e4637852812a1f6a79cd1307b5757d9da)

Author SHA1 Message Date
Delmer Reed 058af91e46 Refactor error types to follow new file structure
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-22 20:42:00 -04:00
Delmer Reed 61130535e5 Update cell editor test to return null 2018-06-22 19:48:57 -04:00
Delmer Reed 8c2e8a2176 Add ErrorDescription with auth and links
ErrorThrownAction triggers an AUTH_EXPIRED in middleware. AuthReducer
extracts auth links to upddate state.links. It's unclear what the shape
is of auth.links:

  Errors.test.js utilizes an auth.links of type
    arrayOf({
      name: string,
      label:string,
      login: string,
      logout: string,
      callback: string,
    })

  OrganizationsPage consumes links w/ shape of

    shape({
      organizations: string.isRequired,
      config: shape({
        auth: string.isRequired,
      }).isRequired,
    })

  UsersPage consumes links w/ shape of

     shape({
        users: string.isRequired,
      }),

  ProvidersPage consumes links w/ shape of

    shape({
        organizations: string.isRequired,
      }),

  Purgatory consumes links w/ shape of

    shape({
      me: string,
    }),

  UserNavBlock at some point expected

  shape({
    me: string,
    external: shape({
      custom: arrayOf(
        shape({
          name: string.isRequired,
          url: string.isRequired,
        })
      ),
    }),
  })
2018-06-22 19:13:43 -04:00
Delmer Reed bbd66da6e2 Update ShowOverlayActionCreator import from overlayTechnoloy 2018-06-22 17:40:21 -04:00
Jared Scheib a49a4e7646 Refactor ManualRefresh interface to be consistent with withRouter
Clarifies relationship between HOCs and how to define DashboardPage
props by extending from the props it will receive from its HOCs.

Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-22 14:24:27 -07:00
Jared Scheib 9e8221e13b Compose DashboardPage prop types with withRouter & ManualRefresh
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-22 14:07:57 -07:00
Jared Scheib 5e6f698db4 Convert ManualRefresh to TypeScript
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-22 14:07:43 -07:00
Jared Scheib bcf88dd336 Rename ManualRefresh.js to ManualRefresh.tsx 2018-06-22 13:11:06 -07:00
Jared Scheib 3b111cc404 Type most of the rest of DashboardPage
Add stronger types to Dashboard Actions.

Refactor Dygraph.onZoom to pass TimeRange rather than splitting
arguments, and refactor respective DashboardPage & LogViewer
methods accordingly.
2018-06-21 20:42:10 -07:00
Delmer Reed 2ab002c280 Fix types for presentation mode dispatcher
Cleaned up dashboard types and introduced the auth reducers types.

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-21 19:17:22 -04:00
Jared Scheib bb938c0bf9 Add & reorg types dirs and files for dashboard reducers, actions, & apis
Continue typing DashboardPage.
2018-06-21 11:03:28 -07:00
Jared Scheib 3b61fefefe Rename dashboards/apis/index.js to .ts 2018-06-20 16:28:13 -07:00
Jared Scheib 0fd89449bd Add & fix consumption of Dashboard ActionCreator types 2018-06-20 14:45:07 -07:00
Jared Scheib 680c0e58f2 Merge remote-tracking branch 'origin/master' into fun/dashboard_page 2018-06-20 14:22:57 -07:00
Jared Scheib c00c2f1a3a WIP 2018-06-20 14:15:39 -07:00
Jared Scheib 891397ffcd Simplify mapStateToProps & mapDispatchToProps 2018-06-20 13:57:12 -07:00
Delmer 10af172b32 Merge pull request #3730 from influxdata/fix/script-yield-before-range-filter
Fix unable to toggle yields
2018-06-20 15:29:02 -04:00
Delmer Reed f591d72db2 Add type asserition to Papa.parse data
Parsed data from Papa.parse does not utilize a generic
type and returns any[]. Adding an asserition will at least
error if there are changes to the type of FluxTable.data.
2018-06-20 15:18:07 -04:00
Jared Scheib 46e9d305a3 Add type for GetAnnotationsAsync
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-20 12:15:44 -07:00
Alex P dda369c24b Merge branch 'master' into presentational-page-components 2018-06-20 11:36:35 -07:00
Alex P 11b712ee7f Rename prop to indicate intended use 2018-06-20 11:03:20 -07:00
Alex P 0d20a438d2 Improve clarity of prop name 2018-06-20 10:58:55 -07:00
Alex P 5753363168 Rename prop to be more descriptive 2018-06-20 10:57:19 -07:00
Alex P ed83a254b3 Use getters to pass in elements directly instead of functions that return elements 2018-06-20 10:54:49 -07:00
Alex P d2afd0f241 Fix rendering of logs toggle in TICKscript editor 2018-06-20 10:44:48 -07:00
Jared Scheib fad628f89f WIP Type DashboardPage & its dispatchers 2018-06-20 10:39:17 -07:00
Chris Henn c81658f938 Merge pull request #3734 from influxdata/tempVars/meta-queries
Add "Custom Meta Query" template variable type
2018-06-20 10:38:29 -07:00
Alex P 7b9abf9080 Rename prop to "RenderPageControls" 2018-06-20 10:38:23 -07:00
Alex P 8b147b78f7 Remove center render prop from PageHeader
Only one instance of use, not worth the added complexity
2018-06-20 10:37:57 -07:00
Christopher Henn b734f7cf00 Type MetaQueryTemplateBuilder constructor props 2018-06-20 10:03:18 -07:00
Christopher Henn 797b214d95 Access properties more safely 2018-06-20 10:02:33 -07:00
Delmer Reed 4e42fdcc35 Remove duplicate before/after filter and range checks
Removes component update checks for filter and range.
ExpressionNode now renders with a check for filter and range and
looks at the next func node index to determine how much script to pass
to YieldFuncNode. FuncNodes also utilize a isYielding and
isYieldingInScript to determine how to toggle yields.
2018-06-20 12:57:59 -04:00
Iris Scholten 8fd91e7263 Merge pull request #3722 from influxdata/fun/kapacitor-typescript
Convert Kapacitor components to typescript
2018-06-19 18:06:44 -07:00
Iris Scholten ae1c4484be Convert KapacitorRule tree to typescript 2018-06-19 17:46:51 -07:00
Iris Scholten 53520d84ba Merge pull request #3733 from influxdata/fix/sorting-arrow-directions
Change Ascending arrows to point up instead of down
2018-06-19 17:35:51 -07:00
Deniz Kusefoglu bb813ac6eb Merge pull request #3721 from influxdata/fun/status-page-to-TS
Fun/status page to ts
2018-06-19 17:31:39 -07:00
ebb-tide 83c95ebc0c TS things further 2018-06-19 17:12:30 -07:00
Christopher Henn 1b987b883d Use more consistent naming 2018-06-19 16:39:28 -07:00
Christopher Henn 78c35f4f30 Refactor hydrateTempVarValuesAsync 2018-06-19 16:24:40 -07:00
Christopher Henn eee06b07bb Hydrate MetaQueryTemplateBuilder correctly 2018-06-19 16:24:40 -07:00
Christopher Henn 95a45fda9f Support persisting "influxql" template variables 2018-06-19 16:24:40 -07:00
Alirie Gray 23a5acc959 Implement custom meta query template variable type
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-19 16:22:19 -07:00
Iris Scholten 68aa388028 Change Ascending arrows to point up instead of down 2018-06-19 16:21:52 -07:00
Alex P b944622fbf Implement PageHeader in SourceForm 2018-06-19 15:46:58 -07:00
Alex P 148c13809c Provide mock context in test to prevent fail 2018-06-19 15:06:21 -07:00
Alex P fc361aa57d Refactor SourceIndicator to use context API 2018-06-19 15:06:03 -07:00
Alex P 239e4b9656 Remove only from test 2018-06-19 13:47:00 -07:00
Alex P 4f448a6cee Refactor component to guard against missing context 2018-06-19 13:38:58 -07:00
Christopher Henn 19e6821e30 Improve save button copy in TemplateVariableEditor 2018-06-19 13:21:27 -07:00
Iris Scholten 2f216fd001 Remove implicit yield functionality
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-19 11:52:26 -07:00