Commit Graph

4427 Commits

Author SHA1 Message Date
Alex Khomenko
7c7f09233d
DateTimePicker: Add "timeZone" prop (#90031)
* DateTimePicker: Add custom timeZone support

* Add test

* More tests

* Add comment

* Tweaks
2024-07-04 14:45:48 +03:00
Ashley Harrison
bcb168c39d
Drawer: Fix size on mobile (#90037)
fix drawer size on mobile
2024-07-04 11:19:19 +01:00
Ashley Harrison
df84d8509d
Select: Properly show group separator for virtualized selects (#90005)
* add group separator for virtualized selects

* simplify
2024-07-04 10:30:35 +01:00
Kyle Cunningham
c9b1e81ed2
Table panel: Add alt and title text options to image cell type (#89930)
* Various updates

* Update form callbacks

* Use defaultValue as opposed to value on input

* Fix things up

* Docs

* Prettier

* Update docs

* Update label text

* Prettier
2024-07-03 22:10:54 +03:00
Adela Almasan
78f9c0fd41
Table: Filter hidden fields for text wrapping (#89800) 2024-07-01 22:01:19 +03:00
Adela Almasan
ad2b5a02a1
VizTooltip: Hide tooltip options from when tooltip is hidden (#89864) 2024-06-28 00:49:20 +03:00
Alex Khomenko
9056ff73f6
TimeRangePicker: Use week start (#89765) 2024-06-27 07:53:46 +03:00
Kyle Cunningham
c575c06d63
Table Panel: Fix Image hover without datalinks (#89751)
* Fix image hover

* Prettier

* Fix height offset
2024-06-26 23:12:44 +07:00
Ashley Harrison
d3dda4ca89
Storybook: Use new JSX runtime (#89768)
use new jsx runtime in storybook
2024-06-26 12:14:11 +01:00
Ashley Harrison
7b0362b228
Drawer: Improve performance when resizing (#89691)
apply dynamic styles as styles instead of emotion classes
2024-06-26 09:37:17 +01:00
Leon Sorokin
0f01db4025
VizTooltip: Keep visible while hovering during data updates (#89708) 2024-06-25 20:00:47 +03:00
Ashley Harrison
7b88de9946
Chore: Move font-awesome styles back to SCSS (#89687)
move font-awesome styles back to scss for performance reasons
2024-06-25 15:28:24 +01:00
Bogdan Matei
e4b9f356bc
Scopes: Implement radio buttons for containers with single node selection (#89674) 2024-06-25 17:10:36 +03:00
Ashley Harrison
47f8717149
React: Use new JSX transform (#88802)
* update eslint, tsconfig + esbuild to handle new jsx transform

* remove thing that breaks the new jsx transform

* remove react imports

* adjust grafana-icons build

* is this the correct syntax?

* try this

* well this was much easier than expected...

* change grafana-plugin-configs webpack config

* fixes

* fix lockfile

* fix 2 more violations

* use path.resolve instead of require.resolve

* remove react import

* fix react imports

* more fixes

* remove React import

* remove import React from docs

* remove another react import
2024-06-25 12:43:47 +01:00
Alex Khomenko
a9aba2b42f
TimeRangePicker: Add weekStart prop (#89650)
* TimeRangePicker: Add weekStart prop

* Set week start from config

* Use week start from dashboard

* Revert

* Add comment

* Tweak comment

* Add WeekStart type
2024-06-25 14:22:55 +03:00
Laura Fernández
fd96edaef7
POC: Disable ConfirmButton (#89539) 2024-06-25 09:42:18 +02:00
Ashley Harrison
7d8afd9578
Tab: Improve accessible name (#89602)
* replace aria-label selector with data-testid

* fix unit tests

* fix e2e selectors

* fix last unit test

* fix e2e tests

* fix casing

* fix e2e test

* fix casing
2024-06-24 17:48:26 +01:00
Ashley Harrison
7939745411
Chore: SCSS cleanup (#89563)
* fix fonts loading from CDN

* migrate font-awesome styles to emotion globals

* fix font-awesome rendering

* remove storybook scss overrides

* fix storybook theme imports
2024-06-24 11:42:16 +01:00
ismail simsek
dd15c825f0
Chore: Export SelectMenuOptions (#89546)
export SelectMenuOptions
2024-06-21 17:00:07 +02:00
Ashley Harrison
3c15781788
Panel: Fix text aliasing bug when panel is loading (#89538)
* place loading bar animation in its own stacking context to prevent aliasing of text

* add comment
2024-06-21 14:40:51 +01:00
Ashley Harrison
be65aaf5dc
Chore: Clean up some more old SCSS (#89404)
* remove/migrate normalize.scss

* fix typo

* migrate _add_data_source styles

* migrate panel-header styles

* migrate slate styles to emotion globals

* put back a couple of classes used by external plugins
2024-06-21 10:03:57 +01:00
Tobias Skarhed
924a94cf80
New Select: Use virtual list (#89290)
* use react-virtual

* Render story with 100k items

* Dyanmic height and TanStack

* Remove weird item

* Add numberOfOptions to story

* Update class name

* Update class name
2024-06-20 16:51:17 +03:00
Tobias Skarhed
df987fe2e5
PanelChrome: Use labelledby for accessible title (#88781)
* Add labelledby to PanelChrome

* Fix React's subpar useId

* No labelledby if there is no title
2024-06-20 09:43:46 +02:00
Kyle Cunningham
5d328983a1
Table: Don't wrap text labels for gauge cells (#88005)
Don't wrap text

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-06-19 19:12:11 +03:00
Tobias Skarhed
4a74330a09
TimeRangePicker: Improve screen reader support (#89409)
* Aria-expanded and tabs

* Remove weird prop

* Remove unused import

* Fix padding

* Use useId
2024-06-19 16:45:05 +02:00
Ashley Harrison
ceaf510a7d
Chore: SCSS cleanup (#89355)
* remove/migrate normalize.scss

* fix typo

* migrate _explore styles

* make json-formatter styles global
2024-06-19 13:28:00 +01:00
Kyle Cunningham
3776c44c33
Table component: Fix sub-table rows not displaying correctly (#89082)
* Fix expanded height issue

* Prettier

* 🙅‍♂️ to console.log
2024-06-18 03:19:00 +07:00
Tobias Skarhed
0107754da8
Select: Add orange indicator to selected item (#88695)
* Initial experiment

* Add pill and underline

* Text decoration for hover

* Only set underline on the title

* Remove underline from hover

* Remove underline alltogether
2024-06-17 10:39:28 +02:00
Adela Almasan
c3b772618a
Tooltip: Add tooltip support to Histogram (#89196)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-06-14 11:23:25 -05:00
Ashley Harrison
7c5c01cb6c
Chore: Tidy up more font-awesome SCSS (#89207)
* migrate pull-right/pull-left

* remove fa-rotate and fa-flip

* remove _stacked

* remove font-awesome _list

* remove font-awesome _larger

* remove fa fixed-width

* remove fa animated styles

* move sr-only to global styles

* condense remaining font-awesome stuff into 1 file

* extract out spin animation into util folder
2024-06-14 11:35:32 +01:00
grafana-delivery-bot[bot]
40e3601982
Release: Bump version to 11.2.0-pre (#89184)
* "Release: Updated versions in package to 11.2.0-pre"

* fix newline

---------

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2024-06-13 15:08:07 -05:00
Tobias Skarhed
5e2f08de31
New Select: Initial scaffolding (#89114)
* Initial scaffolding

* Extend props from Input

* Rename to Combobox

* Use search icon

* Remove use of SelectableValue

* Remove unused import

* Memoize
2024-06-13 13:41:14 +02:00
Drew Slobodnjak
2fcc4d8cd7
Table: Fix row count during filter (#89004)
* Table: Fix row count during filter

* Fix pagination ranges
2024-06-12 13:54:39 -07:00
Ashley Harrison
13d00e09ab
Chore: Migrate some more SCSS to emotion (#89038)
* migrate section-heading

* move fonts to global styles

* migrate code styles to emotion globals

* migrate spacings styles and leave some in angular

* padding should be 2 here not 1
2024-06-12 14:46:20 +01:00
Galen Kistler
1f967a89b6
Frontend: InteractiveTable fix - prevent styles from leaking into tables added in expanded rows (#88948)
* fix: prevent styles from leaking into tables added in expanded rows
2024-06-11 06:40:29 -05:00
Ashley Harrison
09dfdef378
Calendar: Add labels for next/previous month (#89019)
add labels for next/previous month
2024-06-11 11:49:02 +01:00
Ashley Harrison
06c30ee165
Chore: Migrate more SCSS styles (#88780)
* remove animations mixins

* move drop and drop-element to angular file

* migrate submenu scss
2024-06-10 16:10:54 +01:00
Juan Cabanas
03a000e1b5
ConfirmModal: Reuse confirm content (#88577) 2024-06-10 11:14:25 -03:00
Kyle Cunningham
8aa1bbe27c
Table Panel: Enable text wrapping (#86895)
* Calculate row height

* Move things around

* Update getItemSize to use text bounding box

* Update types

* Cleanups and reminders

* Calculate line height

* Update line height calculation

* Remove debugging

* Add cell option editing

* Prettier

* Use field configured for text wrapping

* Add TODO

* Make sure column configuration is correct

* Update height heuristic and hover behavior

* Disable overflow on hover with text wrapping

* Update heuristic

* Clean things up

* Color background cell options

* Fix tests

* Prettier

* React deps

* Remove old hook dep

* Fix type errors

* Update label and description for editor

* Fix non-wrapped case

* Make sure color background works

* Prettier

* Address review comments

* fix prettier

* Add heuristic for field sizing

* Fix up logic

* Prettier

* Fix test

* Oh prettier 🙈

* Don't wrap text on non-string fields

* Add wrapping to color text cell

* Prettier

* Fix option not showing for auto cell type

* Move longest field guessing into function

* Clean things up

* Add tests

* Make sure text won't flake

* Prettier

* Remove spurious import

* Ignore any in this case

* Add alpha label

* Prettier

* Fix typecheck

* Fix crash when sampling when there are undefined records

* Update heuristic to take into account long strings

* Prettier

* Update scale factors

* Update field index selection

* Prettier

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-06-07 23:15:33 +07:00
Jack Westbrook
0e73c4d387
Storybook: Bump to 8.1.6 (#88899)
* chore(storybook): bump to latest 8.1.6

* chore(yarn): dedupe yarn.lock post storybook update

* chore(typescript): align react types across repo
2024-06-07 14:31:31 +02:00
Ashley Harrison
5f33943397
Select: Revert "preserving custom value" changes (#88856)
* revert Select changes as we can handle it outside of the base select component

* update scenes

* update scenes properly

* revert changes to azure-monitor e2e tests
2024-06-06 17:33:31 +01:00
Adela Almasan
3ad03d869d
VizTooltip: Allow setting the maxWidth option (#88652) 2024-06-06 11:20:58 -05:00
Joao Silva
a23174849c
TimePicker: Fix bug where recent timeranges is cut off (#88795) 2024-06-06 10:49:59 +01:00
Andre Pereira
277067ac9d
AnnotationsPlugin2: Implement support for rectangular annotations in Heatmap (#88107)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-06-05 16:48:37 -05:00
renovate[bot]
8dcbd74803
Update dependency rc-drawer to v7.2.0 (#88785)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 16:03:06 +01:00
renovate[bot]
1ceb9e8e9d Update babel monorepo to v7.24.7 2024-06-05 14:14:01 +00:00
Ashley Harrison
2297687ae1
Chore: Ensure all react-transition-group animations use nodeRef (#88604)
* ensure all react-transition-group animations pass nodeRef

* clone children instead of wrapping in div

* remove div wrapper

* revert back to div
2024-06-05 15:01:50 +01:00
renovate[bot]
0188fc3e1f
Update dependency rc-cascader to v3.26.0 (#88777)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:52:25 +01:00
renovate[bot]
cd5f485df7 Update dependency tslib to v2.6.3 2024-06-05 10:08:51 +00:00
renovate[bot]
4443438fab Update dependency @types/node to v20.14.2 2024-06-05 09:48:36 +00:00