ShareDrawer: Enable by default (#97259)

pull/97397/head^2
Juan Cabanas 7 months ago committed by GitHub
parent e6a6b3e31a
commit c2333e3bc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
  2. 2
      e2e/dashboards-suite/dashboard-public-templating.spec.ts
  3. 2
      e2e/dashboards-suite/snapshot-create.spec.ts
  4. 2
      pkg/services/featuremgmt/registry.go
  5. 6
      pkg/services/featuremgmt/toggles_gen.json
  6. 7
      public/app/features/dashboard-scene/sharing/ShareButton/ShareButton.tsx

@ -70,7 +70,7 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general-
| `tlsMemcached` | Use TLS-enabled memcached in the enterprise caching feature | Yes | | `tlsMemcached` | Use TLS-enabled memcached in the enterprise caching feature | Yes |
| `cloudWatchNewLabelParsing` | Updates CloudWatch label parsing to be more accurate | Yes | | `cloudWatchNewLabelParsing` | Updates CloudWatch label parsing to be more accurate | Yes |
| `accessActionSets` | Introduces action sets for resource permissions. Also ensures that all folder editors and admins can create subfolders without needing any additional permissions. | Yes | | `accessActionSets` | Introduces action sets for resource permissions. Also ensures that all folder editors and admins can create subfolders without needing any additional permissions. | Yes |
| `newDashboardSharingComponent` | Enables the new sharing drawer design | | | `newDashboardSharingComponent` | Enables the new sharing drawer design | Yes |
| `notificationBanner` | Enables the notification banner UI and API | Yes | | `notificationBanner` | Enables the notification banner UI and API | Yes |
| `pluginProxyPreserveTrailingSlash` | Preserve plugin proxy trailing slash. | | | `pluginProxyPreserveTrailingSlash` | Preserve plugin proxy trailing slash. | |
| `pinNavItems` | Enables pinning of nav items | Yes | | `pinNavItems` | Enables pinning of nav items | Yes |

@ -7,7 +7,7 @@ describe('Create a public dashboard with template variables shows a template var
it('Create a public dashboard with template variables shows a template variable warning', () => { it('Create a public dashboard with template variables shows a template variable warning', () => {
// Opening a dashboard with template variables // Opening a dashboard with template variables
e2e.flows.openDashboard({ uid: 'HYaGDGIMk' }); e2e.flows.openDashboard({ uid: 'HYaGDGIMk', queryParams: { '__feature.newDashboardSharingComponent': false } });
// Open sharing modal // Open sharing modal
e2e.components.NavToolbar.shareDashboard().click(); e2e.components.NavToolbar.shareDashboard().click();

@ -10,7 +10,7 @@ describe('Snapshots', () => {
cy.intercept({ cy.intercept({
pathname: '/api/ds/query', pathname: '/api/ds/query',
}).as('query'); }).as('query');
e2e.flows.openDashboard({ uid: 'ZqZnVvFZz' }); e2e.flows.openDashboard({ uid: 'ZqZnVvFZz', queryParams: { '__feature.newDashboardSharingComponent': false } });
cy.wait('@query'); cy.wait('@query');
const panelsToCheck = [ const panelsToCheck = [

@ -1248,7 +1248,7 @@ var (
Stage: FeatureStageGeneralAvailability, Stage: FeatureStageGeneralAvailability,
Owner: grafanaSharingSquad, Owner: grafanaSharingSquad,
FrontendOnly: true, FrontendOnly: true,
Expression: "false", // disabled by default Expression: "true", // enabled by default
}, },
{ {
Name: "alertingListViewV2", Name: "alertingListViewV2",

@ -2327,10 +2327,10 @@
{ {
"metadata": { "metadata": {
"name": "newDashboardSharingComponent", "name": "newDashboardSharingComponent",
"resourceVersion": "1726241874335", "resourceVersion": "1733231733564",
"creationTimestamp": "2024-05-03T15:02:18Z", "creationTimestamp": "2024-05-03T15:02:18Z",
"annotations": { "annotations": {
"grafana.app/updatedTimestamp": "2024-09-13 15:37:54.335099 +0000 UTC" "grafana.app/updatedTimestamp": "2024-12-03 13:15:33.564083 +0000 UTC"
} }
}, },
"spec": { "spec": {
@ -2338,7 +2338,7 @@
"stage": "GA", "stage": "GA",
"codeowner": "@grafana/sharing-squad", "codeowner": "@grafana/sharing-squad",
"frontend": true, "frontend": true,
"expression": "false" "expression": "true"
} }
}, },
{ {

@ -46,7 +46,12 @@ export default function ShareButton({ dashboard, panel }: { dashboard: Dashboard
<Trans i18nKey="share-dashboard.share-button">Share</Trans> <Trans i18nKey="share-dashboard.share-button">Share</Trans>
</Button> </Button>
<Dropdown overlay={MenuActions} placement="bottom-end" onVisibleChange={onMenuClick}> <Dropdown overlay={MenuActions} placement="bottom-end" onVisibleChange={onMenuClick}>
<Button data-testid={newShareButtonSelector.arrowMenu} size="sm" icon={isOpen ? 'angle-up' : 'angle-down'} /> <Button
aria-label="share-dropdown-menu"
data-testid={newShareButtonSelector.arrowMenu}
size="sm"
icon={isOpen ? 'angle-up' : 'angle-down'}
/>
</Dropdown> </Dropdown>
</ButtonGroup> </ButtonGroup>
); );

Loading…
Cancel
Save