Switch to the transcript after sending a review finding to fix
This commit is contained in:
+2
-1
@@ -1,7 +1,7 @@
|
||||
import { get, post, type ByreEvent, type Schemas } from "./api.js";
|
||||
import { ago, errorText, h, replace, showAlert } from "./dom.js";
|
||||
import { markdown } from "./markdown.js";
|
||||
import { onEach, pickReview, state } from "./state.js";
|
||||
import { focusTask, onEach, pickReview, state } from "./state.js";
|
||||
|
||||
type Review = Schemas["Review"];
|
||||
|
||||
@@ -226,6 +226,7 @@ function fixButton(taskId: string, r: Review, f: Record<string, unknown>, where:
|
||||
await post("/api/tasks/{taskId}/sessions", { path: { taskId }, body: { prompt: text } });
|
||||
}
|
||||
replace(button, "sent");
|
||||
focusTask(taskId);
|
||||
} catch (err) {
|
||||
button.disabled = false;
|
||||
void showAlert(errorText(err));
|
||||
|
||||
Reference in New Issue
Block a user