diff --git a/app/models/onboarding_scenarios/campfire.rb b/app/models/onboarding_scenarios/campfire.rb index b1c57d4..99859ff 100644 --- a/app/models/onboarding_scenarios/campfire.rb +++ b/app/models/onboarding_scenarios/campfire.rb @@ -12,7 +12,9 @@ module OnboardingScenarios def slack_user_type = :multi_channel_guest - def slack_channels = chans(:campfire_flagship, :campfire_flagship_bulletin, :campfire_flagship_help) + def slack_channels = chans(:campfire_flagship, :campfire_flagship_bulletin, :campfire_flagship_help, :welcome_to_hack_club) + + def slack_onboarding_flow = :internal_tutorial def next_action = :home @@ -21,5 +23,12 @@ module OnboardingScenarios def card_attributes = { wide_logo: true } def dark_mode_background_path = "images/campfire/campfire.png" + + def dialogue_flow + { + intro: { template: "tutorial/campfire/intro", next: :welcome }, + welcome: { template: "tutorial/03_welcome", next: nil } + } + end end end diff --git a/app/views/slack/tutorial/campfire/intro.slack_message.slocks b/app/views/slack/tutorial/campfire/intro.slack_message.slocks new file mode 100644 index 0000000..8fd22a5 --- /dev/null +++ b/app/views/slack/tutorial/campfire/intro.slack_message.slocks @@ -0,0 +1,10 @@ +image "https://cdn.hackclub.com/019c297b-5d42-7256-a5e5-7d8f9f7adcd5/welcome.gif", "Welcome to Hack Club!" + +section <<~EOFD, markdown: true + Right now you can only see a few channels. + To access other channels, you must read and agree to our . +EOFD + +actions [ + button("I'll follow the CoC!", "tutorial_agree", style: "primary") + ]