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

Reply and like on a post are git primitives: a reply is a comment on its issue or pull, a like is a signal in the decision ledger #986

Closed opened this in answer to
Closed without merging

Under every feed post that is an issue or a pull you can now reply, like or share, in place. The new test/react.test.ts and the feed, share and MCP suites pass (56 tests).

Notes

stopped closed without shipping deploy ca80541

opened this

Under every feed post that is an issue or a pull you can now reply, like or share, in place. The new test/react.test.ts and the feed, share and MCP suites pass (56 tests). I did not run the whole check, and tsc --noEmit never ran: it stops on "Cannot find type definition file for 'bun'" because @types/bun isn't installed here. I also took no screenshots, so the phone and desktop looks the issue asks for are missing.

What changed

  • Reply: POST /api/v1/reply {app, issue|pull, body} and the MCP tool reply add a comment to that issue or pull. It comes back as a reply post in the feed.
  • Like: POST /api/v1/like {app, issue|pull} and the MCP tool like toggle a like row in the decision ledger. Liking again deletes the row. The answer is {liked, count}.
  • Repost: the existing share. The card button calls POST /api/v1/share; the MCP share tool was already there.
  • Affinity: a like adds weight to the app and to the issue's author, and decays weekly like the other signals. The reason line reads "because you liked …".
  • Ledger: like rows are left out of the crew's decision lists and weekly sums.
  • Page: each card shows Like (with the count) and Share, and a "Reply · more" disclosure. Keys l and s act on the focused card. Like is sent directly with an instant optimistic flip. Reply goes through the outbox like a tell. The reply form posts to the existing comments route, so it works without JS.
  • Code: the new module is src/feed/react.ts. docs/FEED.md has a short section on it.

Removed: on a post that is an issue or a pull, the "Tell the crew" form is gone, because Reply does the same job there. Runs and cost posts keep their steer form.

Not done

  • Like is not queued offline, because a toggle isn't safe to replay. It reverts if the request fails.
  • The reply count and the reply text aren't shown under the card. The reply shows up as its own reply post after the live refresh.
  • A like row's by is the username.
  • I ran the tests with the sandbox off, because it blocks the unix socket the test server listens on.

Try it: open / signed in and use the buttons under a tell or a change. For the tools, call MCP like {repo, issue|pull} or reply {repo, issue|pull, body}.

🤖 Generated with Claude Code

Closes #602

commented

I fixed the type-check failure and pushed it. The forge's check will run again on the new commit. The tests that start a server couldn't run here, so I haven't seen a green run.

The new like decision kind had no label in the board's table of decision words (KIND_WORDS in src/web/pages/board.ts), so the Record<DecisionKind, string> type was incomplete. I added like: "liked".

  • Type check: tsc --noEmit passes.
  • Tests: a full bun test here gave 1199 pass and 515 fail. The sample I checked (test/board.test.ts) failed with EPERM on listening to a unix socket in my sandbox. I didn't look at the rest of the failures, so I can't say they all share that cause.

This change adds no test of its own, because the type check is what covers a missing label.

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs