Repository navigation
feat(prompts): open the positions panel for a tracked prompt the brand isn't named in - #1089
Merged
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]>
…d isn't named in The Positions column offered "See" only when the brand had a mention or a citation, so a prompt that was tracked but never named read "—", like one with no answers at all, and its panel (where "Not mentioned" and the Improve tab are) could only be reached through the row's menu. The button now shows whenever the prompt has answers in the window, and the cell says "Not mentioned" for such a prompt. 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]>
…-unmentioned # Conflicts: # web/messages/en.json
…d test the panel button A tracked prompt whose pages were cited without the brand being named read "Not mentioned"; it now reads "Cited only", as the panel's legend calls that state. Whether a row offers its panel moves into opensPositionsPanel, next to positionCellKind, so the rule has a test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 16, 2026
Collaborator
Author
|
@gkhngyk this changes a rule from your #1003 on purpose: See now shows for any prompt with answers in the window, and the cell reads "Not mentioned" or "Cited only" instead of "—" for a tracked prompt the brand isn't named in, since that's the prompt someone most needs to open (its panel has the Improve tab). Happy to revert to the old rule if you'd rather keep it. Stacked on #1088. |
…entioned Keeps both sides where ansvisor#1098 added compareLateness next to positionCellKind and opensPositionsPanel.
gkhngyk
approved these changes
Oct 16, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Thanks, approving. I merged main into the branch: #1098 had added compareLateness where this PR adds positionCellKind and opensPositionsPanel, so the merge keeps both, and en.json keeps your four strings after #1088's. Against main the diff is only this PR's four files. Web tests pass (842) and CI is green.
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.
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
A tracked prompt the brand isn't named in now opens its positions panel, and its Positions cell says why it has no average.
The Positions column offered See only when the brand had a mention or a citation in the window (#1003's rule). A prompt that was tracked but never named therefore had two problems:
Now:
#1.5 ↑0.5(as before)Cited only, as the panel's legend calls itNot mentioned—Hovering "Not mentioned" or "Cited only" says how many answers it covers, e.g. "Cited in 1 of 1 answer in this period, named in none".
This changes #1003's rule on purpose. "Not mentioned" is the case someone most needs to open, and the button no longer hides it.
How
lib/prompt-position-summary.tsadds two helpers, both tested:positionCellKind: average, cited only, not mentioned, or none;opensPositionsPanel: whether the row has answers in the window.The page uses both, so the rules have tests.
The new strings are in
en.jsonunderprompts.positions.Stacked on #1088. Please review only the commits
feat(prompts): open the positions panel for a tracked prompt the brand isn't named inandfix(prompts): say "Cited only" for a prompt cited but never named, and test the panel button. The merge commit brings in #1088.Related issue
None. Found while checking the Positions column and panel.
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 (717 on this branch), andyarn buildpasses. New tests inlib/prompt-position-summary.test.ts:positionCellKind(all four cases) andopensPositionsPanel.In the browser: with answers added for the check on my dev database (removed afterwards), at 24h:
I checked at 1440px and 1024px, in the light and dark themes.
Review: a code review flagged that a cited-only prompt read "Not mentioned", and that the button rule had no test; both are fixed.
🤖 Generated with Claude Code