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
Zoltán Bedi
cc463f30a4
Exemplars: Change CTA style ( #30880 )
...
* Exemplars: Change CTA style
* Address review feedbacks
* Fix table column aligning
* Minor alignments + uncontrolled component warning fix
2021-02-10 18:02:48 +01:00
Torkel Ödegaard
758d1386cd
DashboardSettings: Update to new form styles ( #31022 )
...
* DashboardSettings: Update to new form styles
* Improve header margin and fixing issue in permissions tab
* Updated
* Switch to radio
* Remove unused import
2021-02-09 20:41:07 +01:00
Hugo Häggmark
297ff9a168
DashboardLinks: Fixes crash when link has no title ( #31008 )
...
* DashboardLinks: Fixes crash when link misses title
* Chore: updates after PR comments
2021-02-09 15:46:56 +01:00
Ivana Huckova
c69c8bd47c
Explore: Remove emotion error when displaying logs ( #31026 )
...
* Remove emotion error
* Remove redundant context variable
2021-02-09 14:57:06 +01:00
Torkel Ödegaard
39d7ebc7d1
BarGauge: Improvements to value sizing and table inner width calculations ( #30990 )
...
* BarGauge: Increase min value width and fix height when setting manual text size
* updated snapshot
* Big improvement to bar gauge value sizing and fixing table gauge sizing
* removed unused const
* added a unit test
2021-02-09 14:18:08 +01:00
Uchechukwu Obasi
b4d51c9f68
ColorPicker: migrated styles from sass to emotion ( #30909 )
...
* ColorPicker: migrated styles from sass to emotion
* fixes frontend test
* updated some changes
* updated some changes
* fixed small import nits
2021-02-09 12:19:12 +01:00
Hugo Häggmark
bd28512d29
Graph: Fixes so graph is shown for non numeric time values ( #30972 )
...
* Graph: Fixes so graph is shown for non numeric time values
* Tests: changes times to UTC
* Tests: forgot one value in time array
* GraphNG: make time series panel work with string time stamps (#30981 )
* Make Time series panel work with data that time is represented as string
* Map to for
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com >
2021-02-09 09:46:37 +01:00
Hugo Häggmark
f42bb84cbf
TextPanel: Fixes so panel title is updated when variables change ( #30884 )
...
* TextPanel: Fixes so panel title is updated when variables change
* Tests: fixes tests
* Chore: updates after PR comments
2021-02-09 06:05:34 +01:00
Oscar Kilhed
3a905847e8
Grafana/UI: Remove DismissableFeatureInfoBox and replace with LocalSt… ( #30988 )
...
* Grafana/UI: Remove DismissableFeatureInfoBox and replace with LocalStorageValueProvider
2021-02-08 16:12:05 +01:00
Torkel Ödegaard
907d3a2aac
StatPanel: Fixes issue formatting date values using unit option ( #30979 )
2021-02-08 15:30:20 +01:00
Torkel Ödegaard
f081df0a4f
Theme: Use higher order theme color variables rather then is light/dark logic ( #30939 )
2021-02-06 18:01:22 +01:00
Torkel Ödegaard
5cd41adc1e
Alerts: Update Alert storybook to show more states ( #30908 )
...
* Alert: Design update for alerts
* Before text color
* Text update
* reverted style changes
* Minor fix
* Updated snapshot
2021-02-05 09:19:09 +01:00
Hugo Häggmark
2a3aa95163
Variables: Adds queryparam formatting option ( #30858 )
...
* Variables: Adds queryparam formatting option
* Chore: fixes strict errors
* Chore: changes after PR comments
2021-02-05 07:16:06 +01:00
Torkel Ödegaard
56ef7c4a4c
DataSourceSettings: Adds info box and link to Grafana Cloud ( #30891 )
...
* Updated
* DataSourceSettings: Adds info box and link to Grafana Cloud
* Updated wording
* Less words
* use variables
* Fixing ts issues
* fixed import
2021-02-04 11:12:20 +01:00
Jack Westbrook
3066b38c5e
Grafana-ui: fixes closing modals with escape key ( #30745 )
...
* feat(grafana-ui): add an escape key listener to Modal
* Update packages/grafana-ui/src/components/Modal/Modal.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
* feat(grafana-ui): add closeOnEscape prop to control Modal behaviour
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
2021-02-03 17:01:29 +01:00
Uchechukwu Obasi
1f66b5c7a9
Chart/Tooltip: refactored style declaration ( #30824 )
...
* Chart/Tooltip: added theme variables and refactored style declaration
* added some changes
* removed useStyle hook since we're not using themes variables
* Added useStyle back since it memoizes the style generation
2021-02-03 12:50:02 +01:00
Jack Westbrook
4f684cc498
Grafana-ui: fixes no data message in Table component ( #30821 )
...
* Wip
* fix(grafana-ui): add no data message to Table component
2021-02-03 10:09:07 +01:00
Nathan Rodman
9b4d4915b0
grafana/ui: Update pagination component for large number of pages ( #30151 )
2021-02-03 10:00:13 +01:00
Leon Sorokin
b5400922e2
BarChart: inside-align strokes, upgrade uPlot to 1.6.4. ( #30806 )
2021-02-02 11:49:45 -06:00
Oscar Kilhed
99acad4448
GrafanaUI: Add a way to persistently close InfoBox ( #30716 )
...
* GrafanaUI: Add a way to persistently close InfoBox
InfoBox and FeatureInfoBox can take up a lot of screen realestate. This makes it easy to let the user close the boxes.
* Migrate InfoBox story to controls
2021-02-02 15:16:31 +01:00
Uchechukwu Obasi
ffc6eda351
FormField: migrated sass styling to emotion ( #30392 )
...
* merged conflicts
* added and utilised useStyle hooks
* Fixes snapshot test
* FormField: added grow property to component
* added a carriage return to index.scss
* properly sort props so the required props are at the top
* removed the grow props since it's not used
* fixes frontend test- I hope
2021-02-02 09:58:50 +01:00