Review queue: let reviewers add context before approving
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by settling the open question on whether context is a scratchpad, a draft-from-context action, or appended to the article, since that decides the work. The UI lives in app/(dashboard)/kb/review-tab.tsx, the API in PATCH /api/kb/review/[id], and the schema change in kb_review_items; check lib/kb/limits.ts for the 2000-article cap. Done means the context field saves without approving, approval still needs a reviewed answer, and the docs in content/docs/product/knowledge-base.mdx are updated.
索引モデルが issue の本文から書いたものです。
説明
Copied from DeadantCo/answerLoops#67 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/364 — originally opened by
@NathanTarberton 2026-10-12
Summary
Let a reviewer add free-text context to a review-queue item before approving it, so the published article reflects knowledge the assistant did not have. Follow-up to the review queue in #362. The standalone add-article form shipped in #367; this issue now covers only the Additional context field on the review tab and the optional draft-from-context button.
Problem
Many unseen questions arrive with no usable draft, because the assistant had nothing to ground an answer on. Those items are flagged "No usable answer" and the reviewer has to write the whole answer from scratch in a single textarea. The same reviewer often has useful raw material (a product detail, a link, a policy snippet, an internal explanation) that would be easier to paste than to turn into a finished answer. A Reddit commenter also asked for a way to give the system "direct inputs of additional information" that improve answer quality.
Proposed behavior
- On each pending item in the Review tab, add an Additional context field next to the question and answer.
- The context is free text (suggest a max of 8,000 characters, matching the answer limit).
- On approve, the published article is built from the reviewer's final question and answer; the context is used to help produce that answer (see open question) and is stored with the item for audit.
- Context is private to the workspace and never served directly. Only the approved article is.
Open questions to settle before building
- Does the context get turned into an answer automatically, or is it just a scratchpad? Options: (a) reviewer-only notes that stay on the item, (b) an optional "Draft answer from context" button that asks the model to write an answer from the context, which the reviewer then edits and approves, (c) append the context to the article body. Recommendation: (b), because it keeps a person in the loop and fills the empty-draft case.
- Cost and rate limits. Drafting from context calls the model, so it needs the same per-org rate limiting and plan quota treatment as other generation paths.
Implementation notes
- UI:
app/(dashboard)/kb/review-tab.tsx. - API: extend
PATCH /api/kb/review/[id](new optional field, or a separate action for drafting). Keep owner/admin-only and Pro-gated. - Data: add a nullable
contextcolumn tokb_review_itemsvia a new idempotent migration. - Reuse
embedText, the 2000-article cap inlib/kb/limits.ts, andrateLimitShared. - Docs: update the Review queue section in
content/docs/product/knowledge-base.mdxandreference/data-model.mdx.
Acceptance criteria
- The Additional context field is saved on the review item without approving it
- An item with no draft can be answered from context without retyping everything, using the optional draft-from-context button
- Approving still requires a non-empty reviewed answer
- Context is never searchable or served until it is part of an approved article
- Owner/admin only, Pro-gated, rate limited, org-scoped
- Docs, unit, component and e2e tests updated
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.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DeadantCo/answerLoopsdev のほかの issue
-
Widget: match the chat bubble color to the rest of the widget対応中かも @sethr07 が今日担当しました。 オープンenhancement frontend help wanted
難易度 2/5 半日 初心者へのやさしさ 75/100
DeadantCo/answerLoopsdev#68 · コメント 3 件 ·
-
Widget: make the chat window fit on small phones対応中かも @sethr07 が今日担当しました。 オープンenhancement frontend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DeadantCo/answerLoopsdev#67 · コメント 9 件 ·
-
Add 'select all' option to Slack channel picker in Settings対応中かも @sethr07 が今日担当しました。 オープンfrontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DeadantCo/answerLoopsdev#22 · コメント 5 件 ·
-
enhancement frontend help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
DeadantCo/answerLoopsdev#140 ·
DeadantCo/answerLoopsdev の issue をすべて見る
似ている issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
lingdojo/kana-dojo#34545 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
blocklist addition
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
MetaMask/eth-phishing-detect#315455 ·
メンテナーはふだん 1 日以内に返信
-
area: telegram bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
griffinwork40/agent-afk#5275 ·
メンテナーはふだん 1 日以内に返信
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getopenscreen/openscreen#1667 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
erkamyaman/rust-anything#371 ·
メンテナーはふだん 1 日以内に返信