feat(grants): Add internal Grants Explorer with Google OAuth#498
Draft
feat(grants): Add internal Grants Explorer with Google OAuth#498
Conversation
Add a new /grants page that displays funded projects with: - Dashboard section with fiscal year bar chart, active this month stat, and category donut chart - Searchable and filterable table with domain/output filters - Detail modal showing project info, GitHub link, and contact - ISR data fetching with 1-hour revalidation Uses mock data when Salesforce credentials unavailable (development/build). SF field names need verification against actual schema.
- Add client-side pagination (15 items per page) - Add column sorting (click header to sort A-Z, Z-A, or clear) - Add clickable domain/output values to filter by that value - Add year filter dropdown - Fix Salesforce query pagination to fetch all records - Switch to calendar year quarters (Jan-Dec) - Fixed table column widths to prevent layout shift
Add protected /grants/internal route for ESP team members: - Google OAuth with @ethereum.org domain restriction - Middleware protecting internal routes - Extended Salesforce query with private fields - GrantsTable extended with showPrivateFields prop - GrantDetailModal shows private fields when authenticated - Unauthorized page with clear error messages Private fields include: Cost Center, Grant Evaluator, Grant Round, Budget Amount, and Status.
- Use Cost_Center_Lookup__r.Name instead of formula field - Use Opportunity_Grant_Evaluator_Lookup__r.Name for evaluator - Match June's exact query using CloseDate and correct filters - Returns 1473 records matching Salesforce query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/grants/internalfor @ethereum.org team membersDependencies
Features
@ethereum.orgdomain restrictionPrivate Fields Displayed
Cost_Center_Lookup__r.Name)Opportunity_Grant_Evaluator_Lookup__r.Name)Amount)StageName)Environment Variables Required
Test plan
/grants/internalredirects to Google OAuth