Commit Graph

3155 Commits

Author SHA1 Message Date
Marcus Andersson
fc09d5a8a7
GrafanaUI: Expose data links context types externally (#55905) 2022-09-28 21:35:46 +02:00
Jack Westbrook
b81f90cd0c
Toolkit: Fix script failures due to missing import paths (#55857)
* fix(toolkit): package without dist folder so config file paths are correct

* chore(packages): make sure to bundle readme, changelog and apache2 license

* refactor(packages): recursively copy src when prepacking toolkit

* chore(toolkit): lock down babel dependencies. use grafana-eslint-config@5 for TS4.8 support
2022-09-28 17:04:55 +02:00
renovate[bot]
8869d6fe7a
Update dependency rc-cascader to v3.7.0 (#55896)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-28 13:12:15 +01:00
Leon Sorokin
4ff7917039
TimeSeries: clamp log-y-axis min to 1 when decimals=0 (#55882) 2022-09-28 05:39:24 -06:00
Leon Sorokin
bd50fd1606
Thresholds: Add option for dashed line style (#55875) 2022-09-28 00:48:09 -06:00
Artur Wierzbicki
202dce66ff
Search: add basic e2e test for the folder view (#55820) 2022-09-28 09:46:24 +04:00
Leon Sorokin
b8da1ffdc3
TimeSeries: fix log-y-axis tick label skipping when decimals=0 (#55868) 2022-09-27 15:50:41 -05:00
Ashley Harrison
11eb02a183
enable rule role-has-required-aria-props (#55841) 2022-09-27 11:17:26 -04:00
Ashley Harrison
afdb094983
turn on tabindex-no-positive rule (#55830) 2022-09-27 15:18:24 +01:00
GitStart
332e8477c7
Convert packages/grafana-ui/src/components/Graph/Graph.test.tsx to RTL (#55771)
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com>
Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com>
Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com>
Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com>
Co-authored-by: Rubens Rafael <rubensrafael2@live.com>
2022-09-27 14:26:53 +01:00
Tania
4a4201ec92
Chore: Update versions (#55813) 2022-09-27 14:07:16 +02:00
Tima Gixe
69f8b32dc0
Storybook: add controls to Segment story (#55264) 2022-09-27 12:19:00 +01:00
Laura Fernández
4544494058
A11y: enable rule jsx-a11y/aria-role (#55760) 2022-09-27 10:55:16 +02:00
renovate[bot]
8bc8778287
Update dependency css-minimizer-webpack-plugin to v4.1.0 (#55619)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-26 10:22:59 +01:00
Kristina
c3e4f1f876
Explore: Add resize to split view, with Min/Max button (#54420)
* Add split resize to Explore without keeping width in state

* debug commit

* ugly hack around split lib only supporting one child

* Use SplitView to accomodate one or two elements, remove debug code, fix test

* More cleanup, fix state action

* Fix even split from manual size scenario

* cleanup

* Add new state elements to test

* Handle scrollable on internal element for virtualized lists

* Left align overflow button for explore

* Change min/max buttons

* Apply suggestions from code review

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

* Add more suggestions from the code review

* Fix problems tests found

* commit broken test with debug info

* Add test, remove debug code

* Remove second get of panes

* Remove second get of panes

Co-authored-by: Elfo404 <me@giordanoricci.com>
2022-09-23 08:20:33 -05:00
Nathan Marrs
ff7225745a
Canvas: Add metric value element type (#55205) 2022-09-22 10:21:45 -07:00
Victor Marin
da78f33939
TablePanel: Fix FooterRow styling for Safari and Firefox (#55543)
* Fix FooterRow styling for Safari and Firefox

* Change column header th to div
2022-09-22 09:33:15 +03:00
Sven Grossmann
e55003174a
slate-suggenstions: adding moveBackward (#55576) 2022-09-21 19:39:54 +02:00
kay delaney
9e0d349bf9
LibraryPanelSearch: Refactor and fix hyphen issue (#55314) 2022-09-21 18:37:17 +01:00
GitStart
667993eae7
Dashboard: Single right-aligned y axis loses gridlines (#54206)
Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev>
Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com>
Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com>
Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com>
Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com>
Co-authored-by: Júlio Piubello da Silva Cabral <julio.piubello@gitstart.dev>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev>
Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com>
Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com>
Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com>
Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com>
Co-authored-by: Júlio Piubello da Silva Cabral <julio.piubello@gitstart.dev>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
2022-09-20 23:58:12 -05:00
Torkel Ödegaard
10b3c0787a
CSSTransition fixes warnings (#55340) 2022-09-20 11:47:31 +02:00
Sonia Aguilar
4270e5606c
Alerting: Fix enter key 'clicking' first button on form (#55222)
* Add type='button' in button used in Heading component to prevent having the default value ='submit'

* Add type='button' for buttons used in form when grafana-managed alert type is selected

* Add type='button' for buttons used in form when mimir-or-loki alert type is selected
2022-09-20 11:02:41 +02:00
Sven Grossmann
95ddfe8ee1
GrafanaUI: mark all Log components deprecated (#55404) 2022-09-20 08:48:32 +02:00
Gábor Farkas
5efeff4890
GrafanaUI: Deprecate logs components (#55364)
* grafana-ui: mark logs-components deprecated

* improved deprecation-message
2022-09-19 13:21:14 +02:00
Tima Gixe
e73a85dfb5
Chore: omit allowCustomValue and allowEmptyValue (#55352) 2022-09-19 13:40:58 +03:00
Victor Marin
32c4245efd
TablePanel/StatPanel: Fix values not being visible when background transparent (#55092)
* TablePanel/StatPanel: Fix values not being visible when background transparent

* Maintain backwards compatibility
2022-09-19 11:47:37 +03:00
Leo
1a0cbdeabe
Navigation: Add help menu to top search bar (#55062)
* add help menu to top search bar

* fixes

* handle preventDefault in node graph specifically

* use icon prop of MenuItem

* undo changes to ContextMenuPlugin/DataLinksContextMenu

* remove unused component

* revert storybook changes

* Tweaks

* remove unused style

* stop propagation on the header so version can be highlighted

* make sure useContextMenu has the exact same logic as before

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2022-09-17 18:17:00 +02:00
Joao Silva
bf5b21563c
StatPanel: Add padding between horizontal name and value (#55299) 2022-09-16 17:53:09 +01:00
Gregory Quinio
fb59702c74
Storybook: use div #root styles on storybook preview instead of additional div wrapper (#55023)
* feat: use styles on #root div instead of additionnal div wrapper

* Update packages/grafana-ui/src/utils/storybook/withTheme.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2022-09-16 17:04:56 +03:00
Victor Marin
18f33871d1
Fix header/footer not sticky (#55285) 2022-09-16 13:14:34 +03:00
Seyaji
7ec1d137b4
Logs: Relocate "show context" button, add copy line log button (#50977)
* add context button to right side of log row

* add context button to right side of log row

* add context button to right side of log row

* add context button to right side of log row

* add show-context icon

Co-authored-by: Sven Grossmann <svennergr@gmail.com>
2022-09-15 17:13:58 +02:00
Torkel Ödegaard
7a10a0cb16
Gauge: Fixes empty/broken Gauge panels with datalinks (#55129) 2022-09-14 21:11:36 +02:00
Laura Fernández
6bc0d97c49
Bar Gauge: fix flip direction when adding data links 2022-09-13 13:13:51 +02:00
Torkel Ödegaard
da001b01f1
TopNav: Section navigation UX (#55012)
* Design tweaks

* Updated

* Fixing unit tests

* Review fixes

* Text primary on active sections, and change home icon to text

* spacing fix

* More fix

* Fixes

* Updates
2022-09-13 12:24:23 +02:00
Torkel Ödegaard
d59bb1e4c2
IconName: Move to grafana/data and use type on NavModelItem (#55013)
* IconName: Allow strings

* Moving to grafana/data and adding type to NavModelItem

* Removed any type

* ts fix
2022-09-12 20:09:33 +02:00
Ashley Harrison
b90260b3ae
Chore: convert LogRowContextProvider tests to RTL (#55031)
* convert LogRowContextProvider tests to RTL

* remove act
2022-09-12 15:00:09 +01:00
Torkel Ödegaard
49bc70c812
TopNav: Panel edit changes (#54746)
* Progress

* Progress

* Things are working

* More tweaks

* Fixing unit test

* Tweaks and fixing e2e tests

* Remove ... in Save as

* Fixing unit test

* Fixing e2e test

* Fixes

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-09-12 15:45:14 +02:00
Gustavo Santos
698a4fab26
GrafanaUI: Add required behavior to Inline Field (#54867) 2022-09-12 12:29:23 +01:00
Orlando Ortega Jr
28619d7a55
Chore: Added controls to IconButton & renamed Simple story to Examples (#54371) 2022-09-12 12:03:25 +01:00
Ashley Harrison
58e17f8144
CustomScrollbar: Add optional scroll indicators to CustomScrollbar (#54705)
* Add general scroll indicator behaviour to CustomScrollbar

* Extract ScrollIndicators logic into it's own file

* add scroll indicators to MegaMenu
2022-09-12 11:18:45 +01:00
kay delaney
4c7732ad17
Chore: Upgrade Typescript to 4.8.2 (#54901)
* Chore: Upgrade typescript to 4.8.2
2022-09-09 16:17:58 +01:00
renovate[bot]
62ef9fb04c
Update dependency prismjs to v1.29.0 (#54976)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-09 15:18:20 +01:00
Tima Gixe
0598ff3743
Storybook: Add controls to CollapsableSection story (#54943) 2022-09-09 14:40:27 +01:00
Tima Gixe
7104d90b39
Storybook: Add controls to FieldSet story (#54964) 2022-09-09 15:23:50 +03:00
Tima Gixe
6b2ff6f25b
Storybook: Add controls to LoadingPlaceholder story (#54939) 2022-09-09 13:35:41 +03:00
Tima Gixe
76f0037654
Storybook: Add controls to PanelChrome story (#54741) 2022-09-09 11:08:46 +01:00
renovate[bot]
ad19f018a9
Update dependency esbuild to v0.15.7 (#54928)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-09 10:56:49 +01:00
Leon Sorokin
eb90d0c4b5
TimeSeries: Support for log scale and negative numbers (#54812) 2022-09-08 11:52:57 -05:00
renovate[bot]
6a7e1caced
Update dependency core-js to v3.25.1 (#54915)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-08 17:46:16 +01:00
Laura Fernández
c684babecc
A11y: Make tooltip dismissible in Toolbar and Icon buttons (#54586) 2022-09-08 14:32:50 +02:00