Skip to content

feat(web): add citations to prompts table - #534

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
abdullah91111:feature/prompt-citations-column
Jul 26, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
abdullah91111:feature/prompt-citations-column

Conversation

@abdullah91111

Copy link
Copy Markdown
Contributor

Summary

Adds citation totals to the All Prompts table and CSV export so prompts that are cited but not directly mentioned are visible.

  • Extends prompt_visibility_summaries with total_citations
  • Preserves SECURITY INVOKER, the chatgpt-shopping exclusion, and existing grants
  • Adds totalCitations to the prompt visibility loader and Supabase types
  • Adds a sortable Citations column beside Mentions
  • Displays — for prompts without tracking runs
  • Adds total_citations_30d beside total_mentions_30d in CSV exports
  • Regenerates supabase/schema.sql

Related issue

Closes #529

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

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Testing

  • All 47 web tests pass
  • All changed TypeScript files pass Prettier
  • git diff --check passes
  • npm run version:check passes
  • supabase/schema.sql regenerates reproducibly from all migrations

The repository-wide formatting check reports existing CRLF differences in untouched files in this Windows checkout. All files modified by this PR pass Prettier individually.

@gkhngyk
gkhngyk merged commit 1e6d19d into ansvisor:main Jul 26, 2026
4 checks passed
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.

Prompts: add a sortable Citations column to the All Prompts table (and CSV export)

2 participants