Add step 4 of the intructions

(there is no step 4)
This commit is contained in:
Max Wofford
2025-03-13 12:07:43 -04:00
parent 6110699f4b
commit 8dc698aca7
4 changed files with 36 additions and 0 deletions

View File

@@ -46,6 +46,14 @@ class UsersController < ApplicationController
def wakatime_setup_step_3
end
def wakatime_setup_step_4
@no_instruction_wording = [
"There is no step 4, lol.",
"There is no step 4, psych!",
"Tricked ya! There is no step 4.",
"There is no step 4, gotcha!"
].sample
end
private

View File

@@ -29,6 +29,14 @@
You'll know it works if you see this in your status bar:
</p>
<img src="https://hc-cdn.hel1.your-objectstorage.com/s/v3/bebe242cc56bcd33bbbffad54fa04d4c66b27ee4_screenshot_2025-03-13_at_11.41.27.png" alt="WakaTime status bar in VS Code">
<%= link_to my_wakatime_setup_step_2_path do %>
<button>Back to editor selection</button>
<% end %>
<%= link_to my_wakatime_setup_step_4_path do %>
<button>Next Step</button>
<% end %>
</section>
<script>

View File

@@ -0,0 +1,19 @@
<h1>Wakatime Set Up</h1>
<p>Step 4 of 4</p>
<p>
<%= @no_instruction_wording %> You're already done!
</p>
<div>
<video src="<%= FlavorText.dino_meme_videos.sample %>" autoplay loop muted playsinline controls></video>
</div>
<%= link_to my_wakatime_setup_step_2_path do %>
<button>Set up another editor</button>
<% end %>
<%= link_to root_path do %>
<button>Done</button>
<% end %>

View File

@@ -59,6 +59,7 @@ Rails.application.routes.draw do
get "my/wakatime_setup", to: "users#wakatime_setup", as: :my_wakatime_setup
get "my/wakatime_setup/step-2", to: "users#wakatime_setup_step_2", as: :my_wakatime_setup_step_2
get "my/wakatime_setup/step-3", to: "users#wakatime_setup_step_3", as: :my_wakatime_setup_step_3
get "my/wakatime_setup/step-4", to: "users#wakatime_setup_step_4", as: :my_wakatime_setup_step_4
post "/sailors_log/slack/commands", to: "slack#create"
post "/timedump/slack/commands", to: "slack#create"