Source support: dashboard buckets, evidence drill-down and flag-a-finding

Open
#106 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

This is blocked: it depends on #429, #432, #443 and a go decision on #446, and it says not to enable the layout before that decision. The only docs file named is content/docs/product/knowledge-base.mdx, and the tests and build to run are pnpm test and pnpm build. Work out the scope with a maintainer before starting, since the sources panel and drill-down it extends come from #432.

Written by the indexing model from the issue text.

Description

enhancement frontend help wanted

Copied from DeadantCo/answerLoops#96 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/447 — originally opened by @NathanTarbert on 2026-10-23

Part of #437. Depends on #429, #432, #443, and a "go" on #446. Start the layout earlier against fixture data if useful, but do not enable it for customers before that decision.

Problem

Writers need to see, beside each article's supplied count, what the evaluator found, with the evidence and the limits visible, and be able to say when it is wrong.

Scope

  • Buckets beside the count. For a chosen time range and surface filter, the same answer/article population for every bucket: Supplied as context, Supporting evidence found, No supporting evidence found, Inconclusive, Not assessed. They sum to the supplied total. A support rate shows its denominator (completed assessments) and inconclusive separately. Never show "unused", a percentage without a denominator, or an extrapolation from a sample.
  • Legacy period. Aggregate counts from before answer records exist are a separately labeled period with no per-answer states.
  • Drill-down. Extends the sources panel and recent-answers list from #432 instead of adding second ones. From an article to its recent answers and from an answer to its sources, showing the claim, the supporting or conflicting passage where retained, or "evidence expired" or "evidence unavailable". Current article text is never substituted for the generation-time text.
  • Shared support and reasons. When two supplied articles carry equivalent support, show both with a note that they are redundant; never say which one the model relied on. For articles with no supporting evidence, show the reason: "article is about something else" (off_topic) or "another article says the same thing" (redundant). Never show a "preferred" reason.
  • Sources panel and claim view. The #432 Sources panel gains a per-article finding column and a side-by-side claim view opened from a row; no separate all-sources page. Every supplied article's finding for an answer is reachable there, so a claim contradicted by several articles shows all of them.
  • Excerpts opt-in. Where excerpts were not stored (workspace opt-in off), show "evidence unavailable". The setting itself is built in #445; this page only links to it.
  • Context shown with each finding. Method and rubric version, assessment time, whether the article changed since, and the wording "evaluator's assessment", not a statement about what the model did. Reason labels may overlap and are never shown as additive outcomes.
  • Flag a wrong finding. Owners and admins can mark a finding as incorrect with an optional short note. Human flags display separately from automated findings and never change the automated row.
  • High exposure with little support suggests a look at the article. Nothing is deleted, unpublished or penalized automatically.

Acceptance criteria

  • The 100-answer example renders as 100 = 20 + 35 + 5 + 40 with the denominators stated.
  • Failed, pending, disabled and over-budget answers appear under Not assessed.
  • Shared support renders both articles with a redundancy note; off-topic and redundant reasons render distinctly; no "preferred" copy exists.
  • The claim view shows every supplied article's finding for an answer.
  • Copy never uses "used", "ignored" or "unused" for these buckets.
  • Drill-down, tooltips and the flag control work by keyboard and touch; layout checked at 375px.
  • Component tests cover each bucket, the legacy period, expired evidence, a changed article and flagging; a query test covers workspace scoping.
  • content/docs/product/knowledge-base.mdx documents the buckets, their meaning and their limits.
  • pnpm test and pnpm build pass.

The question-level view (recurring questions with no supporting article) is tracked in #452.

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DeadantCo/answerLoopsdev

All issues in DeadantCo/answerLoopsdev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.