feat: import validation (#162), CSV export (#161), status transitions (#160) - #173
Open
ZacLou wants to merge 4 commits into
Open
feat: import validation (#162), CSV export (#161), status transitions (#160)#173ZacLou wants to merge 4 commits into
ZacLou wants to merge 4 commits into
Conversation
added 4 commits
August 29, 2026 00:58
Core-Foundry#157), moderation queue (Core-Foundry#159) - Core-Foundry#154: Levenshtein-based title similarity + org/description overlap detection Flags potential duplicates for admin review without blocking creation - Core-Foundry#157: Structured eligibility fields (location, applicant type, project stage, team size, custom requirements) with validation and display formatting - Core-Foundry#159: Admin moderation queue with enqueue/list/approve/reject/dismiss Auto-enqueues new tasks and duplicate flags for review - Integrated into createTask: duplicate detection + auto-moderation on creation - Added API routes: GET /api/moderation, GET/POST /api/moderation/:itemId - 30+ unit tests covering all three features
), status transitions (Core-Foundry#160)
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
This PR implements three GrantFox Third Campaign issues:
Issue #162: Implement Import Validation for Bulk Grant Uploads
import-validation.tswith schema-driven row validationparseCSV()handles quoted fields, escaped quotes, embedded newlinesvalidateImportData()returns valid rows and errors separatelyCreateTaskInputfieldsIssue #161: Add CSV Export for Grant Data
csv-export.tswithexportTasksToCSV()escapeCSVValue()handles commas, quotes, newlinesgenerateExportFilename()with date stampgetExportableFieldInfo()for UI field selectionIssue #160: Implement Grant Status Transitions
status-transitions.tswith controlled workflowisValidTransition(),transitionStatus()(returns error message)getNextStatuses(),getStatusWorkflowDescription()isTerminalStatus()checkAPI Routes
POST /api/import— validate CSV/JSON bulk data before importGET /api/export?format=csv— download CSV with optional filtersTests
Closes #162
Closes #161
Closes #160