-
Notifications
You must be signed in to change notification settings - Fork 58
🔗 Allow admins to create referral programs #11288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c1a81c0
to
2e3fece
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables administrators to create referral programs through the admin interface, removing the dependency on engineering team console access. Previously, referral programs could only be created by engineers directly through the console, creating unnecessary friction for the team.
- Added new admin routes and controller methods for viewing and creating referral programs
- Created an admin interface for managing referral programs with creation form
- Added referral program filtering to the admin users view
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
config/routes.rb | Adds new admin routes for referral program management |
app/views/layouts/admin.html.erb | Adds referral programs navigation link with counter |
app/views/admin/users.html.erb | Adds referral program filter dropdown to user search |
app/views/admin/referral_programs.html.erb | Creates new admin interface for viewing and creating referral programs |
app/controllers/admin_controller.rb | Implements controller methods for referral program CRUD operations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Summary of the problem
Referral::Program
s can only be created by having the engineering team open up the HCB console and create a program from there—there's too much friction here, and it makes it harder for our team to quickly iterate.Describe your changes
Allow any admin to create a referral program