Dev open-access mode + bill fetch error handling#72
Open
mikaalnaik wants to merge 1 commit into
Open
Conversation
- Add DEV_OPEN_ACCESS guard (NODE_ENV !== production) so admin/edit access is open locally; auth/allowlist checks are skipped in dev across the edit link, reprocess route, update route, and auth-guards. - Dev sign-in now auto-creates and allows any account instead of denying. - Point Civics Project API at https://api.civicsproject.org. - Surface detailed error context (status, body, URL) when a bill fetch to the Civics Project API fails. - Instruct the summary prompt to never mention tenets in output. Co-Authored-By: Claude Opus 4.8 <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
DEV_OPEN_ACCESSguard (NODE_ENV !== "production") so admin/edit access is fully open locally. The session/allowlist checks are skipped in dev across the edit link ([id]/page.tsx), the reprocess route, the bill update route, andauth-guards.ts. Never enabled in production.https://api.civicsproject.org(was the Vercel preview URL).Notes
src/services/billApi.tshas aconsole.log({ URL })debug line — left in for now; happy to drop it if undesired.Test plan
type-check,biome check, andvitestall pass (29 tests).🤖 Generated with Claude Code