Skip to content

Conversation

YodaLightsabr
Copy link
Contributor

Summary of the problem

Referral::Programs 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

@YodaLightsabr YodaLightsabr requested review from a team as code owners August 11, 2025 03:17
@YodaLightsabr YodaLightsabr marked this pull request as draft August 11, 2025 03:17
@YodaLightsabr YodaLightsabr force-pushed the allow-admins-to-make-referral-programs branch from c1a81c0 to 2e3fece Compare August 11, 2025 03:29
@YodaLightsabr YodaLightsabr marked this pull request as ready for review August 12, 2025 23:09
@YodaLightsabr YodaLightsabr requested a review from Copilot August 12, 2025 23:09
Copy link
Contributor

@Copilot Copilot AI left a 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.

@YodaLightsabr YodaLightsabr added this pull request to the merge queue Aug 12, 2025
Merged via the queue into main with commit 4170eac Aug 12, 2025
13 checks passed
@YodaLightsabr YodaLightsabr deleted the allow-admins-to-make-referral-programs branch August 12, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants