analytics/lib/plausible_web/controllers/api
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
..
internal Fix dashboard report behavior when goals are in segments - variant C (#5175) 2025-03-13 13:02:14 +00:00
external_controller.ex Ensure `conn` from `Plug.Conn.read_body` is always passed down the pipeline (#5814) 2025-10-20 11:54:52 +00:00
external_query_api_controller.ex Refactor building the Query struct (#5893) 2025-11-24 09:16:05 +00:00
external_stats_controller.ex Implement support for multiple team owners and multiple teams per user (#5008) 2025-02-19 09:33:25 +00:00
helpers.ex Establish saved segments API (#4899) 2025-01-14 10:12:36 +00:00
internal_controller.ex Set current_team when user has team membership in viewed site (#5284) 2025-04-08 08:09:47 +00:00
paddle_controller.ex Streamline creating/updating/deleting subscriptions in development (#5328) 2025-04-16 13:43:17 +00:00
stats_controller.ex Add report percentages to dashboard and details view (#5923) 2025-12-16 12:43:16 +00:00
system_controller.ex ScriptV2: TrackerScriptCache on ee (#5648) 2025-08-19 11:41:19 +00:00