Commit b8484ea
Verification to dashboard (#6516)
* make verification work in a banner
* move custom url input into the banner
* improve notice styles
* expandable instructions
* stop polling pageviews
* rely on tracker_script_config object for installation_method
* proper dismiss logic
* [revert me] debugging UI scenarios
* rename verification (component) to verification_banner
* Refine verification banner UI and copy (#6525)
* Refine verification banner UI and copy
- Simplify failure CTAs: keep "Check again" as primary, add ghost
"Review installation" (or "Try another URL" when a custom URL retry
is offered); remove installation-guide, change-method, and view-snippet
expandable logic
- Render inline "verify your installation manually" / "review your
installation" links inside recommendation text (offer_custom_url_input
scenarios) via safe HTML helpers, avoiding HEEx whitespace pitfalls
- Tighten diagnostics title and body copy
- Move the "Setup pending" pill in the sites list to replace the
percentage indicator; use the generic pill component
- Extend the notice component with title_class override and a spinner
slot; swap success icon to solid check-circle
* improve templating logic
---------
Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
* emails CTA banner
* revert changes committed for debugging
* fix test after rebase
* fix CE tests
* improve stats_controller_test.exs
* E2E: named verification results + add genserver for mock scenarios
* E2E: checks_mock module
* E2E: plug in the ChecksMock module
* E2E: put_verification_scenario endpoint
* e2e test for verification success
* get CI green
* migration: add onboarding_status
* update site schema with the new field
* advance status to verification_succeeded
* fix setup pending pill condition (/sites page)
* further guard verification banner rendering in provisioning flow
* fix verification re-triggering on refresh (review/domain_change)
* add launch_delay option to MockScenarios
* fix site switcher links + more e2e test coverage
* new logic for email reports CTA
* fix verification banner dismiss button showing through the dashboard options menu
* validate named result exists in MockScenarios.put
* move ChecksMock and MockScenarios into a single file, use :ets
* move checks_mock.ex to test/support
* different success message depending on the flow
* fixup: make sure component goes into loading state instantly after clicking retry
* stats_start_date -> ensure_stats_start_date
...and return the whole site struct. StatsController.stats action needs
the whole site returned to known the "just updated" onboarding status
when rendering the dashboard stats.html.
* advance onboarding status from /sites page too
* push_navigate -> redirect
* changelog + change dashboard link text for CE on installation screen
* credo and remove redundant else clause
* fix installation_test (CE)
* fix E2E test
* remove runtime Mix.env call
* do not persist verification params in browser history
* Add workaround for CH query condition cache bug (#6562)
* Use Blacksmith checkout with sticky-disk git mirror in Elixir CI (#6564)
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
* Revert to actions/checkout in Elixir CI (git mirror regressed checkout time) (#6571)
* Revert "Use Blacksmith checkout with sticky-disk git mirror in Elixir CI (#6564)"
This reverts commit fd528f2.
* Fix inert service container health checks in Elixir CI
The postgres and clickhouse health-check options were nested under env,
so Docker never received a health check and jobs could start before
ClickHouse was listening, failing ecto.create with
Mint.TransportError{reason: :closed}. Move options to the service level
and point the ClickHouse check at the real HTTP port (8123 /ping)
instead of the unused 8124.
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
* Give ClickHouse a 2m health-check start period
ClickHouse on these runners can take over 50s to start listening
during load spikes (the same slowness behind the Aug 3+ ecto.create
failures). Without a start period the health check flips to unhealthy
after ~50s and the runner kills the job before the server is ready;
probe failures during the start period no longer count toward
--health-retries.
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
* Probe ClickHouse health check via 127.0.0.1, not localhost
The server fails to bind [::] in these containers (IPv6 disabled) and
falls back to 0.0.0.0 only, while busybox wget resolves localhost to
::1 and does not retry the next address, so the probe got connection
refused forever and every service init failed. Reproduced against
clickhouse/clickhouse-server:25.11.5.8-alpine: localhost fails,
127.0.0.1 succeeds and the container reports healthy within seconds.
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
---------
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
* fight with latency (Try another URL button)
* fight latency (clicking Check again)
Adjust the global btn-base styling to make the button appear "disabled",
when phx-click-loading is set on it.
* nom format e2e
---------
Co-authored-by: Sanne de Vries <65487235+sanne-san@users.noreply.github.com>
Co-authored-by: Artur Pata <artur.pata@gmail.com>
Co-authored-by: Cenk Kücük <cenk@plausible.io>
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>1 parent abdcf50 commit b8484ea
67 files changed
Lines changed: 3385 additions & 1248 deletions
File tree
- assets
- css
- js
- dashboard
- stats/graph
- verification
- liveview
- test-utils
- config
- e2e/tests
- dashboard
- extra/lib
- plausible_web/live
- plausible/installation_support
- verification
- lib
- plausible_web
- components
- controllers
- api
- live
- components
- installation
- templates/stats
- plausible
- stats
- legacy
- test
- plausible_web
- controllers
- api
- live
- components
- plausible
- installation_support
- verification
- site
- support
- dev/controllers
- installation_support/verification
- workers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
78 | 101 | | |
79 | 102 | | |
80 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
99 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
142 | 153 | | |
143 | 154 | | |
144 | 155 | | |
| |||
253 | 264 | | |
254 | 265 | | |
255 | 266 | | |
256 | | - | |
| 267 | + | |
257 | 268 | | |
258 | 269 | | |
259 | 270 | | |
260 | 271 | | |
261 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
262 | 278 | | |
263 | 279 | | |
264 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments