Skip to content

Commit 0c0f56e

Browse files
committed
feat: update onboarding URLs and enhance messaging in prompt payout connect job
- Added a new route for solving onboarding at "/solve". - Updated the onboarding URL in the prompt payout connect job to use the new route for improved user guidance. - Enhanced the notification message to direct users to the updated onboarding process.
1 parent 405215e commit 0c0f56e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

config/config.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ config :algora,
1919
{"/healthcare", "https://blog.algora.io/post/healthcare"},
2020
{"/podcast", "https://www.youtube.com/@algora-io/podcasts"},
2121
{"/create/org", "/onboarding/org"},
22+
{"/solve", "/onboarding/dev"},
2223
{"/onboarding/solver", "/onboarding/dev"}
2324
]
2425

lib/algora/bounties/jobs/prompt_payout_connect.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ defmodule Algora.Bounties.Jobs.PromptPayoutConnect do
1313

1414
require Logger
1515

16-
# TODO: confirm url
17-
@onboarding_url "https://console.algora.io/solve"
18-
1916
@impl Oban.Worker
2017
def perform(%Oban.Job{args: %{"credit_id" => credit_id}}) do
2118
with {:ok, ticket} <-
@@ -65,7 +62,7 @@ defmodule Algora.Bounties.Jobs.PromptPayoutConnect do
6562
end
6663

6764
body =
68-
"@#{credit_tx.user.provider_login}: You've been awarded a **#{credit_tx.net_amount}** by **#{debit_tx.user.name}**! 👉 [Complete your Algora onboarding](#{@onboarding_url}) to collect the #{reward_type}."
65+
"@#{credit_tx.user.provider_login}: You've been awarded a **#{credit_tx.net_amount}** by **#{debit_tx.user.name}**! 👉 [Complete your Algora onboarding](#{AlgoraWeb.Endpoint.url()}/onboarding/dev) to collect the #{reward_type}."
6966

7067
do_perform(ticket_ref, body, installation)
7168
end

0 commit comments

Comments
 (0)