page-lab
page-lab copied to clipboard
Additional pre-defined filter types
Description: Our stakeholders need to be able to see how different sets of pages are performing over time. With our latest updates, PageLab will show you a report based on a query (a simple substring match with a comma-separated list). That's very good, but we also need to be able to take a report (either based on a substring query, or starting from the full set of URLs), and then filter it to only show the pages for a specific business unit or locale.
Obviously, how one sets up pages for various business units and locales, and how you can determine which pages belong to each set, will be different for each company.
I think what we'll need to do is add some general functionality to the open-source Page Lab where it can support predefined filter types (i.e. "select a business unit", "select a geography"). Then we'll need to provide a way for Page Lab developers or admins to define their specific filter types, and hook into the business logic and back-end queries they need to implement those filters.
Acceptance Criteria:
- Given a set of web page URLs (which may be "all URLs" or the result of a substring match), and one or more additional filters such as business unit or locale, return a report (a web page) containing:
- The dashboard summary view with pie charts and averages, but only containing data from the set of URLs specified, and
- The report card tiles for each URL in the set, to drill down to see more detail.
-
Sanitize all data on input and escape the data on output, for security purposes
-
I need to be able to share a report I've crafted with someone else who's not a techie. Sharing a copy/pasted URL is easy. Saving named reports for everyone to re-use is another way to do this, in which case, I want to be able to share a link to a named report.
-
If I send someone a link to a report I set up, they're probably going to want to continue playing with the filtering options from there.