Skip to content

Add a Hackpad filter to the funding review queue#687

Merged
dhamariT merged 2 commits into
mainfrom
funding-hackpad-filter
Jun 25, 2026
Merged

Add a Hackpad filter to the funding review queue#687
dhamariT merged 2 commits into
mainfrom
funding-hackpad-filter

Conversation

@dhamariT

@dhamariT dhamariT commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

What this does

Adds a Hackpad filter to the hardware funding review queue (admin/certification/funding_requests#index). Reviewers can now narrow the queue to Hackpad projects — projects whose current (active) mission is the Hackpad mission.

How

  • New "Project" filter select (All projects / Hackpad) next to the existing Status/Sort/Date filters, auto-submitting on change like the others.
  • A project is "Hackpad" when it has an active (non-detached) mission attachment to the mission with slug hackpad — this mirrors Project#current_mission (a project has at most one active mission attachment, enforced by a unique index).
  • The controller scopes funding requests by those project ids when the filter is set.

Testing

Verified locally against a seeded scenario: attaching the Hackpad mission to a project makes its funding request appear under the filter (count 1); detaching it drops it back out (count 0). The page renders 200 with the filter control, and the dropdown reflects the active selection.


Note

Low Risk
Admin-only queue filtering and display; no changes to approval logic or the “Start reviewing” flow.

Overview
Adds a Project filter on the hardware funding review queue so reviewers can show All projects or Hackpad only. Hackpad rows are projects whose active mission attachment is the mission with slug hackpad (same idea as Project#current_mission).

The index action reads project_kind, scopes funding requests to those project ids when Hackpad is selected, and preloads a set of Hackpad project ids for the current page so the table and mobile cards can show a Hackpad pill without per-row mission lookups. Styling adds a lilac ship-queue__tag pill on queue rows.

Reviewed by Cursor Bugbot for commit 228e53f. Bugbot is set up for automated code reviews on this repo. Configure here.

dhamariT added 2 commits June 25, 2026 12:18
Reviewers can now narrow the funding queue to Hackpad projects — those whose
current (active) mission is the Hackpad mission. Adds a 'Project' filter select
(All projects / Hackpad) alongside the existing status/sort/date filters, wired
to scope funding requests by the project's active hackpad mission attachment.
Shows a 'Hackpad' pill next to the project title in the funding queue (table
and mobile card) for projects whose current mission is Hackpad. The displayed
rows' hackpad project ids are loaded in one query to avoid an N+1.
@dhamariT dhamariT added this pull request to the merge queue Jun 25, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 25, 2026
@dhamariT dhamariT added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 0407a4b Jun 25, 2026
16 checks passed
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.

1 participant