Commit Graph

10385 Commits (5dd141997a45472c0ea837f07bfd828341a004db)

Author SHA1 Message Date
Delmer Reed 375338e313 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 ae31aa5456 Update ShowOverlayActionCreator import from overlayTechnoloy 2018-06-22 17:40:21 -04:00
Jared Scheib d1ac2a38e1 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 9cb1f45d64 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 fcb3139d02 Convert ManualRefresh to TypeScript
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-22 14:07:43 -07:00
Delmer e2227027eb
Merge pull request #3758 from influxdata/fix/pageheader-titletext
Update title to titleText in Admin page
2018-06-22 17:03:04 -04:00
Jared Scheib 39349e51a0 Rename ManualRefresh.js to ManualRefresh.tsx 2018-06-22 13:11:06 -07:00
Delmer Reed 7ff979aaef Update hosts page optionsComponents to be a getter 2018-06-22 16:08:17 -04:00
Delmer Reed 461b809ab2 Update title to titleText in Host and Admin page 2018-06-22 15:07:45 -04:00
Jared Scheib d6af25d812 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
Chris Henn 38d987e94c
Merge pull request #3749 from influxdata/bugfix/page-headers
Fix missing page titles
2018-06-21 19:33:37 -07:00
Delmer Reed d493b46fd1 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
Iris Scholten 03fe19b31c
Merge pull request #3751 from influxdata/fix/crosshairs-pass-edge
Ensure hoverTime is a valid time range for the dygraph
2018-06-21 15:31:27 -07:00
Iris Scholten c79d177fa9 Move check for valid time to first comparison 2018-06-21 14:59:37 -07:00
Iris Scholten e99c1e589a Prevent index out of range error when getting min and max from timeRange 2018-06-21 14:58:28 -07:00
Iris Scholten b3460ead1e Update Changelog 2018-06-21 13:47:03 -07:00
Iris Scholten 9a8ffcfc25 Ensure hoverTime is a valid time range for the dygraph 2018-06-21 13:43:11 -07:00
Chris Henn e9941b317d
Merge pull request #3750 from influxdata/bugfix/temp-var-editor-title
Fix display of TemplateVariableEditor header
2018-06-21 12:02:31 -07:00
Christopher Henn c259cea529
Fix display of TemplateVariableEditor header 2018-06-21 11:38:14 -07:00
Christopher Henn b7099c5b97
Add test verifiying PageHeader dev assertion 2018-06-21 11:05:53 -07:00
Jared Scheib 69e479fe22 Add & reorg types dirs and files for dashboard reducers, actions, & apis
Continue typing DashboardPage.
2018-06-21 11:03:28 -07:00
Christopher Henn ca5dbfa4a1
Fix failing admin page title test 2018-06-21 10:59:31 -07:00
Christopher Henn 732e7cea3f
Add failing test for missing title on admin page 2018-06-21 10:59:31 -07:00
Christopher Henn 9b04d10c45
Fix missing title on hosts page 2018-06-21 10:59:30 -07:00
Delmer da66a825a8
Merge pull request #3745 from influxdata/flux/update-yields-on-script-change
Render data when yield node receives new script
2018-06-21 13:10:46 -04:00
Chris Henn adfa8792e5
Merge pull request #3742 from influxdata/bugfix/flux-schema-formatting
Fix filter popup aesthetics
2018-06-21 09:59:13 -07:00
Chris Henn 9af679e09f
Merge pull request #3738 from influxdata/tempVars/tests
Add two tests for template variables
2018-06-21 09:58:49 -07:00
Delmer 90df57d77e
Merge pull request #3744 from influxdata/fix/flux-builder-yield-name
Fix expressions to display yield name in script
2018-06-21 12:48:39 -04:00
Delmer Reed 3475fbe514 Clean up script update check 2018-06-21 12:46:58 -04:00
Delmer Reed c910669f76 Render data when component recieves script update
Rendered yield data only currently happens on component mount and this
update checks for a script update to fetch yield results.
2018-06-21 12:19:17 -04:00
Delmer Reed 2677f9d420 Update expressions to display yield in script
Updates expressions to pass a yield node from the script to a
YieldFuncNode and allowing the correct yield name to be displayed in the
builder.
2018-06-21 09:35:19 -04:00
Christopher Henn 419ab63833
Fix filter popup aesthetics 2018-06-20 16:55:50 -07:00
Jared Scheib bd5ee7d9c1 Rename dashboards/apis/index.js to .ts 2018-06-20 16:28:13 -07:00
Delmer 3797fd97b8
Merge pull request #3740 from influxdata/flux/delete-funcnode-and-yield
Delete func node and yield in builder
2018-06-20 17:57:52 -04:00
Jared Scheib 092826742c Add & fix consumption of Dashboard ActionCreator types 2018-06-20 14:45:07 -07:00
Delmer Reed f95251671e Remove yield nodes not in declarations
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-06-20 17:43:09 -04:00
Delmer Reed 3e512b9be2 Move getDeep up and add space between types and relative imports 2018-06-20 17:33:13 -04:00
Jared Scheib 1dc2976597 Merge remote-tracking branch 'origin/master' into fun/dashboard_page 2018-06-20 14:22:57 -07:00
Delmer Reed 6b57427f94 Fix FuncArgInput autofocusing
Keying by func.id instead of the func node's index was causing
the builder to repeatedly autofocus on the last expression node.

Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-20 17:19:56 -04:00
Jared Scheib 04c03ad493 WIP 2018-06-20 14:15:39 -07:00
Jared Scheib a25664bd8a Simplify mapStateToProps & mapDispatchToProps 2018-06-20 13:57:12 -07:00
Delmer Reed 9757205480 Delete yield node when func node is deleted
Deletes the func node and either toggles the yield with last or removes
the following yield from the script.

Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-20 16:55:52 -04:00
Christopher Henn e365966d4c
Add TemplateControlBar test 2018-06-20 12:48:20 -07:00
Christopher Henn 5a30e4a202
Add TemplateControlDropdown test 2018-06-20 12:47:46 -07:00
Delmer 58abce8d14
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 990371a085 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 4b3f7b1e77 Add type for GetAnnotationsAsync
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-06-20 12:15:44 -07:00
Alex Paxton 7f8791e3c3
Merge pull request #3662 from influxdata/presentational-page-components
Introduce Presentational Page Components
2018-06-20 11:49:33 -07:00
Alex P bb68cf7f03 Merge branch 'master' into presentational-page-components 2018-06-20 11:36:35 -07:00
Christopher Henn 2a2d172ed3
Refactor TemplateControlBar test 2018-06-20 11:26:51 -07:00