-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create the "Top performing keywords" key metric widget tile #6251
Comments
Makes sense, but the ACs should be a bit more clear about the method, just for clarity's sake. I assume we'll do this via the WP REST API/Site Kit API—do we need to add a new endpoint? If we can just use an existing one it's fine to say that, but if we need to add one we should be clear in the ACs, I think 😅 |
@tofumatt I've just clarified that no new endpoint is required here, just need to use our existing selector with a different |
I think here it's helpful to mention it in the ACs, thanks! 🙂 ACs look good, moving to IB 👍🏻 |
IB ✅ |
QA Update ✅
As mentioned in QAB- |
Feature Description
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
GET:searchanalytics
. ThegetReport
selector from themodules/search-console
store can be used passingQUERY
as the dimension to fetch top search queries ordered by clicks.Implementation Brief
Wait for Create the "New visitors" key metric widget tile #6244 to be merged.
Create
assets/js/components/KeyMetrics/MetricTileTable.js
which exports theMetricTileTable
functional component. Similar toMetricTileNumeric
, it should render the title and the 2-columns table which can be re used by other keymetrics components.. For the table: similar to the existing https://github.com/google/site-kit-wp/blob/199f1212fbfea6b52aa55ea9aa2dcf59b551fc6c/assets/js/components/ReportTable.js but with less optionsrows
:PropTypes.arrayOf( PropTypes.oneOfType( [ PropTypes.array, PropTypes.object ] ) ).isRequired,
similar to the existingReportTable
component.Query the
modules/search-console
data store via thegetReport
selector with themetric
anddimension
as per the AC.DashboardPopularKeywordsWidget
for the correct args that need to be passed to thegetReport
selector.site-kit-wp/assets/js/modules/search-console/components/dashboard/DashboardPopularKeywordsWidget.js
Lines 61 to 81 in 199f121
core/user
data store via thegetDateRangeDates
selectorCreate
assets/js/modules/analytics-4/components/widgets/AnalyticsTopPerformingKeywordsWidget
which exports theAnalyticsTopPerformingKeywordsWidget
functional component.It should render the info as per the designs in Figma.
assets/js/modules/analytics-4/components/common/MetricWidget.js
component created in Create the "New visitors" key metric widget tile #6244 as a base.KeyMetricsReportTable
from above.Create
assets/js/modules/analytics-4/components/widgets/AnalyticsTopPerformingKeywordsWidget.stories.js
All styles should live in the
assets/sass/components/key-metrics
folderTest Coverage
Add unit tests forKeyMetricsReportTable
andAnalyticsTopPerformingKeywordsWidget
components.QA Brief
userInput
feature flag enabled, answer the questionnaire. For now, all widgets are displayed on the dashboard (which will change with future commits). As part of this issue, test the design and metric values of theTop performing keywords
widget rendered in the Key Metrics section.Top performing keywords
stories within the Key Metrics widget section in Storybook.Changelog entry
The text was updated successfully, but these errors were encountered: