Repository navigation
Signals: Refine results (sort, min relevance, tone, networks), Load more, CSV export - #110
Merged
Merged
Conversation
…ore, CSV export The signal feed is how leads arrive, and it was a flat newest-first list of 50. Now it has a Refine results panel that filters what is loaded in the browser: - Sort: Most relevant (default), Newest first, By network - Min relevance: Any match, Possible+ (0.4), Relevant+ (0.6), Very relevant (0.8, the threshold the feed already labels "High intent") - Tone: Any, Positive, Neutral, Negative (signals.sentiment, set by listening from the post type) - Networks: a checkbox per network present, with counts - Load more widens the list (GET /signals?before=<cursor>, timestamp|id so posts sharing a second are neither skipped nor repeated; next_cursor null at the end); Export CSV downloads exactly what the filters show, formulas defused fetchSignals() keeps its shape for Today; the Signals page uses fetchSignalPage(). Tests: 6 for the filters/CSV, 2 for paging through the API. Co-Authored-By: Claude Opus 5.5 <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.
What
A Needle-style Refine results panel on
/signals, the screen where leads from listening arrive. It filters the posts already loaded in the browser. Load more widens the list, then Export CSV downloads what's shown.signals.sentiment, which listening sets from the post type)GET /signalstakesbefore=<timestamp|id>and returnsnext_cursor, which is null on the last page. The id breaks ties, so posts stamped with the same second are never skipped or repeated.=,+,-or@get a leading quote so a spreadsheet can't run them as formulas.fetchSignals()keeps its shape for Today, and the Signals page uses a newfetchSignalPage().Verified
apps/web/lib/signal-filters.test.ts, 6 tests: sorts, tier floors, tone, networks and CSV.apps/api/src/signals-feed.test.ts, 2 tests: the cursor walks 7 seeded signals (3 sharing one timestamp) 3 per page, each seen exactly once, and the last page has no cursor. A malformed cursor is ignored.tscandapps/webtsc --noEmitpass, and prettier was applied.🤖 Generated with Claude Code