Skip to content
Snippets Groups Projects
Commit ae784448 authored by Uku Taht's avatar Uku Taht
Browse files

Add notice about feature preview

parent 4cc4e0d6
Branches
No related tags found
No related merge requests found
......@@ -169,14 +169,6 @@ site_limit_exempt =
|> String.split(",")
|> Enum.map(&String.trim/1)
import_testers =
config_dir
|> get_var_from_path_or_env("IMPORT_TESTERS", "")
|> String.split(",")
|> Enum.map(&String.trim/1)
|> Enum.filter(&(&1 !== ""))
|> Enum.map(&String.to_integer/1)
disable_cron =
config_dir
|> get_var_from_path_or_env("DISABLE_CRON", "false")
......@@ -201,7 +193,6 @@ config :plausible,
super_admin_user_ids: super_admin_user_ids,
site_limit: site_limit,
site_limit_exempt: site_limit_exempt,
import_testers: import_testers,
is_selfhost: is_selfhost,
custom_script_name: custom_script_name,
domain_blacklist: domain_blacklist
......
......@@ -47,9 +47,14 @@
</div>
<% end %>
<%= if Application.get_env(:plausible, :environment) == "prod" && @conn.assigns[:current_user].id in Application.get_env(:plausible, :import_testers) do %>
<div class="shadow bg-white dark:bg-gray-800 sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6">
<header class="relative">
<div class="w-full px-4 py-4 text-sm text-yellow-800 bg-yellow-100 rounded transition" role="alert">
<b>Feature preview:</b> Import from Google Analytics is ready to be tested, but it's not completely finalized yet. Please leave your
feedback on the relevant <%= link("Github Discussion", to: "https://github.com/plausible/analytics/discussions/1794", target: "_blank", class: "underline") %> so we can improve the feature.
</div>
<header class="relative mt-4">
<h2 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">Data Import from Google Analytics</h2>
<p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-200">Import existing data from your Google Analytics account.</p>
<%= link(to: "https://docs.plausible.io/import-data/", target: "_blank", rel: "noreferrer") do %>
......@@ -112,4 +117,3 @@
</div>
<% end %>
</div>
<% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment