feat(report): canonical report-issue module + finish codebase wiring#3
Merged
Conversation
Establishes codebase as the canonical home for the shared report-issue feature (other repos sync from here via /clone). Also completes codebase's own previously-incomplete install. - Hardening (the root-cause fix, now canonical): captcha degrades gracefully when Turnstile is unconfigured — anonymous reports land at degraded trust instead of being silently rejected (turnstile.ts isTurnstileConfigured(), pipeline gates enforcement, hard-filters HF3 rejects only on explicit false). - codebaseReportAdapter: storage-less (codebase has no Upstash) — rate-limit / dedup / corroboration / ban all no-op gracefully; GITHUB_REPO defaults to databayt/codebase. - Server action src/lib/actions/report-issue.ts wiring runReportPipeline. - Server wrapper src/components/report-issue/server.tsx (resolves session + binds the action) mounted in footer-01. - Add deps: @marsidev/react-turnstile, @anthropic-ai/sdk. Refs the report-centralization plan (codebase phase). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…acked) The previous commit only staged the 3 hardening files + new wrappers; the rest of src/lib/report/* (index, score, triage, github, schema, types, dedup, corroboration, labels, adapters, __tests__) and the dialog component (report-issue.tsx, dictionary, index) were untracked, so the build couldn't resolve @/lib/report or ./report-issue. Commit the complete canonical module. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Establishes codebase as the canonical home for the shared report-issue feature (other repos sync from here via `/clone`), and completes codebase's own previously-incomplete install.
codebaseReportAdapter— storage-less (codebase has no Upstash); rate-limit/dedup/corroboration/ban no-op gracefully;GITHUB_REPOdefaults todatabayt/codebase.footer-01.@marsidev/react-turnstile,@anthropic-ai/sdk(the report dialog/triage need them — they were missing).Notes
_registry.tsentry forshadcn add) is a follow-up;/clone codebase:src/components/report-issueworks against this canonical today.Test plan