From 5c5d37d648e9b5794b7e5525a36c3714af1ce12a Mon Sep 17 00:00:00 2001
From: Andy Zhao <17884966+Zhao-Andy@users.noreply.github.com>
Date: Wed, 28 Jul 2021 14:27:17 -0400
Subject: [PATCH] Update admin welcome checklist (#14261)
* Update admin welcome checklist
* Update invite link text in test
* Remove extraneous invite line and period
* Add overview tracking to all links in checklist
* Fix spec to check for proper link
---
app/views/admin/overview/index.html.erb | 34 ++++++++++++++-----
.../admin/admin_visits_overview_spec.rb | 4 +--
2 files changed, 28 insertions(+), 10 deletions(-)
diff --git a/app/views/admin/overview/index.html.erb b/app/views/admin/overview/index.html.erb
index 041d04d83..8f2ac1492 100644
--- a/app/views/admin/overview/index.html.erb
+++ b/app/views/admin/overview/index.html.erb
@@ -7,15 +7,33 @@
Welcome Checklist
Here are a few things we recommend doing now that you're using Forem!
+
- - Set up and configure your Forem under <%= link_to "Config", admin_config_path, "data-action": "click->ahoy#trackOverviewLink" %>
- - <%= link_to "Invite people", admin_invitations_path, "data-action": "click->ahoy#trackOverviewLink" %> to join your Forem
- - <%= link_to "Update your Forem tags", admin_tags_path, "data-action": "click->ahoy#trackOverviewLink" %>
- - <%= link_to "Create pages", admin_pages_path, "data-action": "click->ahoy#trackOverviewLink" %> and <%= link_to "sort them in the navigation sidebar", admin_navigation_links_path, "data-action": "click->ahoy#trackOverviewLink" %>
- - Read the Quick Start Guide
- - <%= link_to "Set up a Welcome Thread", admin_welcome_index_path, "data-action": "click->ahoy#trackOverviewLink" %>
- - Browse the Forem Admin Guide
- - Join forem.dev to learn from fellow Forem creators.
+ -
+ Fully review the
+ Forem Admin Documentation
+ and the latest Forem
+ Quick Start Guide
+
+ -
+
+ Set up and configure your Forem
+
+ under <%= link_to "the Config section", admin_config_path, "data-action": "click->ahoy#trackOverviewLink" %>
+
+ - <%= link_to "Create a Welcome Thread", admin_welcome_index_path, "data-action": "click->ahoy#trackOverviewLink" %>
+ - <%= link_to "Update and customize your Forem tags", admin_tags_path, "data-action": "click->ahoy#trackOverviewLink" %>
+ -
+ <%= link_to "Create pages", admin_pages_path, "data-action": "click->ahoy#trackOverviewLink" %>
+ and
+ <%= link_to "sort them in the navigation sidebar", admin_navigation_links_path, "data-action": "click->ahoy#trackOverviewLink" %>
+
+ -
+ Set your Forem's access level
+ and
+ email settings
+
+ - Join forem.dev to learn from fellow Forem creators
Visit Forem Admin Guide
diff --git a/spec/system/admin/admin_visits_overview_spec.rb b/spec/system/admin/admin_visits_overview_spec.rb
index eed7d87df..799487aa6 100644
--- a/spec/system/admin/admin_visits_overview_spec.rb
+++ b/spec/system/admin/admin_visits_overview_spec.rb
@@ -1,6 +1,6 @@
require "rails_helper"
-RSpec.describe "Admin visits the overview page", type: :system, js: true do
+RSpec.describe "Admin visits overview page", type: :system, js: true do
let(:super_admin) { create(:user, :super_admin) }
before do
@@ -9,6 +9,6 @@ RSpec.describe "Admin visits the overview page", type: :system, js: true do
end
it "tracks link clicks" do
- expect { click_link("Invite people") }.to change { Ahoy::Event.count }.by 1
+ expect { click_link("Forem Admin Documentation") }.to change { Ahoy::Event.count }.by 1
end
end