grafana/public/app/core
Piotr Jamróz d93d989a5a
Graphite: Migrate to React (part 4 & 5: group all components) (#37590)
* Add UMLs

* Add rendered diagrams

* Move QueryCtrl to flux

* Remove redundant param in the reducer

* Use named imports for lodash and fix typing for GraphiteTagOperator

* Add missing async/await

* Extract providers to a separate file

* Clean up async await

* Rename controller functions back to main

* Simplify creating actions

* Re-order controller functions

* Separate helpers from actions

* Rename vars

* Simplify helpers

* Move controller methods to state reducers

* Remove docs (they are added in design doc)

* Move actions.ts to state folder

* Add docs

* Add old methods stubs for easier review

* Check how state dependencies will be mapped

* Rename state to store

* Rename state to store

* Rewrite spec tests for Graphite Query Controller

* Update docs

* Update docs

* Add GraphiteTextEditor

* Add play button

* Add AddGraphiteFunction

* Use Segment to simplify AddGraphiteFunction

* Memoize function defs

* Fix useCallback deps

* Update public/app/plugins/datasource/graphite/state/helpers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/helpers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/helpers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/plugins/datasource/graphite/state/providers.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Add more type definitions

* Remove submitOnClickAwayOption

This behavior is actually needed to remove parameters in functions

* Load function definitions before parsing the target on initial load

* Add button padding

* Fix loading function definitions

* Change targetChanged to updateQuery to avoid mutating state directly

It's also needed for extra refresh/runQuery execution as handleTargetChanged doesn't handle changing the raw query

* Fix updating query after adding a function

* Simplify updating function params

* Migrate function editor to react

* Simplify setting Segment Select min width

* Remove unnecessary changes to SegmentInput

* Extract view logic to a helper and update types definitions

* Clean up types

* Update FuncDef types and add tests

* Show red border for unknown functions

* Autofocus on new params

* Extract params mapping to a helper

* Split code between params and function editor

* Focus on the first param when a function is added even if it's an optional argument

* Add function editor tests

* Remove todo marker

* Fix adding new functions

* Allow empty value in selects for removing function params

* Add placeholders and fix styling

* Add more docs

* Create basic implementation for metrics and tags

* Post merge fixes

These files are not .ts

* Remove mapping to Angular dropdowns

* Simplify mapping tag names, values and operators

* Simplify mapping metrics

* Fix removing tags and autocomplete

* Simplify debouncing providers

* Ensure options are loaded twice and segment is opened

* Remove focusing new segments logic (not supported by React's segment)

* Clean up

* Move debouncing to components

* Simplify mapping to selectable options

* Add docs

* Group all components

* Remove unused controller methods

* Create Dispatch context

* Group Series and Tags Sections

* Create Functions section

* Create Section component

* use getStyles

* remove redundant async/await

* Remove

* remove redundant async/await

* Remove console.log and silent test console output

* Do not display the name of the selected dropdown option

* Move Section to grafana-ui

* Update storybook

* Simplify SectionLabel

* Fix Influx tests

* Fix API Extractor warnings

* Fix API Extractor warnings

* Do not show hidden functions

* Use block docs for better doc generation

* Handle undefined values provided for autocomplete

* Section -> SegmentSection

* Simplify section styling

* Remove redundant div

* Simplify SegmentSection component

* Use theme.spacing

* Use empty label instead of a single space label

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2021-08-17 18:50:31 +02:00
..
actions Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
components Search: Make search icon keyboard navigable (#37865) 2021-08-16 15:51:44 +02:00
copy Chore: Use uuid v4 as an identifier instead of Date.now() (#27178) 2020-08-26 11:38:39 +02:00
filters Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
hooks Alerting: wrap top level components in ErrorBoundary (#34040) 2021-05-18 13:56:31 +03:00
navigation Links: Fixes issue with some links causing full page reload (#36631) 2021-07-12 10:28:49 +02:00
reducers Chore: remove redux-logger (#34220) 2021-05-17 16:43:40 +02:00
selectors Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
services User analytics: Use user email as Rudderstack id (#36788) 2021-07-15 12:28:13 +02:00
specs Alerting: adding a time picker for selecting relative time. (#33689) 2021-05-12 17:51:31 +02:00
utils Chore: Fix more TypeScript errors (#36918) 2021-07-20 09:57:03 +01:00
angular_wrappers.ts Graphite: Migrate to React (part 4 & 5: group all components) (#37590) 2021-08-17 18:50:31 +02:00
app_events.ts EventBus: Introduces new event bus with emitter backward compatible interface (#27564) 2020-11-03 13:08:54 +01:00
config.ts Geomap: make the geomap panel beta and label alpha layers (#36894) 2021-07-19 08:07:28 -07:00
constants.ts LibraryPanels: Adds folder filter to manage library panel page (#33560) 2021-05-04 13:59:40 +02:00
core_module.ts react panels query processing 2018-10-14 18:19:49 +02:00
core.ts Angular cleanup: Move directives (#35330) 2021-06-08 08:28:56 +02:00
injectorMonkeyPatch.ts Dependencies: Update angularjs to 1.8.2 (#28736) 2020-11-03 13:18:10 +01:00
jquery_extended.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
lodash_extended.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
logs_model.test.ts Logs panel: Add option to show common labels (#36166) 2021-07-01 14:06:58 +02:00
logs_model.ts Logs panel: Add option to show common labels (#36166) 2021-07-01 14:06:58 +02:00
mod_defs.d.ts prettier: change to single quoting 2017-12-20 12:33:33 +01:00
nav_model_srv.ts DashboardSrv/NavModelSrv: Remove legacy angularjs (#36810) 2021-07-19 11:38:12 +01:00
partials.ts Chore: No implict any fixes (#17020) 2019-05-13 09:38:19 +02:00
profiler.ts Chore: Reduces strict errors (#33012) 2021-04-15 14:21:06 +02:00
store.ts Store: Error handling for setObject (#23650) 2020-04-20 15:13:02 +02:00
table_model.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
time_series2.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00