-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #2059
- Loading branch information
Showing
7 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
32 changes: 26 additions & 6 deletions
32
app/components/onboarding_signal_link/onboarding_signal_link.html.erb
This file contains 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 |
---|---|---|
@@ -1,14 +1,34 @@ | ||
<%= c 'stack', **attrs do %> | ||
<%= c 'stack', class: 'text-serif text-center', space: :xsmall do %> | ||
<%= c 'heading', tag: :h1 do %> | ||
<%= t 'components.onboarding_signal_link.heading' %> | ||
<%= t('.heading') %> | ||
<% end %> | ||
|
||
<p><%= t 'components.onboarding_signal_link.text' %></p> | ||
<p><%= t('.text') %></p> | ||
<% end %> | ||
|
||
<%= c 'steps_list', | ||
class: 'text-serif', | ||
steps: fallback_steps.map(&:html_safe) | ||
%> | ||
<%= c 'stack', space: :small, class: 'text-center' do %> | ||
<%= c 'button', | ||
styles: [:primary, :block], | ||
label: t('.link'), | ||
link: signal_link, | ||
target: '_blank' | ||
%> | ||
|
||
<%= c 'copy_button', | ||
styles: [:secondary, :block], | ||
label: t('.copy'), | ||
copy: signal_link | ||
%> | ||
|
||
<%= c 'stack', space: :xsmall, class: 'text-small text-light' do %> | ||
<p> | ||
<%= t('.help', project_name: organization.project_name) %> | ||
</p> | ||
|
||
<% end %> | ||
<p> | ||
<%= t('.message', token: signal_onboarding_token).html_safe %> | ||
</p> | ||
<% end %> | ||
<% end %> |
This file contains 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 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 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 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
7 changes: 7 additions & 0 deletions
7
db/migrate/20241010111754_add_signal_complete_onboarding_link_to_organizations.rb
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddSignalCompleteOnboardingLinkToOrganizations < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :organizations, :signal_complete_onboarding_link, :string | ||
end | ||
end |
This file contains 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