feat: grant bookmarking (#152), submission history (#150), draft auto-save (#149) - #171
Open
ZacLou wants to merge 2 commits into
Open
feat: grant bookmarking (#152), submission history (#150), draft auto-save (#149)#171ZacLou wants to merge 2 commits into
ZacLou wants to merge 2 commits into
Conversation
added 2 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
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 #152: Implement Grant Bookmarking
bookmark-store.tswith in-memory Map store (matches existing pattern)Issue #150: Implement Grant Application Submission History
submission-history.tsas a query/index layer over existing submissionsrecordSubmission()called bysubmitTaskWork()— auto-indexes every new submissionupdateSubmissionStatus()called byapproveSubmission()/rejectSubmission()getSubmissionHistory()with status filter, sort (newest/oldest/status), paginationgetSubmissionStatusBreakdown()for dashboard summaryIssue #149: Add Draft Auto-Save for Grant Applications
draft-autosave.tswith upsert-based save (same userId+taskId = update not duplicate)saveDraft()is idempotent, preserves createdAt on update, updates lastSavedAtgetDraft(),getLastSavedAt(),listDrafts(),deleteDraftByTask()Integration
task-workflow.tsmodified:submitTaskWork()now callsrecordSubmission(),approveSubmission()/rejectSubmission()now callupdateSubmissionStatus()resetTaskWorkflowStore()now also resets bookmark, submission-history, and draft storesAPI Routes
GET/POST/DELETE /api/bookmarks— list, add, remove bookmarksGET /api/submission-history— paginated history with filtersGET/POST/DELETE /api/drafts— get, save, delete draftsTests
Closes #152
Closes #150
Closes #149