grafana/public/app/types
owensmallwood cfdea1ee30
PublicDashboards: Frontend routing for public dashboards (#48834)
* add isPublic to dashboard

* refactor routes to use route group and add placeholder method for sharing apii

* add sharing pane and utils for public dashboard config to sharing modal

* Sharing modal now persists data through the api

* moves ShareDashboard endpoint to new file and starts adding tests

* generates mocks. Adds tests for public dashboard feature flag

* Adds ability to pass in array of features to enable for the test

* test to update public flag on dashboard WIP

* Adds mock for SaveDashboardSharingConfig

* Fixes tests. Had to use FakeDashboardService

* Adds React tests for public dashboards toggle

* removes semicolons

* refactors SharePublic component to use hooks

* rename from `share publicly` to `public dashboard config`

* checkpoint. debugging tests. need to verify name changes

* checkpoint. test bugs fixed. need to finish returning proper response codes

* finish renaming. fix test

* Update pkg/api/api.go

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>

* update backend url

* rename internal objects and commands. fix configuration modal labels

* add endpoint for retrieving public dashboard configuration and populate the frontend state from it

* add test for dashboardCanBePublic

* adds backend routes

* copy DashboardPage component into component for public dashboards. WIP

* adds react routes, and doesnt render main nav bar when viewing a public route

* removes extra react route from testing

* updates component name

* Wrap the original dashboard component so we can pass props relevant to public dashboards, turn kiosk mode on/off, etc

* Wraps DashboardPage in PublicDashboardPage component. DashboardPage gets rendered in kiosk mode when public prop is passed.

* removes commented out code from exploratory work

* Makes public dashboard routes require no auth

* extracts helper to own util file to check if were viewing a public page

* Hides panel dropdown when its being viewed publicly

* formatting

* use function from utils file for determining if publicly viewed. If public, hides app notifications, searchwrapper, and commandpalette.

* adds unit tests for util function used to see if page is being viewed publicly

* cant added annotations to panel when being publicly viewed

* removes useless comment

* hides backend and frontend pubdash routes behind feature flag

* consider feature flag when checking url path to see if on public dashboard

* renames function

* still render app notifications when in public view

* Extract pubdash route logic into own file

* fixes failing tests

* Determines path using location locationUtils. This covers the case when grafana is being hosted on a subpath. Updates tests.

* renames pubdash web route to be more understandable

* rename route

* fixes failing test

* fixes failing test. Needed to update pubdash urls

* sets flag on grafana boot config for if viewing public dashboard. Removes hacky check that looks at the url

* fixes failing tests. Uses config to determine if viewing public dashboard

* renders the blue panel timeInfo on public dashboard panel

* Extracts conditional logic for rendering components out into their own functions

* removes publicDashboardView check, and uses dashboard meta instead

* the timeInfo is always displayed on the panel

* After fetch of public dashboard dto, the meta isPublic flag gets set and used to determine if viewing public dashboard for child components. Fixes tests for PanelHeader.

* Fixes failing test. Needed to add isPublic flag to dashboard meta.

Co-authored-by: Jeff Levin <jeff@levinology.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2022-06-02 14:57:55 -06:00
..
jquery Minor progress on fixing no-implicit any issues 2019-03-19 18:24:47 +01:00
accessControl.ts RBAC: Make RBAC action names more consistent (#49730) 2022-06-02 13:14:48 +01:00
acl.ts Dashboard: Prevents folder change when navigating to general settings (#38103) 2021-08-20 11:53:48 +02:00
alerting.ts Alerting: Add validation to slack contact point (#45618) 2022-02-25 15:10:21 +01:00
apiKeys.ts Access control: Pass access control metadata for api keys (#48445) 2022-04-29 15:30:24 +02:00
appEvent.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
appNotifications.ts Frontend: Add notification persistence behind feature flag (#47871) 2022-04-20 10:42:32 +01:00
config.ts Chore: Add type info for grafana boot data (#45322) 2022-03-30 10:48:58 +01:00
dashboard.ts PublicDashboards: Frontend routing for public dashboards (#48834) 2022-06-02 14:57:55 -06:00
datasources.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
events.ts Explore: Add t * keybindings to change time range (#45020) 2022-02-17 07:39:02 -06:00
explore.ts Query History: Results pagination (#49217) 2022-05-23 14:43:38 +02:00
folders.ts Access control: Dashboard and folder permissions frontend (#45094) 2022-03-03 15:18:27 +01:00
index.ts Angular: Option to disable angular support and isolate angular dependencies (#45421) 2022-02-16 17:14:33 +01:00
ldap.ts Chore: Fix more strict typescript errors (#35514) 2021-06-14 15:13:48 +01:00
location.ts FieldOverride: Support data links via field overrides (#23590) 2020-04-20 07:37:38 +02:00
lru-cache.d.ts Update dependency lru-cache to v7 (#45074) 2022-02-18 10:23:06 +01:00
organization.ts SelectOrgPage: migrate API function calls to Redux (#43133) 2021-12-16 09:57:18 +01:00
plugins.ts Chore: reduces circular dependencies for variables/utils.ts (#44087) 2022-01-17 12:48:26 +01:00
preferences.ts Query History: Implement RemoteStorage methods: settings (#49320) 2022-05-23 13:42:12 +02:00
query.ts DataSource: Default data source is no longer a persisted state but just the default data source for new panels (#45132) 2022-03-08 08:56:12 +01:00
serviceaccount.ts ServiceAccounts: refactor UI (#49508) 2022-06-01 09:35:16 +02:00
store.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
suggestions.ts VisualizationSuggestions: Support image & text instead of real previews. Adds suggestions for all non data panels when there are no data (#42074) 2021-11-25 10:52:01 +01:00
svg.d.ts Transforms: Adds beta notice and updates transform descriptions (#24158) 2020-05-04 15:05:31 +02:00
teams.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
templates.ts make variable type more slim 2019-01-07 11:26:06 +01:00
unified-alerting-dto.test.ts Alerting: Add a "Reason" to Alert Instances to show underlying cause of state. (#49259) 2022-05-23 16:49:49 +08:00
unified-alerting-dto.ts Alerting: Add a "Reason" to Alert Instances to show underlying cause of state. (#49259) 2022-05-23 16:49:49 +08:00
unified-alerting.ts Alerting: Add a "Reason" to Alert Instances to show underlying cause of state. (#49259) 2022-05-23 16:49:49 +08:00
user.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
window.d.ts Chore: Prevent loading error from showing too early (#41347) 2021-11-08 16:13:37 +01:00