Skip to content

feat(action-center): show where each signal happened and filter signals by platform - #1058

Merged
gkhngyk merged 5 commits into
ansvisor:mainfrom
cihan-gyk:feature/signals-where
Oct 17, 2026
Merged

gkhngyk merged 5 commits into
ansvisor:mainfrom
cihan-gyk:feature/signals-where

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Part one of AC-002 (Signals list: platform and location visible). Today the list never says which AI platform or location a signal is about, and it names platforms by their raw ids ("Visibility dropped on gemini-web", "Weak in JP", "You are visible in 30% of gpt-5-6 answers…").

Grouping comes in a follow-up PR. The ~10 identical "Citations lost for '…'" rows on production are not one row per platform or location, as the spec guessed. The brand tracks 11 separate prompts with that exact text, spread over different topics, and the detector writes one signal per prompt. Grouping, and counting groups once in the tabs and cards, comes next.

What changes

  • Where each signal happened: a line under Affected with one icon per engine and the location codes; hovering names them all.
    • Platform and country signals: read from the payload.
    • Prompt and topic signals: the tracked platforms and locations of their prompts, read alongside the signals (paused prompts don't count for a topic).
    • Competitor, source and brand-wide signals: no place of their own, so no line.
    • Not repeated: a signal whose only place Affected already names ("Gemini") shows no line.
  • Why a line, not a column: a new column pushed the table past the page beside a pinned sidebar at 1440px (1233px of content in 1150px).
  • Human names:
    • gemini-web → Gemini, google-aio → Google AI Overview, JP → Japan.
    • API models are "ChatGPT API", so they don't read the same as the app.
    • A model id stays only as a qualifier: "ChatGPT (gpt-5-6)".
  • Descriptions carry the measured fact instead of a generic sentence, using values the rows already store:
    • platform: "Your mention rate fell from 34% to 18% against the week before."
    • topic: "You now appear on 25% of its 12 prompts, down from 50%."
    • country: "You are mentioned in 3.1% of answers here, against 22.5% in United States."
    • source domain: "Cited in 251 answers across 6 prompts this week. Competitors alone are named in 167 of them; you in none."
    • competitor: "Mentions rose from 12 to 31 against the week before."
  • Platform filter next to Impact / Status / Source:
    • one entry per engine (the ChatGPT app, API and models are one engine);
    • lists only the engines the window's signals are about;
    • kept in the URL (?platform=) and works with the category tabs and the other filters.
  • Search also matches platform and location names.
  • Export CSV gets platforms and locations columns, still one row per signal.

Review

I ran a code review before opening this. 6 findings are fixed:

  • the line could overflow the Affected cell;
  • screen readers got no platforms (the label sat on a role-less div);
  • a topic counted its paused prompts;
  • a failed prompt read was silent (it is now logged);
  • the hover said "Platforms" where "Tracked on" is true;
  • filter matching and the line had no tests.

Left as is:

  • For prompt and topic signals, Where is where the prompts are tracked, not where the change happened. The hover says "Tracked on" for that reason. Recording the exact platform and URL at detection time is server work planned with AC-001.
  • Prompt groups store at most 50 targets, so Where covers those 50.
  • The table at 1024px already scrolled horizontally before this change (1121px of content in 910px). This PR doesn't widen it.

Related issue

None. Product spec AC-002 (Action Center), part 1 of 2.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Open Action Center → Signals on a brand with signals.
  2. Titles: platform and country titles read "Visibility dropped on Gemini" and "Weak in Japan", not raw ids.
  3. Affected: prompt and topic rows show engine icons and location codes under Affected. Hover to see them named.
  4. Descriptions: platform, topic, country, source and competitor rows give the measured numbers.
  5. Filter: pick an engine in the new Platform filter.
    • Only signals about it stay, and the URL gets ?platform=.
    • Combine it with a category tab and reload: both are kept.
  6. Search: search for a country name, e.g. "Turkey".
  7. CSV: Export CSV and check the platforms and locations columns.
  8. Check light and dark mode, and 1024px.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): 0 errors; the 7 warnings are in files this PR doesn't touch
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Also run:

  • yarn test: 563/563, new tests:
    • where.test.ts: payload places, prompt and topic places, paused prompts, frequency order.
    • names.test.ts: names, API and model ids, unknown slugs, the filter's engine match.
    • display.test.ts: titles and descriptions against the real English copy.
    • signal-table.test.tsx: the Where line, its screen-reader text, and when it stays empty.
  • yarn build: passed.
  • In the browser:
    • on the demo brand, with sample signals shaped like production's;
    • light and dark mode, 1440px (sidebar pinned and not) and 1024px;
    • the Platform filter with a category, the URL restore, search, and the CSV contents.

🤖 Generated with Claude Code

…ls by platform

The Signals list never said which AI platform or location a signal was
about, and named platforms by their raw ids ("Visibility dropped on
gemini-web", "Weak in JP"). Part one of AC-002:

- Each row's Affected cell gets a line with the engines and locations the
  signal is about: from the payload for platform and country signals, and
  from the prompts' tracked platforms and locations for prompt and topic
  signals. A line rather than a column keeps the table within the page
  beside a pinned sidebar.
- Platforms and locations read as people know them ("Gemini", "Japan").
- Descriptions carry the measured fact instead of a generic sentence, e.g.
  "Your mention rate fell from 34% to 18% against the week before."
- A Platform filter, search over platform and location names, and
  platforms and locations columns in the CSV export.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk Part 1 of AC-002 is ready for review: the Signals list now shows where each signal happened (engines and locations under Affected), names platforms and countries for people, puts the measured numbers in the descriptions, and adds a Platform filter. Grouping the duplicate rows comes in the next PR.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, approving. Web tests pass on the tree merged with main (919). The added prompts read is one page even on the largest brand (709 prompts).

@gkhngyk
gkhngyk merged commit 9889144 into ansvisor:main Oct 17, 2026
5 checks passed
gkhngyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 17, 2026
main carries ansvisor#1058 as a squash, so its files come from main and this branch keeps only its own commit on top; schema.sql is regenerated. The export fixtures from ansvisor#1070 gain SignalWhere's new topics field.
gkhngyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 17, 2026
…-where

main carries ansvisor#1058 and ansvisor#1059 as squashes, so their files come from main and this branch keeps only its own commit on top. The MCP data imports keep both main's prompt-usage helpers and this branch's signal helpers.
gkhngyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 17, 2026
…-evidence

main carries ansvisor#1058 and ansvisor#1059 as squashes; this branch keeps ansvisor#1060's commit and its own on top.
gkhngyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 17, 2026
…gnal-evidence

main carries ansvisor#1058 through ansvisor#1061 as squashes; this branch keeps only its own commit on top, with schema.sql regenerated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants