analytics/lib/plausible_web/views
Adrian Gruntkowski 39aa81a16f
Implement UI for multiple imports (#3727)
* Create a stub of site settings section for imports and exports

* Use legacy site import indication to determine UA import handling

* Add provisional logos for upcoming import sources

* Stub basics of import page

* Add very rudimentary support for multiple UA imports

* Implement imports list as live view

* Add support for opening LV modal from backend and closing from frontend

* Introduce notion of themes to `button` and `button_link` components

* Add confirmation modal on deleting import

* Swap GA4 logo

* Implement disabled state support for `button_link` component

* Disable export and non-implemented import sources

* Use native starts start date for upper boundary of import time range

* Ensure integrations view uses legacy UA import flow

* Remove unnecessary preload in SiteController

* Remove unnecessary exception for legacy imports

* Move API controller stats tests under PlausibleWeb

* Test listing imports

* Add test for explicit listener setup

* Add tests for legacy flag state in UA importer

* Add test for purging legacy import data

* Add tests for `Sites.native_stats_start_date`

* Test forgetting imports

* Add `Stats.Clickhouse.imported_pageview_counts/1` and fix test flakiness

* Show page view counts on imports list

* Add tests for static imports and exports view

* Adjust button look slightly

* Use `case` instead of `cond`

* Make feature flag customisable per site

* Fix buttons and empty state styling

* Add another import to seeds

* Use JS confirm dialog instead of modal for deletion confirmations

* Revert "Add support for opening LV modal from backend and closing from frontend"

This reverts commit 260e6c753032b451542e24be9edc2118790b5a00.

* Default `legacy` to false when inserting new import jobs

* Drop `method` attribute from `button_link` and `unstyled_link` components
2024-02-28 09:34:04 +01:00
..
site Invitations (#1122) 2021-06-16 15:00:07 +03:00
auth_view.ex Move dogfooding to full build (#3576) 2023-12-04 10:30:20 +01:00
billing_view.ex Move dogfooding to full build (#3576) 2023-12-04 10:30:20 +01:00
email_view.ex Move dogfooding to full build (#3576) 2023-12-04 10:30:20 +01:00
error_helpers.ex Implement better user password validation (#3344) 2023-09-25 10:27:29 +02:00
error_view.ex Merge Plugins.API.Router into main one (#3767) 2024-02-12 10:44:32 +01:00
form_helpers.ex Add error state when no data is returned from GA API 2022-06-02 14:40:52 +03:00
layout_view.ex Implement UI for multiple imports (#3727) 2024-02-28 09:34:04 +01:00
page_view.ex add landing page (#2989) 2023-06-01 14:34:48 +03:00
site_view.ex Move dogfooding to full build (#3576) 2023-12-04 10:30:20 +01:00
stats_view.ex Improve print dashboard css (#3754) 2024-02-07 08:57:39 +01:00
text_helpers.ex Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
unsubscribe_view.ex Add and remove recipients for email reports (#28) 2020-01-22 11:16:53 +02:00