Review mode in the page: the reviewer's links as its own commit, the links list, removing a link for good
/autolink review, the default with a model, sends each scan's new candidates to the reviewer and makes the approved links at once as one commit by "reviewer" (tag review; u takes it back). Rejected ones are kept, not drawn. Without a model, on a failed call or at a job's cap, everything stays a suggestion and the status line says why. A browser still on the old default, suggest, moves to review once; a mode chosen with /autolink is kept. S now opens the links list beside the text: every link found or made, rejected and pending, with who decided and the reviewer's reason; 1 2 3 (or a click) toggle linked · rejected · pending, rejected hidden at first. y links a row (also one the reviewer rejected), n declines one or removes a link, Y links all pending shown, Enter goes to the words. Declines kept without a target show the phrase. D on a link, Remove the link in its menu and /unlink now also decline its words in the node, in the same commit, so the scanner and the reviewer do not put it back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
46b48d3497
commit
825f9beb65
10 files changed
+779
-132
No files matched your search
+10
-4
@@ -6,7 +6,7 @@ import { hostOf } from "../core/ref";
|
||||
import { nodeRef } from "../core/links";
|
||||
import { HELP, handleKey } from "./keys";
|
||||
import { DocBar, DocsPanel } from "./Menu";
|
||||
import { LinkCard, LinkPicker, NodeBacklinks, NodeRelated, TargetRow } from "./Links";
|
||||
import { LinkCard, LinkPicker, LinksPanel, NodeBacklinks, NodeRelated, TargetRow } from "./Links";
|
||||
import { NodeBody, Outline, PendingSections, TopMatter } from "./Node";
|
||||
import { Panes } from "./Panes";
|
||||
import { PANES_MIN_WIDTH, store, type Aux, type WRow } from "./store";
|
||||
@@ -376,9 +376,14 @@ function StatusLine() {
|
||||
const sugg = selecting && store.focusedSuggestion();
|
||||
const commentary = selecting && store.commentaryAt(f.range);
|
||||
const noteHere = selecting && store.noteAt(f.range);
|
||||
// Reviewing suggestions: where the review is, and its keys as buttons.
|
||||
// The links list: where it is, and its keys as buttons (unless something has just been said).
|
||||
const row = store.mode === "review" && !store.status ? store.reviewRow() : undefined;
|
||||
const reviewing: Hint | null =
|
||||
store.mode === "review" && store.status.startsWith("review ") ? [store.status.split(" · y link")[0], ["y", "link"], ["n", "decline"], ["s", "skip"], ["Y", "link all"], ["Escape", "stop"]] : null;
|
||||
store.mode === "review" && !store.status
|
||||
? row
|
||||
? [`${store.reviewRows().findIndex((x) => x.key === row.key) + 1}/${store.reviewRows().length} ${row.status}`, ...(row.status !== "linked" ? [["y", "link"] as [string, string]] : []), ...(row.status !== "rejected" ? [["n", row.status === "linked" ? "remove" : "decline"] as [string, string]] : []), ["j", "next"], ["Enter", "go"], ["Escape", "close"]]
|
||||
: ["links list", ["1", "linked"], ["2", "rejected"], ["3", "pending"], ["Escape", "close"]]
|
||||
: null;
|
||||
const hint: Hint = store.aux
|
||||
? store.aux.kind === "wiki"
|
||||
? store.inArticleText
|
||||
@@ -691,7 +696,7 @@ export function App() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div class={`app mode-${store.mode}${store.mode === "history" || store.mode === "docs" ? " with-panel" : ""}${panes ? " view-panes" : ""}`} onMouseOver={onOver} onContextMenu={onContext}>
|
||||
<div class={`app mode-${store.mode}${store.mode === "history" || store.mode === "docs" || store.mode === "review" ? " with-panel" : ""}${panes ? " view-panes" : ""}`} onMouseOver={onOver} onContextMenu={onContext}>
|
||||
<main
|
||||
class="page"
|
||||
onClick={onClick}
|
||||
@@ -709,6 +714,7 @@ export function App() {
|
||||
</main>
|
||||
{store.mode === "history" && <HistoryPanel verdict={verdict} />}
|
||||
{store.mode === "docs" && <DocsPanel />}
|
||||
{store.mode === "review" && <LinksPanel />}
|
||||
{store.mode === "help" && <Help />}
|
||||
{store.mode === "jump" && <Jump />}
|
||||
{store.mode === "command" && <CommandBar prefill={prefill} />}
|
||||
|
||||
Reference in new issue
Block a user