adding athena intro - #301
Conversation
Removed duplicate dark_mode_background_path method definition.
| def dialogue_flow | ||
| [ | ||
| intro: [ template: "tutorial/athena/intro", next: nil ] | ||
| ] |
There was a problem hiding this comment.
dialogue_flow returns an Array here instead of a Hash – the outer [...] should be {...}, and same for the inner value brackets. as-is, template_for(:intro) will raise TypeError: no implicit conversion of Symbol into Integer when it tries to look up :intro on the Array. this will crash the onboarding flow for every Athena user on signup.
you can look at the other onboarding scenarios for how to do this
There was a problem hiding this comment.
also, if they're being added as full members (they should) this will be looking for the :welcome template, so you should probably change the key!
|
|
||
| def slack_onboarding_flow = :internal_tutorial | ||
| def slack_channels = chans(:athena_initiative, :welcome_to_athena, :athena_announcements) | ||
|
|
There was a problem hiding this comment.
| def slack_user_type = :full_member |
| def dialogue_flow | ||
| [ | ||
| intro: [ template: "tutorial/athena/intro", next: nil ] | ||
| ] |
There was a problem hiding this comment.
also, if they're being added as full members (they should) this will be looking for the :welcome template, so you should probably change the key!
Co-authored-by: 24c02 <163450896+24c02@users.noreply.github.com>
No description provided.