analytics/assets
Sanne de Vries dfeda94e06
Add report percentages to dashboard and details view (#5923)
* Update report percentages on dashboard and details view

* Add percentages to Countries, Regions, and Cities reports

* Add percentages to Channels, Sources, and UTM reports

* Add percentages to top pages, entry pages, and exit pages reports

* Update tests to include percentages

* Change dashboard copy from title case to sentence case

* Update details modal style

* Make animations snappier

* Introduce max height to modal and make inner content scrollable

* Improve modal mobile design

- Enable horizontal scroll for details modal on mobile
- Add responsive spacing and positioning to modal

* Added mobile tap behavior to external link in list report

* Show tooltips only when in comparison mode or when the number is abbreviated

* remove previously added showTooltip prop

- This isn't needed anymore since we now handle the tooltip logic in the MetricValue component

* Show long format upon hovering detailed view metrics

* Added mobile tapping behaviour to detailed view

* Added percentages to all detailed views

* Add mobile swipe-to-close behavior for modal

* Adjust sensitivity of modal drag to close

* Use hammerjs for swipe-to-close modal behaviour

* Prevent dragging if gesture starts inside table

* Show 2 decimal places for percentages < 0.1% across dashboard

* Adjust dark mode styles

* Add hover effect to external link icon

* Update tests to expect two-decimal percentages

* Undo hammer install and revert to old modal styling

* Remove CR and % columns from goals and custom props reports on dashboard, and show on hover in detailed view

* Remove unused constants

* Undo conversion rate on hover behaviour

- Unlike percentages, CR should show permanently.

* Show percentages permanently in custom props detailed view

* Adjust width of conversion metrics column

* Updated metric-value test

* Update top-bar test

* Added changelog entry

* Fix test expectations for percentages with imported data

- Update tests to expect correct percentages (≤100%) when imported data is included. These tests will fail until the percentage calculation bug is fixed, documenting the expected behavior.

* Add imported_visitors to tests to ensure correct total_visitors calculation

* Correct imported_visitors count in test
2025-12-16 12:43:16 +00:00
..
css Add report percentages to dashboard and details view (#5923) 2025-12-16 12:43:16 +00:00
js Add report percentages to dashboard and details view (#5923) 2025-12-16 12:43:16 +00:00
test-utils Update site switcher UI to accommodate for consolidated view (#5838) 2025-10-29 10:58:45 +00:00
.prettierignore Remove format pragma, run prettier on /assets (#5237) 2025-03-25 10:16:54 +00:00
.prettierrc.json Remove format pragma, run prettier on /assets (#5237) 2025-03-25 10:16:54 +00:00
.stylelintrc.json Tailwind v4 (#5756) 2025-09-29 15:21:15 +00:00
eslint.config.mjs Update eslint and use eslint flat config (#5260) 2025-04-01 11:14:36 +00:00
jest.config.json Update headlessui to v1.7.19, refactor site switcher (#5255) 2025-05-07 05:22:53 +00:00
package-lock.json Update deps (#5837) 2025-10-28 08:44:42 +00:00
package.json Tailwind v4 (#5756) 2025-09-29 15:21:15 +00:00
tsconfig.json Update Typescript config and add typecheck to CI 2024-08-21 12:40:22 +03:00