Commit Graph

116 Commits

Author SHA1 Message Date
Adela Almasan
5caf4e1485 Canvas: Button API Editor support template variables (#74779) 2023-09-19 00:16:21 +03:00
Adela Almasan
0815d7f627 Canvas: Button API Editor support setting parameters (#74637) 2023-09-18 09:25:35 -05:00
Adela Almasan
59b7789ada Canvas: Add support for selecting the button variant (#74782) 2023-09-14 12:20:58 -05:00
Adela Almasan
a0e6e76ca6 Canvas: Button API Editor support setting content-type (#74682) 2023-09-14 10:17:21 -05:00
Adela Almasan
89127d5ec9 Canvas: Button API - Add support for GET requests (#74566) 2023-09-11 08:03:52 -05:00
Adela Almasan
451d5a25b2 Canvas: Fix data links (#73332) 2023-08-16 18:32:20 +02:00
Ashley Harrison
e0587dfb30 Chore: Replace deprecated usage of shape.borderRadius() (#72672)
* properly mark borderRadius() as deprecated, replace borderRadius() with default

* undo a couple of changes

* use radius.pill in FilterPill
2023-08-01 14:46:07 +01:00
Ashley Harrison
9ee2cc742a Chore: Use theme.shape.radius.circle everywhere (#70896)
* use theme.shape.radius.circle everywhere

* add useTheme2 import
2023-06-29 13:56:05 +01:00
Selene
b0893c29a7 Chore: Generate plugin version and remove lineage version (#69781)
* Generate plugin version and remove lineage version

* Generate version for each major

* Remove pluginVersion from core plugins

* Remove code version generation

* Generate cue files

* Move grafana version into jenny

* fix go import
2023-06-27 12:47:14 +03:00
Nathan Marrs
d7a8892f3a Canvas: Migrate to schema (#70205) 2023-06-17 05:56:23 +03:00
Nathan Marrs
e7d8d48407 Canvas: Tweak inline editor border styling (#70099) 2023-06-14 21:39:59 +03:00
Nathan Marrs
8bb8b9b29a Canvas: Update inline edit to use theme shadow (#69926) 2023-06-12 08:11:42 -07:00
Laura Benz
24502c4c4a Add tooltip to instances of IconButton (#68880)
* refactor: tooltip is required

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: adjust tests

* refactor: apply changes from code review

* refactor: adjust component for e2e test

* refactor: adjust fallback

* refactor: apply changes from code review

* refactor: apply changes from code review

* refactor: set IconButton default as type=button and remove from use cases

* refactor:  remove aria-labels when duplicated and type=button from use cases

* refactor: clean up

* refactor: fix tests

* refactor: fix type errors

* refactor: remove changes in order in order to add them to a separate PR

* refactor: set IconButton default as type=button

* refactor: remove tooltip

* refactor: apply changes requested in review
2023-06-08 10:23:28 +02:00
Nathan Marrs
186cd96447 Canvas: Fix exit panel edit mode issue (#69315)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-06-01 01:31:10 +03:00
Nathan Marrs
0bdf52e3f4 Canvas: Allow all element types by default (#69279) 2023-05-30 13:58:51 -07:00
Nathan Marrs
f49b9b89cf chore: high level restructure of canvas panel files (#69004) 2023-05-24 18:32:36 +02:00
sam boyer
323cbe1997 kindsys: Adapt to new flattened lineage syntax in Thema (#68034)
* Update all core kinds to flattened lineages

* Regen Go types, without any

* Regen Go types, s/interface{}/any/

* Update generated core typescript

* Update generate docs

* Fix defaults gen in veneer index jenny

* Flatten plugindef lineage

* Convert all plugin kinds to flattened form

* Switch back to interface{} for now

* Switch to fs.Sub in plugin DeclParser

* Mostly undesirable codegen changes, to be fixed

* Update mod and sum

* Update pfs tests to flattened lineages

* Update thema to latest, regen docs
2023-05-24 10:47:25 +02:00
Ashley Harrison
e8ca3c0409 Chore: More typescript improvements 💪 (#68699)
* fix some anys

* some canvas/geomap improvements

* some more panel type fixes

* just omit the type in TagOption
2023-05-22 11:53:58 +01:00
sam boyer
33fd83f7e3 kindsys: Adapt to new PanelCfg schema interface (#65297)
* kindsys: Adapt to new PanelCfg schema interface

* building locally

* Remove Panel prefix in cue files

* Regenerate

* Update imports

* fixup! Merge branch 'remove-panel-prefix' into sdboyer/redundant-panelcfg-prefixes

* Fix formatting

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Tania B <yalyna.ts@gmail.com>
2023-05-15 23:07:54 -04:00
Ryan McKinley
854d497f94 Schema: Fix dimension schemas (#67935) 2023-05-05 12:16:31 -07:00
Nathan Marrs
dac709b347 Canvas: Promote to GA (#67426) 2023-04-27 12:48:40 -07:00
Adela Almasan
12e5101b91 Canvas: Connection properties based on data (#64360)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-04-25 10:31:45 -07:00
Adela Almasan
21ede347cb Canvas: Remove deleted connections from source (#65321) 2023-03-27 19:51:56 +03:00
Drew Slobodnjak
bbb572e73f Canvas: Improve anchor UX (#62409)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-02-03 12:02:37 -05:00
Drew Slobodnjak
db953c9a9c Canvas: Support color themes for arrows (#62829) 2023-02-03 08:50:36 -08:00
Adela Almasan
58c9618160 Canvas: Update connection info on element rename (#62532) 2023-01-30 22:36:57 -06:00
Adela Almasan
a92c081a33 Canvas: Connections positioning ux improvements (#62516) 2023-01-30 15:50:10 -06:00
Drew Slobodnjak
07dc994765 Canvas: Anchor highlight persistance (#62364)
* Canvas: Anchor highlight persistance

* Update public/app/plugins/panel/canvas/ConnectionAnchors.tsx

Co-authored-by: Nathan Marrs  <nathanielmarrs@gmail.com>

* Fix CONNECTION_ANCHOR_ALT dependencies

* Simplify anchor type assertion logic

* Ensure that anchor highlight is reset when anchors are hidden

* Add helpful comment on return bool of function

---------

Co-authored-by: Nathan Marrs  <nathanielmarrs@gmail.com>
2023-01-27 11:35:57 -08:00
Nathan Marrs
6c9174a766 Canvas: Fix connection anchors for svg elements (#61895) 2023-01-25 16:32:04 -08:00
Adela Almasan
6bf1d06dba Canvas: Update scene and panel when entering panel view mode (#62043) 2023-01-24 18:41:08 -06:00
Adela Almasan
f5743ea9ac Canvas: Improve arrow positioning when border is present (#61961) 2023-01-23 18:38:04 -06:00
sam boyer
48b620231e Kindsys: Unique names for composable kind TS types (#61928)
* Kindsys: Unique names for composable kind TS types

* Update all TS imports
2023-01-23 18:03:44 +00:00
Adela Almasan
50faeba07e Canvas: Connection heads not rendering consistently (#61887) 2023-01-23 10:51:55 -06:00
Nathan Marrs
65127d4913 Canvas: Update readme with link to docs (#61812) 2023-01-20 21:22:56 -08:00
Adela Almasan
cef15873d6 Canvas: Add tooltip for data links (#61648) 2023-01-20 16:26:51 +00:00
sam boyer
3b3059c9ce Kindsys: Unify plugins, pfs with kind framework (#61192)
* New pfs impl

* Reached codegen parity with old system

* Update all models.cue inputs

* Rename all models.cue files

* Remove unused prefixfs

* Changes Queries->DataQuery schema interface

* Recodegen

* All tests passing, nearly good now

* Add SchemaInterface to kindsys props

* Add pascal name deriver

* Relocate plugin cue files again

* Clarify use of injected fields

* Remove unnecessary aliasing

* Move DataQuery into mudball

* Allow forcing ExpandReferences on go type generation

* Move DataQuery def into kindsys, add generator to copy it to common

* Fix copy generator to replace package name correctly

* Fix duplicate type, test failure

* Fix linting issues
2023-01-20 09:41:35 +00:00
Adela Almasan
da7bf56c03 Canvas: Inconsistent border behavior (#61794) 2023-01-19 12:43:22 -06:00
Nathan Marrs
b1a24232e4 Canvas: Add support for basic arrows (#57561)
Co-authored-by: Ryan McKinley <ryan.mckinley@grafana.com>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: Drew Slobodnjak <drew.slobodnjak@grafana.com>
2023-01-13 02:38:00 +00:00
Adela Almasan
a2bd85963c Canvas: Update element(s) selection after action (#61204) 2023-01-10 09:26:53 -06:00
Adela Almasan
26a3c864f3 Canvas: Min-width for inline editor (#61176) 2023-01-09 11:24:12 -06:00
Adela Almasan
9799ac252b Canvas: Update context menu actions for multiple elements selected (#61108) 2023-01-06 15:59:41 -06:00
Adela Almasan
97e25d70e7 Canvas: Improve placement when adding an element via context menu (#61071) 2023-01-05 16:09:04 -06:00
Ashley Harrison
d33b4918cd Chore: more any/type assertion improvements (#59229)
more any/type assertion improvements
2022-11-23 16:54:57 +00:00
Nathan Marrs
e157ef1171 Canvas: Add icon value mapping (#59013) 2022-11-22 14:39:19 -08:00
Josh Hunt
b1ffe18599 Chore: Fix some as HTMLElement type assertions (#58667) 2022-11-21 13:05:55 +00:00
Adela Almasan
9c7b6b1ce8 Canvas: Extend root context menu (#58097) 2022-11-03 17:30:12 +00:00
Adela Almasan
a5c492b033 Canvas: Add tabs to inline editor (#57778) 2022-10-28 13:36:19 -04:00
kay delaney
05ceff5188 Chore: Migrate usage of v1 themes to v2 (#57617) 2022-10-26 13:28:12 +01:00
Adela Almasan
73c215ae41 Canvas: Button element (alpha) (#57491) 2022-10-23 20:39:10 -04:00
kay delaney
5d53a983d8 React18: Update useCallback arg types where needed (#57084) 2022-10-17 14:52:12 +01:00