grafana/public/sass
Piotr Jamróz 8d7e22e1bb
Graphite: Migrate to React (part 2B: migrate FunctionEditor) (#37070)
* 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

* Rename .tsx -> .ts

* Update types

* Use ?? instead of || + add test for mapping options

* Use const (let is not needed here)

* Revert test name change

* Allow removing only optional params and mark additional params as optional (only the first one is required)

* Use theme.typography.bodySmall.fontSize

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2021-07-27 13:10:39 +02:00
..
base Transformations: State feature (alpha/beta) and more (#36630) 2021-07-12 16:42:04 +02:00
components Graphite: Migrate to React (part 2B: migrate FunctionEditor) (#37070) 2021-07-27 13:10:39 +02:00
layout Theme: Page styles move to emotion global styles and design tweaks (#33529) 2021-04-30 10:04:01 +02:00
mixins Panel Loading: spin clockwise, not counter clockwise (#25998) 2020-07-01 22:15:41 -07:00
pages DashboardGrid: Refactorings and performance improvements (#35942) 2021-06-22 14:44:18 +02:00
utils Input: Width prop (#23615) 2020-04-21 10:42:57 +02:00
_grafana.scss Annotations: fire an event when changing annotations (#37175) 2021-07-26 20:57:52 +02:00
_old_responsive.scss PageToolbar: Extracting navbar styles & layout into a modern emotion based component (#30588) 2021-01-27 15:02:04 +01:00
_variables.dark.generated.scss Theme: Change white base in dark theme (#35564) 2021-06-11 17:33:56 +02:00
_variables.generated.scss Theme: Fixes to time picker calendar & variable dropdowns & more (#33407) 2021-04-27 15:13:08 +02:00
_variables.light.generated.scss Theme: Updating old theme variables to use the new theme higher contrast colors (#34305) 2021-05-18 18:00:30 +02:00
.sass-lint.yml grafana/toolkit: bundle plugins with webpack (#17850) 2019-07-03 09:25:12 -07:00
fonts.scss Husky and sasslint fixes, fixes #14638 2018-12-25 20:20:59 +01:00
grafana.dark.scss Make clear that variable scss files are generated from templates 2019-02-18 11:03:52 +01:00
grafana.light.scss Make clear that variable scss files are generated from templates 2019-02-18 11:03:52 +01:00
icons.json tech: ran prettier on all scss files 2017-12-19 16:22:41 +01:00