analytics/lib/plausible_web/views
hq1 cc769dfb3d
Edit goals with display names (#4415)
* Update Goal schema

* Equip ComboBox with the ability of JS selection callbacks

* Update factory so display_name is always present

* Extend Goals context interface

* Update seeds

Also farming unsuspecting BEAM programmers for better
sample page paths :)

* Update ComboBox test

* Unify error message color class with helpers seen elsewhere

* Use goal.display_name where applicable

* Implement LiveView extensions for editing goals

* Sprinkle display name in external stats controller tests

* Format

* Fix goal list mobile view

* Update lib/plausible_web/live/goal_settings/list.ex

Co-authored-by: Artur Pata <artur.pata@gmail.com>

* Update lib/plausible_web/live/goal_settings/form.ex

Co-authored-by: Artur Pata <artur.pata@gmail.com>

* Update the APIs: plugins and external

* Update test so the intent is clearer

* Format

* Update CHANGELOG

* Simplify form tabs tests

* Revert "Format"

This reverts commit c1647b5307.

* Fixup format commit that went too far

* ComboBox: select the input contents on first focus

* Update lib/plausible/goal/schema.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update lib/plausible/goals/goals.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update lib/plausible_web/live/goal_settings/form.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Pass form goal instead of just ID

* Make tab component dumber

* Extract separate render functions for edit and create forms

* Update test to account for extracted forms

* Inline goal get query

* Extract revenue goal settings to a component and avoid computing assigns in flight

* Make LV modal preload optional

* Disable preload for goal settings form modal

* Get rid of phash component ID hack

* For another render after render_submit when testing goal updates

* Fix LV preload option

* Enable preload back for goals modal for now

* Make formatter happy

* Implement support for preopening of LV modal

* Preopen goals modal to avoid feedback gap on loading edited goal

* Remove `console.log` call from modal JS

* Clean up display name input IDs

* Make revenue settings functional on first edit again

* Display names: 2nd stage migration

* Update migration with data backfill

---------

Co-authored-by: Artur Pata <artur.pata@gmail.com>
Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
2024-08-09 11:12:00 +02:00
..
site Invitations (#1122) 2021-06-16 15:00:07 +03:00
auth_view.ex Add CRM QoL improvements around usage info and linking Paddle (#4229) 2024-06-17 09:21:24 +02: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 Edit goals with display names (#4415) 2024-08-09 11:12:00 +02:00
error_view.ex Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
form_helpers.ex Add error state when no data is returned from GA API 2022-06-02 14:40:52 +03:00
google_analytics_view.ex Unify UA and GA4 import flow into one (#3888) 2024-03-21 11:37:10 +01:00
layout_view.ex Remove Timex.today (#4357) 2024-07-23 09:02:14 +02:00
page_view.ex add landing page (#2989) 2023-06-01 14:34:48 +03:00
site_view.ex Make final touches to Imports & Exports (#4025) 2024-04-19 11:40:13 +02:00
stats_view.ex Add CRM QoL improvements around usage info and linking Paddle (#4229) 2024-06-17 09:21:24 +02: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