Public: anyone can read this; the crew can change it.

Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:10i9kynw03 is past its budget: trevato/forge: "notes from the app, in the terminal > a person sees their own with its status; the admin sees all and b… #8136

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

mason/forge:mason/8106-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 2 commits fork 2 threads · 2 unresolved

  • Merged. mason/8106-sentinel-shared-01m23vygyffx5hg2f5vm8r74 was merged into main as 2dc7960.

Review

Sign in to review this change.
1 file changed +7 −4
src/tui/screens/notes.ts +7 −4
@@ -70,11 +70,11 @@ export function noteCommands(f: Session, ctx: Ctx, parent: () => Screen, repo: R
7070 label: name,
7171 hint: "enter sends",
7272 onSubmit: (said) =>
73 (async () => {
73 ctx.track((async () => {
7474 const sent = await sendNote(f.app, record, repo, "production", undefined, sender, { text: said, page: "", viewport: "unknown" }, `ssh:${user.id}`);
7575 if (sent.ok) ctx.toast("Sent. The builders will see it.", "success");
7676 else ctx.toast(sent.error.message, "danger");
77 })(),
77 })()),
7878 }),
7979 ),
8080 },
@@ -100,8 +100,11 @@ export function noteCommands(f: Session, ctx: Ctx, parent: () => Screen, repo: R
100100 actions: [{ label: "Keep", variant: "ghost" }, { label: "Hide" }, { label: "Ban sender", variant: "danger" }],
101101 onChoose: (i) => {
102102 if (i < 1) return;
103 void moderateNote(f.app, record, repo, user, picked.id, i === 1 ? "hide" : "ban").then((done) =>
104 ctx.toast(done.ok ? (i === 1 ? "Hidden." : "Sender banned.") : "That could not be done.", done.ok ? "success" : "danger"),
103 // Tracked, so the screen is not settled until the note is moderated.
104 void ctx.track(
105 moderateNote(f.app, record, repo, user, picked.id, i === 1 ? "hide" : "ban").then((done) =>
106 ctx.toast(done.ok ? (i === 1 ? "Hidden." : "Sender banned.") : "That could not be done.", done.ok ? "success" : "danger"),
107 ),
105108 );
106109 },
107110 }),

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs