Skip to content

Commit 65cbc1a

Browse files
dognose24matticbot
authored andcommitted
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@8015cbd
1 parent af11688 commit 65cbc1a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

dist/index.d.cts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ declare const BarListChartResponsive: ({
946946
width,
947947
height,
948948
...chartProps
949-
}: Omit<BarListChartProps, "width" | "height" | "size"> & {
949+
}: Omit<BarListChartProps, "size" | "width" | "height"> & {
950950
width?: number;
951951
height?: number;
952952
size?: number;
@@ -1100,7 +1100,7 @@ declare const GeoChartResponsive: ({
11001100
width,
11011101
height,
11021102
...chartProps
1103-
}: Omit<GeoChartProps, "width" | "height" | "size"> & {
1103+
}: Omit<GeoChartProps, "size" | "width" | "height"> & {
11041104
width?: number;
11051105
height?: number;
11061106
size?: number;
@@ -1257,7 +1257,7 @@ declare const LeaderboardChartResponsive: (({
12571257
width,
12581258
height,
12591259
...chartProps
1260-
}: Omit<LeaderboardChartProps, "width" | "height" | "size"> & {
1260+
}: Omit<LeaderboardChartProps, "size" | "width" | "height"> & {
12611261
width?: number;
12621262
height?: number;
12631263
size?: number;
@@ -1790,7 +1790,7 @@ declare const Sparkline: ({
17901790
width,
17911791
height,
17921792
...chartProps
1793-
}: Omit<SparklineProps, "width" | "height" | "size"> & {
1793+
}: Omit<SparklineProps, "size" | "width" | "height"> & {
17941794
width?: number;
17951795
height?: number;
17961796
size?: number;

dist/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ declare const BarListChartResponsive: ({
946946
width,
947947
height,
948948
...chartProps
949-
}: Omit<BarListChartProps, "width" | "height" | "size"> & {
949+
}: Omit<BarListChartProps, "size" | "width" | "height"> & {
950950
width?: number;
951951
height?: number;
952952
size?: number;
@@ -1100,7 +1100,7 @@ declare const GeoChartResponsive: ({
11001100
width,
11011101
height,
11021102
...chartProps
1103-
}: Omit<GeoChartProps, "width" | "height" | "size"> & {
1103+
}: Omit<GeoChartProps, "size" | "width" | "height"> & {
11041104
width?: number;
11051105
height?: number;
11061106
size?: number;
@@ -1257,7 +1257,7 @@ declare const LeaderboardChartResponsive: (({
12571257
width,
12581258
height,
12591259
...chartProps
1260-
}: Omit<LeaderboardChartProps, "width" | "height" | "size"> & {
1260+
}: Omit<LeaderboardChartProps, "size" | "width" | "height"> & {
12611261
width?: number;
12621262
height?: number;
12631263
size?: number;
@@ -1790,7 +1790,7 @@ declare const Sparkline: ({
17901790
width,
17911791
height,
17921792
...chartProps
1793-
}: Omit<SparklineProps, "width" | "height" | "size"> & {
1793+
}: Omit<SparklineProps, "size" | "width" | "height"> & {
17941794
width?: number;
17951795
height?: number;
17961796
size?: number;

0 commit comments

Comments
 (0)