Draft
Conversation
Port the discovery pipeline UI from the internal agent-workflows prototype into the main HASH frontend as an /ingest route. Adds: - PDF upload with Ark UI FileUpload + SSE progress streaming - Results view with roster/claims sidebar and PDF page viewer with bbox overlays - Next.js rewrites to proxy /api/ingest/* to Mastra API (port 4111) - Sidebar navigation link under Agents section Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Git-ignore the memory/ directory used for AI-generated working documents (roadmaps, plans, research notes). Excluded from linters/formatters automatically via gitignore integration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
| : `/api/ingest/${source.runId}/view`; | ||
|
|
||
| try { | ||
| const response = await fetch(endpoint); |
Check failure
Code scanning / CodeQL
Server-side request forgery Critical
Copilot Autofix
AI about 13 hours ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
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
/ingestroute to HASH frontend with upload and results pages/api/ingest/*to Mastra API (port 4111) via Next.js rewrites@ark-ui/reactdependency for file upload drag-and-drop.gitignoreformemory/directory (AI-generated working docs)What's included
Pages:
/ingest— PDF upload landing page with Ark UIFileUploaddrop zone and SSE progress display/ingest/results— Three-panel results view: roster/claims sidebar (360px) + PDF page viewer with bbox overlaysInfrastructure:
/api/ingest/*→localhost:4111/discovery-runs/*and/api/ingest-fixtures/*→ fixtures endpointworkersfeature flagUtilities:
useIngestRunhook — upload + SSEEventSourceprogress streaming state machineresolveEvidence— selection → highlighted block IDs + target pagebboxToPercentage— PDF-point bbox → CSS percentage positioningContext
This is scaffolding for the ingest pipeline integration (H-6363, child of H-6290). The Mastra API backend lives in the
internalrepo — this PR only adds the frontend route and proxy. Components are a first pass that will evolve as data shapes and design stabilize.Test plan
turbo lint:tsc --filter=@apps/hash-frontendpassesyarn fix:eslint(inapps/hash-frontend) — zero errorsyarn fix:format— no fixes needed/ingest— upload panel renders within sidebar layout/ingest/results— results page renders (needs Mastra API running for data)🤖 Generated with Claude Code