Commit 65cbc1a
Premium Analytics: add the Post views chart and compose the post detail Traffic tab per the mocks (#50625)
* Premium Analytics: add post detail Performance widget
Restores the WOOA7S-1526 summary-chart half that was dropped when the
design pivoted to the Post highlights tiles (#50457): Views / Comments /
Likes metric tabs over a comparative view-trend line chart, three
columns wide under the highlights row per the latest mocks. The view
series comes from stats/post's daily history, zero-filled and bucketed
client-side (day/week/month) with the comparison window sliced from the
same request; comments and likes are lifetime totals, so their tabs are
value-only. Ports the distributed/gap props back into MetricTabsChart.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Title the card Post views per the design mock
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Rework the card to the Post views chart per the design mocks
The mocks show a plain view-trend line card titled Post views — no
metric tabs — two columns wide beside the Latest likes and Latest
comments cards, under a three-column highlights row whose tiles order
Views / Likes / Comments to match the cards below. Drops the
MetricTabsChart changes (no longer needed), renames the widget to
jpa/post-views, and slices the comparison overlay from the same
stats/post request. The mocks' chart-type dropdown (Line chart) is a
follow-up once bar support lands in the toolkit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Post views: one-row height, matching the Subscribers chart
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/29592133195
Upstream-Ref: Automattic/jetpack@8015cbd1 parent af11688 commit 65cbc1a
2 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | | - | |
| 949 | + | |
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| |||
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | | - | |
| 1103 | + | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
1260 | | - | |
| 1260 | + | |
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
| |||
1790 | 1790 | | |
1791 | 1791 | | |
1792 | 1792 | | |
1793 | | - | |
| 1793 | + | |
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | | - | |
| 949 | + | |
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| |||
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | | - | |
| 1103 | + | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
1260 | | - | |
| 1260 | + | |
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
| |||
1790 | 1790 | | |
1791 | 1791 | | |
1792 | 1792 | | |
1793 | | - | |
| 1793 | + | |
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
| |||
0 commit comments