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
Check · Review · Land · Live done — Landed and live in production.
mason/forge:mason/8106-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 2 commits fork 2 threads · 2 unresolved
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 | ||
| 70 | 70 | label: name, |
| 71 | 71 | hint: "enter sends", |
| 72 | 72 | onSubmit: (said) => |
| 73 | (async () => { | |
| 73 | ctx.track((async () => { | |
| 74 | 74 | const sent = await sendNote(f.app, record, repo, "production", undefined, sender, { text: said, page: "", viewport: "unknown" }, `ssh:${user.id}`); |
| 75 | 75 | if (sent.ok) ctx.toast("Sent. The builders will see it.", "success"); |
| 76 | 76 | else ctx.toast(sent.error.message, "danger"); |
| 77 | })(), | |
| 77 | })()), | |
| 78 | 78 | }), |
| 79 | 79 | ), |
| 80 | 80 | }, |
| @@ -100,8 +100,11 @@ export function noteCommands(f: Session, ctx: Ctx, parent: () => Screen, repo: R | ||
| 100 | 100 | actions: [{ label: "Keep", variant: "ghost" }, { label: "Hide" }, { label: "Ban sender", variant: "danger" }], |
| 101 | 101 | onChoose: (i) => { |
| 102 | 102 | 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 | ), | |
| 105 | 108 | ); |
| 106 | 109 | }, |
| 107 | 110 | }), |
new above
offline