Repository navigation
feat(prompts): show the table's answer counts on the positions panel's cards - #1088
Merged
gkhngyk merged 2 commits intoOct 16, 2026
Merged
Conversation
…s cards The Prompts table counts answers (Runs), the brand's mentions in them (Mentions) and its own sources (Citations); the positions panel counted days and platforms, so none of the table's numbers could be found in it. Each summary card now also says what the table counts: "37 answers", "In 37 of 37 answers · 108 mentions", "In 27 of 37 answers · 54 citations", on the 24h view too. The days view the panel was built around stays as it was. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The 24h cards count platforms in their latest run, so their answer lines now say they cover the whole period; and where the plan locks a platform, whose answers the panel never reads, a note says the counts cover the included platforms. The panel gets a test for its cards. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 16, 2026
Collaborator
Author
|
@gkhngyk the positions panel's cards now also show the table's numbers ("37 answers", "In 37 of 37 answers · 108 mentions", "In 27 of 37 answers · 54 citations") next to #1003's day counts, so the table's Runs/Mentions/Citations can be found in the panel. Web only. #1089 and #1090 are stacked on it; #1087 fixes the demo data so it shows locally. |
gkhngyk
approved these changes
Oct 16, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Thanks, approving. Web tests pass on the tree merged with main. The panel's answer counts come from the same mention_count and citation_count the table sums.
gkhngyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 16, 2026
…-tooltip main now carries ansvisor#1088 and ansvisor#1089 as squashes; their files come from main, and this branch's tooltip changes stay as they were.
7 of 12 tasks
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
The positions panel's cards now also show the Prompts table's numbers: answers, mentions and citations.
The table and the panel count different things under similar names:
For a prompt the table shows as 37 runs, 108 mentions and 54 citations, the panel said "Mentioned 10 / 10 days" and "Cited 9 / 10 days". None of the table's numbers could be found in it.
Each card keeps its days (the counting rules #1003 set) and gains a line with the table's count:
37 answersIn 37 of 37 answers · 108 mentionsIn 27 of 37 answers · 54 citationsIn 2 of 3 answers in this period · ….How
PositionAnswercarries the answer'smentionsandcitations(mention_count,citation_count, whichgetPromptPositionsalready read).PositionsSummaryaddsanswers,mentionedAnswers,citedAnswers,mentionsandcitations.en.jsonunderprompts.positions. The panel's existing strings are left as they are.Related issue
None. Found while checking the Positions column and panel against the table. #1087 fixes the demo data; #1089 and #1090 are stacked on this PR.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no errors; the 7 warnings are in files this PR does not touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
web:yarn testpasses (713 on this branch), andyarn buildpasses. New tests:lib/prompt-positions.test.ts: the summary's answer, mention and citation counts, with a locked engine's answers left out.components/prompts/prompt-positions-sheet.test.tsx:🤖 Generated with Claude Code