Skip to content

Commit 74363dc

Browse files
chihsuanmatticbot
authored andcommitted
feat: give the Insights traffic views heatmap two rows by default (#51240)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/31677551360 Upstream-Ref: Automattic/jetpack@488e463
1 parent 843a1dc commit 74363dc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This is an alpha version! The changes listed here are not final.
2222
- Detail pages: match the dashboard's tightened widget Card padding.
2323
- Exclude source map files from the distributed package.
2424
- Highlights: Follow the section's all-time and yearly date selection instead of always showing the most recent year, and show every metric on a dashboard whose layout carries no metric selection.
25+
- Insights: give the Traffic views activity heatmap two rows by default, so each day shows its view count.
2526
- Metric tabs: Spread cards evenly across the chart, wrap them before their contents overlap, match the prototype's card fill, spacing and headline value size, and render a lone metric as a static headline.
2627
- Posting activity: Show more history, larger cells, and a count-first tooltip, and drop the Fewer/More posts legend.
2728
- Post traffic activity: show more weeks per page in the views heatmap.

src/dashboard-layout.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,15 @@ function get_dashboard_default_section_layouts() {
362362
1,
363363
1
364364
),
365-
// Row 5: daily views heatmap. One row tall, as in the prototype: at this
366-
// height it renders compact squares, so the tile's width buys years of
367-
// history instead of the ~14 weeks labelled cells would fit.
365+
// Row 5: daily views heatmap. Two rows tall, as in the prototype: the
366+
// cells are sized from the tile's height, and only at this height do they
367+
// grow wide enough to label each day with its view count.
368368
get_dashboard_default_widget_instance(
369369
'default-traffic-views-activity-widget-instance',
370370
'jpa/traffic-views-activity',
371371
8,
372372
4,
373-
1
373+
2
374374
),
375375
// Row 6: the comment leaderboards, shares, and tags.
376376
get_dashboard_default_widget_instance(

0 commit comments

Comments
 (0)