-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Updated empty states across settings #5874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9ccce04
Updated empty states across settings
sanne-san 779dd92
Fix funnels and props functionality not hiding when toggled off
sanne-san 39d7dbd
Update personal sites empty state
sanne-san 7f68d17
Make `tile` component lv-embeddable (#5891)
aerosol beefacd
Use new tile component for funnels, goals, imports and custom properties
sanne-san 5d7fa4f
Add empty states for team sites and simplify empty state logic
sanne-san 7ecdb87
Clean up:
aerosol a589d78
Merge branch 'master' into sanne-empty-states
aerosol 5d9e42f
Fixup
aerosol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,11 +12,13 @@ defmodule PlausibleWeb.Live.FunnelSettings.List do | |
| def render(assigns) do | ||
| ~H""" | ||
| <div> | ||
| <.filter_bar filter_text={@filter_text} placeholder="Search Funnels"> | ||
| <.button id="add-funnel-button" phx-click="add-funnel" mt?={false}> | ||
| Add funnel | ||
| </.button> | ||
| </.filter_bar> | ||
| <%= if String.trim(@filter_text) != "" || Enum.count(@funnels) > 0 do %> | ||
RobertJoonas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <.filter_bar filter_text={@filter_text} placeholder="Search Funnels"> | ||
| <.button id="add-funnel-button" phx-click="add-funnel" mt?={false}> | ||
| Add funnel | ||
| </.button> | ||
| </.filter_bar> | ||
| <% end %> | ||
|
|
||
| <%= if Enum.count(@funnels) > 0 do %> | ||
| <.table rows={@funnels}> | ||
|
|
@@ -42,17 +44,33 @@ defmodule PlausibleWeb.Live.FunnelSettings.List do | |
| </:tbody> | ||
| </.table> | ||
| <% else %> | ||
| <p class="mt-12 mb-8 text-sm text-center"> | ||
| <span :if={String.trim(@filter_text) != ""}> | ||
| <%= if String.trim(@filter_text) != "" do %> | ||
RobertJoonas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <p class="mt-12 mb-8 text-sm text-center"> | ||
| No funnels found for this site. Please refine or | ||
| <.styled_link phx-click="reset-filter-text" id="reset-filter-hint"> | ||
| reset your search. | ||
| </.styled_link> | ||
| </span> | ||
| <span :if={String.trim(@filter_text) == "" && Enum.empty?(@funnels)}> | ||
| No funnels configured for this site. | ||
| </span> | ||
| </p> | ||
| </p> | ||
| <% else %> | ||
| <div class="flex flex-col items-center justify-center pt-5 pb-6 max-w-md mx-auto"> | ||
| <h3 class="text-center text-base font-medium text-gray-900 dark:text-gray-100 leading-7"> | ||
| Create your first funnel | ||
| </h3> | ||
| <p class="text-center text-sm mt-1 text-gray-500 dark:text-gray-400 leading-5 text-pretty"> | ||
| Compose goals into funnels to track user flows and conversion rates. | ||
| <.styled_link href="https://plausible.io/docs/funnel-analysis" target="_blank"> | ||
| Learn more | ||
| </.styled_link> | ||
| </p> | ||
| <.button | ||
| id="add-funnel-button" | ||
| phx-click="add-funnel" | ||
| class="mt-4" | ||
| > | ||
| Add funnel | ||
| </.button> | ||
| </div> | ||
| <% end %> | ||
| <% end %> | ||
| </div> | ||
| """ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.