2b8c74de2e
i18n: removes useTranslate hook ( #106556 )
...
* i18n: removes useTranslate hook
* chore: fix duplicate imports
* chore: fix import sorting and hook dependencies
2025-06-12 11:03:52 +02:00
abb885c585
I18n: Move eslint rule to package ( #105860 )
2025-05-29 16:11:59 +02:00
84ddf7b320
Public Dashboard: Updated list of plugins that support public dashboard ( #104910 )
2025-05-27 17:19:28 -03:00
119d5897ea
i18n: imports use @grafana/i18n ( #105177 )
...
* i18n: everything should target @grafana/i18n
* wip
* chore: updates after PR feedback
* Trigger build
* Trigger build
* Trigger build
* chore: skip flaky tests
* chore: skip flaky tests
* chore: skip flaky tests
* chore: skip flaky tests
* chore: skip flaky tests
* chore: skip flaky tests
* chore: revert all flaky tests
* chore: some incorrect usages of useTranslate
2025-05-15 09:17:14 +02:00
9ed3c9ee8a
Internationalisation: Final mark up of strings ( #104165 )
...
* some more markup
* more markup
* more markup
* almost there...
* more markup
* more markup
* last markup!
* fix unit tests
2025-04-22 11:02:01 +01:00
5011907dae
Dashboard Schema V2: Export dashboard JSON ( #101180 )
...
* wip
* fix the async bug
* Fix tests
* support library panels
* Update comment
* clean up
* refactor, use multi resource kind
* uncomment
* return only the spec
* simplify templateizing logic
* update dashboardkind
* revert imprtable requirements to use the current interface
* tests and fixes
* add panel configs to required; more tests;
* everything in elements should be processed
* clean up
* clean up
* rename for clarity; clean up tests
* export resource v spec
* i18n
* clean unused
* fix library panels
* revert comments
* revert lefthook.rc
* don't support lib panels
* another lefhook revert
* remove lib panel in test
* Remove library panels on external export; show warning if dash contains library panels
* fix tests
* Support old export mode
* clean up
* rely on dash shape vs feature toggle, add spacing to alert, update message
* lint
* typo fix
* make makeExportable part of dashboard serializer; clean up old exporter
* clean up
* more cleanup
* gem file cleanup
* remove unused function
* remove unused selector
* don't remove ds refs that use ds template variable
* clean up
2025-04-11 13:35:39 -06:00
0fbb51ab08
Internationalisation: More automatic markup ( #103260 )
...
* easy markup
* final tweaks, betterer + translations
* fix unit test
2025-04-03 09:26:24 +01:00
cd53070a00
Update some translation markup on feedback from translators ( #102702 )
2025-03-27 14:11:26 +00:00
6822805c32
Grafana Runtime: Use package.json exports for internal code ( #102100 )
...
* refactor(frontend): update runtime import paths for grafana/runtime/src -> grafana/runtime
* feat(runtime): introduce internal api entrypoint and exports property
* refactor(frontend): update runtime imports to use internal entrypoint
* chore(betterer): update results file
* refactor(bookmarks): update runtime/unstable import
* chore(betterer): update results file
* test(frontend): fix failing tests due to mocking nested runtime imports
* test(datasourcesrv): fix failing tests due to mocks
* chore(alerting): clean up redundant import
* fix(packages): fix default require export pointing to types declaration file
* docs(packages): update readme related to exports
* chore(internationalization): fix import paths
* chore(betterer): update results file
2025-03-27 08:59:57 +01:00
1ca9910736
Grafana Data: Use package.json exports for internal code ( #102696 )
...
* refactor(frontend): rename all @grafana/data/src imports to @grafana/data
* feat(grafana-data): introduce internal entrypoint for sharing code only with grafana
* feat(grafana-data): add test entrypoint for data test utils usage in core
* refactor(frontend): update import paths to use grafana/data exports entrypoints
* docs(grafana-data): update comment in internal/index.ts
* refactor(frontend): prefer public namespaced exports over re-exporting via internal
* chore(frontend): fix a couple more weird paths that typescript complains about
2025-03-25 10:48:36 +01:00
5cd8547131
Revert "Grafana Data: Use package.json exports for internal code ( #102286 )
...
Revert "Grafana Data: Use package.json exports for internal code (#102036 )"
This reverts commit 91116de790c6c59248abd262721c40f169be6661.
2025-03-17 12:26:59 +00:00
91116de790
Grafana Data: Use package.json exports for internal code ( #102036 )
...
* refactor(frontend): rename all @grafana/data/src imports to @grafana/data
* feat(grafana-data): introduce internal entrypoint for sharing code only with grafana
* feat(grafana-data): add test entrypoint for data test utils usage in core
* refactor(frontend): update import paths to use grafana/data exports entrypoints
* docs(grafana-data): update comment in internal/index.ts
* refactor(frontend): prefer public namespaced exports over re-exporting via internal
2025-03-17 11:27:17 +01:00
c9f563e576
Grafana UI: Use package.json exports for internal code ( #101815 )
...
* feat(grafana-ui): introduce development exports to prevent importing from grafana/ui/src
* refactor(theme-generation): move theme templates into scripts so themes continue to build
* refactor(frontend): replace grafana/ui paths that use nested src with /internal or /unstable
* chore(betterer): update better results file
* feat(grafana-ui): support enterprise, remove Text component from internal
* docs(packages): update readme with exporting code conventions
2025-03-12 14:14:32 +01:00
2c3c06e00f
SharePanelInternally: Add render image inside drawer with customization ( #97179 )
2024-12-18 16:32:41 -03:00
90bc574599
Public Dashboard: Added postgresql alias grafana-postgresql-datasource as supported public dashboard ( #97148 )
...
added grafana-postgresql-datasource
2024-12-18 12:54:26 +00:00
7bdf521ba3
Share: Add invite user to the sharing menu ( #97067 )
...
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2024-12-17 15:08:35 -03:00
1ff0978efe
Chore: Remove sharemodal and search service barrel files ( #97563 )
...
* refactor(search-service): delete barrel file and update imports across frontend
* refactor(sharemodal): delete barrel file and update imports
* refactor(search-service): update features/search/service imports
* chore(betterer): update results file
2024-12-06 16:44:30 +01:00
1fc9b4bfc1
Chore: Remove dashboard state barrel file ( #97562 )
...
* refactor(dashboard-state): delete dashboard/state barrel file and update imports
* chore(betterer): update results
2024-12-06 16:01:51 +01:00
5039725da6
Snapshots: Add RBAC roles for creating and deleting ( #96126 )
2024-11-26 09:13:17 -03:00
b8e92aacd2
PublicDashboards: Remove publicDashboards FF ( #96578 )
2024-11-20 11:36:19 -03:00
3b36438b1c
Reporting: Add theme option ( #95008 )
...
* swagger doc
* Update doc for report settings
* Apply suggestions from code review
* swagger doc
* add doc for current theme
* update text
* wording feedback changes
* make it clearer
* update again
* update theme component
* swagger doc
---------
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-11-14 14:45:49 -05:00
af42f31fe6
ShareDrawer: Update documentation link buttons ( #93339 )
2024-09-18 11:53:02 +01:00
c56870e511
ShareDrawer: Test coverage ( #93111 )
2024-09-13 11:01:21 -03:00
afe457306a
ShareDrawer: Change alert texts ( #93184 )
2024-09-10 17:11:54 -03:00
644a315667
ShareDrawer: Improvements ( #93107 )
2024-09-09 19:32:45 -03:00
8862578f50
ShareDrawer: Wrap render logic and add shareView
query param ( #92060 )
2024-08-27 16:31:07 +03:00
022892ef72
Routing: Add CompatRouter to tests ( #92114 )
...
* Add CompatRouter
* Fix tests
* Add CompatRouter to TestProvider
* Use findBy
* Remove AppChromeService
* Remove historyOptions
* Routing: Fix alerting/test utils issues from react compat router usage (#92127 )
---------
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-08-22 13:05:12 +03:00
07500e11be
ShareExternally: Rename public dashboard section ( #91928 )
2024-08-14 17:03:19 -03:00
b569c1610f
ShareDrawer: Share embed panel ( #90994 )
2024-08-14 10:49:10 -03:00
78f78753c7
Chore: Migrate Modal
SCSS styles to emotion ( #91569 )
...
migrate modal scss styles to emotion
2024-08-12 12:55:22 +01:00
2a1b620c38
Dashboard: share modal: open link in new page ( #89710 )
...
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-07-02 17:06:08 -04:00
751e6739f3
ShareDrawer: Add menu item click tracking ( #89860 )
2024-07-01 09:01:14 -03:00
fb15d681a1
PublicDashboards: Update data sources supported list ( #89704 )
...
PublicDashboards: Update datasources compatibility list
2024-06-26 08:44:05 -03:00
0d276fe7b1
Share Externally: Texts modification ( #89640 )
2024-06-25 17:52:41 -03:00
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
84590901e5
Chore: Migrate some more deprecated SCSS ( #89160 )
...
* 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
2024-06-14 10:46:44 +01:00
7664b89209
ShareModal: Share externally ( #88259 )
2024-06-12 17:02:06 -03:00
e86784200a
Create lib panel and replace it in scene ( #88504 )
...
* Create lib panel - also replace it in scene
* refactor
* refactor
* refactor
2024-06-03 11:02:41 +03:00
cadc551a3c
Chore: Remove deprecated re-exported template variable types ( #87459 )
...
Chore: Remove deprecated re-exported template varible types
2024-05-10 12:00:41 +01:00
b77763bbcc
ShareModal: Differentiate between panel and dashboard share for tracking ( #86992 )
2024-04-26 15:35:39 -03:00
85c23eed38
ShareModal: Remove PublicDashboard tab when share panel ( #86946 )
2024-04-26 11:34:55 -03:00
0f98bd3b7b
Chore: Rewrite dashboard component css using object styles ( #86930 )
2024-04-25 20:18:02 +01:00
fc5007b0d5
Dashboards: Fix minor i18n papercuts that snuck through ( #86802 )
...
* fix two issues in dashboards i18n
* import
* fix another
2024-04-23 19:30:11 +01:00
a5c75c5ffb
Remove explicit imports of whatwg-fetch
from individual test files
2024-04-18 12:23:38 +01:00
c57c033522
Snapshots: Viewers can not create a Snapshot ( #84952 )
2024-03-22 14:31:01 -03:00
98a6b5debf
Scenes: Fix public dashboard email sharing section ( #84467 )
2024-03-20 12:00:19 -03:00
f26344e176
Share modal: Remove deprecated Form components ( #84173 )
...
* EmailSharingConfiguration: Remove deprecated component
* CreatePublicDashboard: Remove deprecated component
* Update imports
* Update imports[2]
* Fix import
2024-03-14 16:26:15 +02:00
7d6d256335
Snapshots: Change default expiration ( #83550 )
2024-02-28 11:45:22 -03:00
d02de5ddb9
Image Rendering: Add settings for default width, height and scale ( #82040 )
...
* Add Image width & height
* ability to change default width, height and scale
* default ini
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/setting/setting.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/setting/setting.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Added docs, changed frontend
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/api/dtos/frontend_settings.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/api/frontendsettings.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/api/render.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* add query float 64
* Update packages/grafana-runtime/src/config.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/dashboard/components/ShareModal/utils.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* spacing
* fix tests
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
---------
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-02-26 13:27:34 +01:00
cf65d91ee9
Chore: upgrade to msw v2 ( #82270 )
...
* Update dependency msw to v2
* close
* minor fixes
* fetch import changes
* fix some alerting tests
* fix another alerting test
* fix systemjs tests
* don't return undefined in json mocks
* don't return undefined in json response
* add type
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 13:16:44 +00:00