Dominik Prokop
fdc6f2cc6f
DataLinks: Bring back single click links for Stat, Gauge and BarGauge panel ( #31692 )
...
* Bring back clickable Stat, Gauge and BarGauge panels
* Demo dashboard
* Add DataLinksContextMenu tests
* Only use new UI for data links, revert panel links logic
2021-03-05 10:29:19 +01:00
Leon Sorokin
a5f3889b93
GraphNG: cache ianaName & reduce calls to getTimeZoneInfo() ( #31712 )
2021-03-05 00:17:43 -06:00
Alec Posney
56ce068a91
GraphNG: Fixes Tooltip mode 'All' for XYChart ( #30921 ) ( #31260 )
2021-03-04 20:59:48 -08:00
Gábor Farkas
289dc39ced
grafana/ui: added storybook link to readme ( #31600 )
2021-03-04 10:57:15 +01:00
Ivana Huckova
4c2e5fcbd0
Explore/Logs: Escaping of incorrectly escaped log lines ( #31352 )
...
* POC: Escaping of incorrectly escaped log lines
* Remove unused import
* Fix test, change copy
* Make escapedNewlines optional
* Fix typechecks
* Remove loading state from the escaping button
* Update namings
2021-03-03 18:32:27 +01:00
Oscar Kilhed
b36314d03f
PieChart: Add color changing options to pie chart ( #31588 )
...
* Allow changing of series color for PieChart
* Use useTheme hook
* Remove duplicate import
2021-03-02 13:18:03 +01:00
Dominik Prokop
0ba16acd45
Bring back correct legend sizing afer PlotLegend refactor ( #31582 )
2021-03-02 10:58:40 +01:00
Jack Westbrook
e13a48166b
chore: bump lodash to 4.17.21 ( #31549 )
2021-03-02 10:13:27 +01:00
Uchechukwu Obasi
5773b8f28c
ConfirmButton: updates story from knobs to controls ( #31476 )
...
* ConfirmButton: updates story from knobs to controls
* made some changes
2021-03-01 16:39:36 +01:00
Torkel Ödegaard
fcac61203e
PieChart: Update text color and minor changes ( #31546 )
2021-03-01 14:08:48 +01:00
Oscar Kilhed
10def28989
PieChart: Improve piechart legend and options ( #31446 )
...
* Add percent of total to piechart legend
* Remove defaults
* Add label selector
* Fix multiselect option ui
* Add percent of total to piechart legend
* Add label selector
* add multiselect options ui
* change how pie chart labels are displayed
* Fixed right aligned values in legend
* added titles to display values so they show in table mode
* Move legend display value options to below other options
* Add addMultiSelect method to ui builder
* Use addMultiSelect on builder
* Use multiselect for the legend columns and update the panel test dashboard
* Remove explicit typing on addMultiselect and remove non existing properties from piechart story
* Add release tag
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-03-01 11:18:24 +01:00
Oscar Kilhed
89fa4acafc
Add multiselect options ui ( #31501 )
...
* add multiselect options ui
* Change import
* Add addMultiSelect method to ui builder
2021-02-28 09:33:30 +01:00
Ivana Huckova
aeabaee2da
Explore: Show ANSI colored logs in logs context ( #31510 )
...
* If ANSI in log context, show it
* Update
* Update
* Add test
2021-02-26 16:27:51 +01:00
Ivana Huckova
2d9f460e19
LogsPanel: Show all received logs ( #31505 )
...
* Show all received logs in LogsPanel
* Remove rowLimit
2021-02-26 15:33:34 +01:00
Torkel Ödegaard
eddc163e78
AddPanel: Design polish ( #31484 )
...
* AddPanel: Design fixes
* More design updates
* More tweaks
* Updated snapshot
* Modal fixes
* Updated field labels
* Move icon to left again
2021-02-26 12:29:28 +01:00
Torkel Ödegaard
14e7f70eac
TimeSeriesPanel: Remove unnecessary margin from legend ( #31467 )
...
* TimeSeriesPanel: Remove unnessary padding
* add back margin for right aligned legend
2021-02-26 11:09:07 +01:00
Torkel Ödegaard
5b0fe1a500
GrafanaUI: Fixes typescript error for missing css prop ( #31479 )
2021-02-25 16:16:32 +01:00
Jack Westbrook
ad68f3c5e6
DashboardSettings: Migrate Link Settings to React ( #31150 )
...
* feat(dashboardsettings): migrate dashboard links EmptyListCTA to react
* feat(dashboardsettings): initial commit of links settings migration to react
* feat(dashboardsettings): add links form functionality
* refactor(dashboardsettings): separate out linksettings components and concerns
* Updates to links list
* Form improvements
* test(dashboardlinks): update links so tests run
* refactor: move _.move to arrayMove for testing purposes
* test(dashboardsettings): initial commit of link settings tests
* refactor(app): put back lodash move method for backwards compatibility
* test(dashboardsettings): add links settings tests
* style(dashboardsettings): camelcase constants
* chore(dashboardsettings): delete old angular links settings view
* fix(dashboardsettings): forceupdate links on submenuVisibilityChanged and correct imports
* chore: remove reference to old angular link settings components
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2021-02-25 11:50:10 +01:00
kay delaney
47d2a8085b
Frontend changes for library panels feature ( #30653 )
...
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
2021-02-25 10:26:28 +00:00
ying-jeanne
4a2e32b401
Revert ""Release: Updated versions in package to 7.4.3" ( #31444 )" ( #31452 )
...
This reverts commit 59d11ce84f
.
2021-02-24 17:53:08 +01:00
Zoltán Bedi
c8deaeacce
Chore: Fix eslint react hook warnings in grafana-ui ( #31092 )
...
* Chore: Fix eslint react hook warnings in grafana-ui
* Remove unneeded exlcudes
* Address Andrej's review
2021-02-24 17:21:47 +01:00
Uchechukwu Obasi
8f7e26cd01
Chore: fixed incorrect naming for disable settings ( #31448 )
2021-02-24 15:37:40 +01:00
Uchechukwu Obasi
f3a7cb4709
NamedColorsPalette: updates story from knobs to controls ( #31443 )
2021-02-24 12:52:56 +01:00
Grot (@grafanabot)
59d11ce84f
"Release: Updated versions in package to 7.4.3" ( #31444 )
2021-02-24 12:36:51 +01:00
Uchechukwu Obasi
5af27cb43e
ColorPicker: updates story from knobs to controls ( #31429 )
...
* ColorPicker: updates story from knobs to controls
* changed story name to uppercase
* made some changes to story name
* made some changes
2021-02-24 12:35:35 +01:00
Uchechukwu Obasi
070d512c57
ClipboardButton: updates story from knobs to controls ( #31422 )
2021-02-24 10:47:53 +01:00
ying-jeanne
c57047a420
Postgres: allow providing TLS/SSL certificates as text in addition to file paths ( #30353 )
...
* postgres SSL certification
* add back the UI to configure SSL Authentication files by file path
* add backend logic
* correct unittest
* mini changes
* Update public/app/plugins/datasource/postgres/config_ctrl.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* mutex
* check file exist before remove
* change permission
* change default configuremethod to file-path
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* rename sslconfiguremethod to sslconfigurationmethod
* frontend update
* solve comments
* Postgres: Convert tests to stdlib
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Postgres: Be consistent about TLS/SSL terminology
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* fix init inconsistancy
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* naming convention
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix TLS issue
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* change permissions
* Fix data source field names
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up HTML
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve popover text
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix SSL input bug
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo unnecessary change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up backend code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix build
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* More consistent naming
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Enforce certificate file permissions
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* add settings
* Undo changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* fix windows file path
* PostgresDataSource: Fix mutex usage
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/postgres/postgres.go
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* fix compilation
* fix unittest
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* mock function
* change kmutex package
* add kmutex into middleware
* lock connection file per datasource
* add unittest regarding concurrency
* version should be equal
* adding unittest
* fix the loop
* fix unitest
* fix postgres unittst
* remove comments
* move dataPath from arg to tlsManager struct field
* Use DecryptedValues method
Use cached decrypted values instead of
using secure json data decrypt which will
decrypt unchanged values over and over again.
* remove unneeded mutex in tests and cleanup tests
* fix the lint
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-02-23 22:10:55 +01:00
Uchechukwu Obasi
af12e6d20e
Move NOOP_CONTROL to storybook utils and change to a standalone file ( #31421 )
2021-02-23 15:20:07 +01:00
Uchechukwu Obasi
9ce07b11d2
CallToActionCard: updates story from knobs to controls ( #31393 )
...
* CallToActionCard: updates story from knobs to controls
* used better naming for ctaElement control
* Capitalise Story names
* moved some changes to a separate PR
* fixes CI frontend build issue
2021-02-23 11:41:14 +01:00
Uchechukwu Obasi
6a4880ad14
Cascader: updates story from knobs to controls ( #31399 )
2021-02-23 09:50:52 +01:00
Alex Khomenko
6db4b40d5b
Data source list: Use Card component ( #31326 )
...
* Replace DataSourcesListItem with Card
* Add tests
* Remove unused styles
* Make card heading semi bold
* Make heading semi-bold
* Show type name instead of type id
* Fix key warning
* Update Card
* Fix tests
* Make typeName optional
* remove styling that was just a test
* Make typeName non-optional and fix tests
* Update list key
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2021-02-22 14:02:10 +02:00
Hugo Häggmark
9967f193c8
Revert "StoryBook: Introduces Grafana Controls ( #31351 )" ( #31388 )
...
This reverts commit c5797cc274
.
2021-02-22 11:04:27 +01:00
Hugo Häggmark
c5797cc274
StoryBook: Introduces Grafana Controls ( #31351 )
2021-02-22 09:53:06 +01:00
Torkel Ödegaard
3e55c967ee
Theming: Support for runtime theme switching and hooks for custom themes ( #31301 )
...
* WIP Custom themes
* Load custom themes from URL and via event
* Dynamic page background
* Header color change
* Fixing tests and emotion warnings
* Fixed test
* moving cx to getStyles
* Review fixes
* minor change
2021-02-20 09:02:06 +01:00
Torkel Ödegaard
ce63df425d
TimeSeriesPanel: Fixes overlapping time axis ticks ( #31332 )
...
* GraphNG: Fixes overlapping time axis ticks
* Review tweaks
2021-02-19 12:10:48 +01:00
Oscar Kilhed
aeb4bcb3ed
Grafana/UI: Add basic legend to the PieChart ( #31278 )
...
* Add basic legend to the PieChart
* Remove console log
* Remove PieChartWithLegend and refactor PieChart a bit
* Use FALLBACK_COLOR
* Refactor PieChart
* Change back to [function]
2021-02-19 11:49:40 +01:00
Uchechukwu Obasi
debb82e124
BarGuage: updates story from knobs to controls ( #31223 )
...
* BarGuage: updated story from knobs to controls
* fixes type errors and disables unused controls
* update controls to support some BarGauge props
* changed addBarGaugeStory to component and removed closure
* cleaned up to be more readable
* more refactoring to be readable
* final touches...
* fixed disabled controls issue
* moved NOOP_CONTROL declaration to a seperate PR
* made some tweaks to the story names
2021-02-18 16:03:56 +01:00
Uchechukwu Obasi
0e63dfafbe
ButtonCascader: updates story from knobs to controls ( #31288 )
...
* ButtonCascader: updates story from knobs to controls
* some nit fixes
2021-02-18 13:52:09 +01:00
Alex Khomenko
e932d5bb09
Grafana-UI: Update tooltip type ( #31310 )
2021-02-18 11:10:11 +02:00
Uchechukwu Obasi
14afa167f4
BigValue: updates story from knobs to controls ( #31240 )
...
* BigValue: updates story from knobs to controls
* some refactoring to make code more readable
* made some changes
2021-02-17 15:05:40 +01:00
Alex Khomenko
c21e45e428
Search: display sort metadata ( #31167 )
...
* Search: display metadata
* Search: update SortPicker icon
* Search: display folder meta data
* Search: reset sort picker on layout change
* Search: align tags in Card component
* Search: replace hyphen with dash
* Search: preserve sort state on layout change
* Search: update tests
* Search: fix tests
* Update pkg/services/search/hits.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/search/components/SearchItem.tsx
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/search/components/SearchItem.tsx
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/search/types.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Search: fix type error
* Search: add General folder name and adjust icon margin
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2021-02-17 14:06:19 +02:00
Jack Westbrook
4b25310941
Chore: grafana-toolkit uses grafana-ui and grafana-data workspaces ( #30701 )
...
* chore(grafana-toolkit): use workspace versions of grafana/ui and grafana/data
* chore: replace references to popperjs 1 typings with popperjs 2 typings
2021-02-16 19:33:50 +01:00
Josh Hunt
85e186cf10
Grafana-UI: Add id to Select to make it easier to test ( #31230 )
...
* Prettier formatting
* Grafana-UI: Add support for id and inputId props to Select
* Grafana-UI: Add aria-label to Select
* Grafana-UI: InlineField and Field get ID from inputId prop
For Select
* Fix tests using TagFilter
* Update Select prop documentation
* Update Field tests to use screen instead
* Fix the last few tests
2021-02-16 16:19:55 +00:00
kay delaney
38daf0cba6
UI/Card: Fix handling of 'onClick' callback ( #31225 )
2021-02-16 13:11:37 +00:00
Torkel Ödegaard
4dfce12a81
TagsInput: Design update and component refactor ( #31163 )
...
* TagsInput: Design update and component refactor
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Updated
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-02-16 09:39:11 +01:00
Dominik Prokop
9c08b34e71
GraphNG: refactor core to class component ( #30941 )
...
* First attempt
* Get rid of time range as config invalidation dependency
* GraphNG class refactor
* Get rid of DataFrame dependency from Plot component, get rid of usePlotData context, rely on XYMatchers for data inspection from within plugins
* Bring back legend
* Fix Sparkline
* Fix Sparkline
* Sparkline update
* Explore update
* fix
* BarChart refactor to class
* Tweaks
* TS fix
* Fix tests
* Tests
* Update packages/grafana-ui/src/components/uPlot/utils.ts
* Update public/app/plugins/panel/timeseries/plugins/ContextMenuPlugin.tsx
* GraphNG: unified legend for BarChart, GraphNG & other uPlot based visualizations (#31175 )
* Legend experiment
* Nits
2021-02-15 16:46:29 +01:00
Uchechukwu Obasi
100e7eb992
Alert: update story to use controls ( #31145 )
...
* Alert: updated story to use Controls
* updated some changes
2021-02-12 16:45:05 +01:00
Torkel Ödegaard
e38fc6939c
DataSourceSettings: Fixes add header button, it should not trigger a save & test action ( #31135 )
2021-02-11 15:22:44 +01:00
Torkel Ödegaard
cb5928fdb7
PieChart: Progress on new core pie chart ( #28020 )
...
Use visx for the Pie chart plugin.
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2021-02-11 14:32:33 +01:00
Dominik Prokop
8d339a279b
Eslint: no-duplicate-imports rule (bump grafana-eslint-config) ( #30989 )
...
* Eslint: no-duplicate-imports rule (bump grafana-eslint-config)
* Chore: Fix duplicate imports (#31041 )
* Rebased this branch into eslint-no-duplicate-imports
* updated some changes
* merged uncaught duplicate imports
* fixes frontend test- I hope
* fixes e2e test- I hope
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-02-11 13:45:25 +01:00