Docs: interactive confidence-threshold diagram on the AI Deflection page

Ouverte
#120 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
55/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript

Piste de recherche

Start with lib/ai/agent.ts to see how the confidence threshold and the Automatic Deflections toggle decide whether an answer is posted, held as a draft, or escalated, then read content/docs/product/ai-deflection.mdx for the wording to match. Use components/docs/integration-flow.tsx as the pattern for a selectable-step client component, and register the new one in mdx-components.tsx. Done when the slider and toggle are keyboard-operable with text alternatives, every threshold and toggle combination shows the outcome the page describes, a component test covers one answer per outcome, and pnpm test and pnpm build pass.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

documentation enhancement frontend help wanted

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

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

Problem

The AI Deflection page explains a pipeline in words: a question comes in, the knowledge base is searched, one agent drafts an answer, a second agent reviews it and gives a confidence score, and the score is compared with your threshold to decide whether to post, hold for review or escalate. It is the idea people most need to understand before they trust the product, and it is only text and a static table.

Where

  • content/docs/product/ai-deflection.mdx
  • Look at components/docs/integration-flow.tsx (an interactive diagram with selectable steps) and components/docs/loop-illustration.tsx for the visual style and how a client component is registered in mdx-components.tsx.

Suggested approach

Build a small interactive component for the page. The reader moves a confidence threshold slider and toggles Automatic Deflections, and sees where a sample answer would end up (posted automatically, held as a draft for review, or escalated to a person) with each step lit up along the way. Use made-up sample questions and scores only.

It has to be true of the product: read the AI Deflection page and lib/ai/agent.ts for how the threshold and the toggle decide the outcome (with the toggle off nothing is posted to the channel), and keep every label consistent with the page.

Acceptance criteria

  • The diagram is keyboard-operable (the slider and the toggle) and has text alternatives for screen readers.
  • The outcomes shown match the page's own description for every combination of threshold and toggle.
  • It works at 375px without horizontal scrolling and respects reduced-motion settings.
  • A component test covers the outcome for at least one answer per result.
  • pnpm test and pnpm build pass.

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.

Langage dominant
TypeScript
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DeadantCo/answerLoopsdev

Toutes les issues de DeadantCo/answerLoopsdev

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.