analytics/lib/plausible_web/controllers
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
..
api Add report percentages to dashboard and details view (#5923) 2025-12-16 12:43:16 +00:00
site Tidy Teams logic around and improve service functions names (#5352) 2025-04-28 08:22:04 +00:00
auth_controller.ex Add ability to enforce 2FA for all members of the team (#5855) 2025-11-04 16:33:44 +00:00
avatar_controller.ex Platform upgrade: elixir 1.19.4 and otp 27.3.4.6 (#5920) 2025-12-01 12:50:49 +00:00
billing_controller.ex Clean up old upgrade page (dead code) (#5652) 2025-08-19 09:12:48 +00:00
debug_controller.ex Fix debug controller domain filtering (#4858) 2024-11-26 15:03:01 +00:00
error_report_controller.ex Simplify Phoenix error template (#2913) 2023-05-16 10:52:17 +02:00
google_analytics_controller.ex Change redirects from external to internal where possible (#5331) 2025-04-16 08:06:07 +00:00
helpers.ex Refactor and consolidate user session logic (#4452) 2024-08-23 10:53:33 +02:00
invitation_controller.ex Tidy Teams logic around and improve service functions names (#5352) 2025-04-28 08:22:04 +00:00
page_controller.ex Onboarding improvements (#4459) 2024-09-02 12:49:54 +02:00
settings_controller.ex Add ability to enforce 2FA for all members of the team (#5855) 2025-11-04 16:33:44 +00:00
site_controller.ex Updated empty states across settings (#5874) 2025-11-24 07:50:14 +00:00
stats_controller.ex Add necessary scaffolding for enabling LV on dashboard (#5930) 2025-12-08 11:46:56 +00:00
unsubscribe_controller.ex Use `:domain` uniformly for all routes instead of `:website` (#4598) 2024-09-26 08:20:35 +00:00