Skip to content

Conversation

@chippison
Copy link
Contributor

@chippison chippison commented Jan 28, 2026

Description

DEV-19806

We want to add in a functionality to export the current dashboard into a Scheduled Report. This will attempt to map dashboard widgets with reports available to be scheduled.

This will not be a perfect 1-1 relationship between dashboard widget and scheduled reports and there will be some widgets that will not be mapped to a report. The user will be informed/notified about the missing dashboard widgets in an infoobox that will show everytime we export a dashboard.

This will cover 3 JIRA issues:
https://innocraft.atlassian.net/browse/DEV-19804
https://innocraft.atlassian.net/browse/DEV-19805
https://innocraft.atlassian.net/browse/DEV-19806

Acceptance Criteria:

  • A new link is added under the Dashboard selector menu, in the section “Manage this dashboard”
    • The link label is: “Export this dashboard”
    • The link is positioned as the first item in the section, above “Reset dashboard”
    • The link is visible to all users, including:
      • View users
      • Users without write permissions
      • Anonymous users (eg. demo environments)
  • Clicking the link
    • Works for authenticated users with at least View access
    • Redirects unauthenticated users to the login flow as per existing behaviour
  • Clicking “Export this dashboard” redirects the user to Create and Schedule a report
  • Matomo (in the Dashboard plugin controller) will automatically map:
    • Dashboard widgets → report list.
  • Widgets without a corresponding report are excluded from the export configuration
    • Example: “About Matomo” widgets
  • When the user lands on the Create and Schedule a report page via this dashboard link:
    • A new info box is displayed at the top of the page
    • This info box is only shown when coming from a dashboard export action
    • Proposed text in the JIRA issue DEV-19806
  • Report configuration defaults
    • Report description
      • Automatically pre-filled
      • Editable by the user
      • Proposed text in the JIRA issue DEV-19806
    • Report selection
      • All reports that match widgets from the dashboard are pre-selected
      • Reports that do not match a widget remain unselected

Checklist

  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules

Review

@chippison chippison added this to the 5.7.0 milestone Jan 28, 2026
chippison and others added 29 commits January 28, 2026 14:02
…unning/calling multiple functions to get report index
…nstead of json of its widgets. We will just make an ajax request to grab needed data on ManageScheduledReport.vue
…and we only call this when dashboardId is present in the URL
…of it being done on the index action of controller
… exported as we know these do not show reports
...MatomoUrl.urlParsed.value,
} as QueryParameters;

delete query.category;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just to clear off unrelated parameters in the URL and hash

@chippison chippison modified the milestones: 5.7.0, 5.8.0 Jan 29, 2026

hash.idDashboard = dashboardId;
delete hash.category;
delete hash.subcategory;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same Here

@chippison chippison marked this pull request as ready for review January 29, 2026 00:37
@chippison chippison requested a review from a team January 29, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants