Add historical scoring, breakout radar, source-health, Reddit adapter, env/schema refactors, and frontend history UI - #1
Open
not-wowmagic wants to merge 1 commit into
Conversation
Record completed credential-independent phases, the 45-test backend result, explicit migration and provider states, integrity scans, conservative scoring limits, and the remaining external deployment, build, screenshot, and authorization gates.
|
Deployment failed for project book-pulse with the following error: Learn More: https://vercel.link/3Fpeeb1 |
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.
Motivation
Description
backend/core/trendScorer.jswithcomputeHistoricalTrendandrankBreakouts, and exposes Breakout Radar viaGET /api/breakoutsbacked bybackend/repository/breakoutRepository.js.GET /api/books/:canonicalKey/historyimplemented inapi/books/[canonicalKey]/history.jsand repository logic inbackend/repository/historyRepository.jsthat returns sparse, signal-aware series and trend intelligence.GET /api/source-health(edge) implemented inapi/source-health.jsandbackend/core/sourceHealth.jsthat derives public health states from recentingest_runsand read-model availability.backend/config/env.jsto normalize defaults and enforce node/edge constraints, updates.env.exampleaccordingly, and makesgetSupabaseAdminClientasync with dynamic import inbackend/gateways/supabase.js.supabase/migrations/*), switchingsource_mentionsupsert toobservation_keyand enrichingbuildMentionRowsinbackend/pipeline/ingestRun.jswithsignal_type,signal_value,provider_record_id, andobservation_keygeneration.backend/pipeline/sourceAdapters/reddit.jswith OAuth endpoint validation, pagination, bounded collection window, stable provider IDs, and normalization todiscussion_count; makes Goodreads/TikTok adapters fail-closed without authorized integrations.backend/gateways/supabase.jsincludingingestRunsRestandreadModelByKeyRestused by source-health and other edge handlers.BookDetail,BreakoutRadar,SourceHealth,Methodology, services insrc/services/historyApi.js, CSS updates, and wiring insrc/App.jsxandTrendingBoard.jsxto open book history dialogs.supabase/migrations/*).docs/contracts.md, feasibility/methodology/operational docs, and a comprehensive backend test suite with new unit tests for Reddit adapter, history, scoring, breakout radar, and source health.Testing
npm run test:backend, and the backend tests passed (45 tests across newly addedbackend/tests/*).backend/tests/contractsFixture.test.js,backend/tests/sourceHealth.test.js,backend/tests/historyRepository.test.js,backend/tests/redditAdapter.test.js,backend/tests/historicalTrendScorer.test.js, andbackend/tests/breakoutRepository.test.js, and they succeeded in the test environment.Codex Task