Implement invite codes #262

Merged
josefarias merged 6 commits from jose/invite-codes into main 2024-02-03 10:29:14 +08:00
josefarias commented 2024-02-03 07:51:59 +08:00 (Migrated from github.com)
/claim #259 Closes https://github.com/maybe-finance/maybe/issues/259
algora-pbc[bot] commented 2024-02-03 07:52:10 +08:00 (Migrated from github.com)
💵 To receive payouts, [sign up on Algora](https://console.algora.io/auth/signup), [link your Github account](https://console.algora.io/onboarding/solver) and [connect with Stripe/Alipay](https://console.algora.io/onboarding/solver).
Shpigford commented 2024-02-03 07:53:59 +08:00 (Migrated from github.com)

@josefarias Looking good! Is rails c then InviteCode.generate! the way to generate codes?

@josefarias Looking good! Is `rails c` then `InviteCode.generate!` the way to generate codes?
josefarias commented 2024-02-03 07:56:03 +08:00 (Migrated from github.com)

@josefarias Looking good! Is rails c then InviteCode.generate! the way to generate codes?

@Shpigford correct!

> @josefarias Looking good! Is `rails c` then `InviteCode.generate!` the way to generate codes? @Shpigford correct!
josefarias (Migrated from github.com) reviewed 2024-02-03 07:56:50 +08:00
@@ -26,3 +31,4 @@
<h2 class="mt-6 text-3xl font-semibold tracking-tight text-center font-display">
<%= content_for?(:header_title) ? yield(:header_title).html_safe : "Your account" %>
</h2>
josefarias (Migrated from github.com) commented 2024-02-03 07:56:50 +08:00

Should probably style these. Could do that in this PR or separately.

Should probably style these. Could do that in this PR or separately.
Shpigford commented 2024-02-03 07:58:03 +08:00 (Migrated from github.com)

I wouldn't worry about the message styling. We need to overhaul that anyways.

Can you add a rake task for the invite code (so we don't even have to hop in to console)?

I wouldn't worry about the message styling. We need to overhaul that anyways. Can you add a rake task for the invite code (so we don't even have to hop in to console)?
josefarias commented 2024-02-03 08:03:56 +08:00 (Migrated from github.com)

I wouldn't worry about the message styling. We need to overhaul that anyways.

Sounds good!

Can you add a rake task for the invite code (so we don't even have to hop in to console)?

Done! bin/rake invites:create

> I wouldn't worry about the message styling. We need to overhaul that anyways. Sounds good! > Can you add a rake task for the invite code (so we don't even have to hop in to console)? Done! `bin/rake invites:create`
Sign in to join this conversation.