Mark likeCount read side complete and set next feature

- Update backlog: P1.1 read side is done; P1.2 client display is next.
- Update specifier handoff notes with current HEAD and next action.

By specifier.
This commit is contained in:
Chris Troutner
2026-08-26 19:14:21 -07:00
parent 4bd4b79f6c
commit b5e12c709a
2 changed files with 22 additions and 22 deletions
+8 -9
View File
@@ -167,16 +167,16 @@ Goal: reach feature parity with [memo.cash](https://memo.cash).
| Tier | Features | Status |
|------|----------|--------|
| **P0** | Post, Set name, Reply, Efficient pagination | ✅ shipped |
| **P1** | Like counts (read side), Set profile text, Set profile picture, Follow/Unfollow | next |
| **P1** | Like counts (read side) ✅; client display, Set profile text, Set profile picture, Follow/Unfollow | next |
| **P2** | Topics (list, feed, post, follow/unfollow) | later |
| **P3** | Polls (create, add option, vote) | later |
| **P4** | Mute / unmute user | later |
| **P5** | Send money memo action, MIP-0009 token exchange | later |
| **P6** | Repost, ranked feed, notifications, search, tags, following feed | later |
**Suggested next spec:** P1.1add `likeCount` to the `psf-memo-db` post
responses so the already-implemented client like/tip UI can display real
backend counts.
**Suggested next spec:** P1.2update the client feed/profile/thread UI to
read `likeCount` from the `psf-memo-db` API instead of defaulting to 0.
The like/tip broadcast UI is already implemented.
---
@@ -342,8 +342,7 @@ At the end of each session, update this file:
- Note the current `master` HEAD commit.
- State the next feature to work on.
Current `master` HEAD: `7f14ceb866` (like-counts spec committed and handed off to coder).
Next action: **wait for the coder → refactorer → architect pipeline to finish**
`like-counts-on-posts`. When the architect notifies completion, merge the
`swarmforge-architect` branch into `master` and verify `psf-memo-db` tests/lint.
Then ask the user for the next feature from the P1 backlog.
Current `master` HEAD: `4bd4b79` (likeCount read side merged to `master`;
psf-memo-db tests and lint passing).
Next action: **spec P1.2** — update the client feed/profile/thread UI to read
`likeCount` from the API.
+14 -13
View File
@@ -119,19 +119,21 @@ adding/editing the client UI.
| # | Feature | Memo action | Components | Status | Next work |
|---|---------|-------------|------------|--------|-----------|
| 1.1 | Like / tip a Memo | `0x6d04` | C, I, D | 🟡 partial | D: add `likeCount` to `/posts/*` responses; C: display count from backend, liked-by-me state |
| 1.2 | Set profile text (bio) | `0x6d05` | C, I, D | 🟡 partial | C: add "Set Bio" UI on Account page; I/D already read |
| 1.3 | Set profile picture | `0x6d0a` | C, I, D | 🟡 partial | C: add "Set Avatar URL" UI; I/D already read |
| 1.4 | Follow a user | `0x6d06` | C, I, D | 🔴 missing | C: follow button on profile; D: follow state + following/followers lists |
| 1.5 | Unfollow a user | `0x6d07` | C, I, D | 🔴 missing | C: unfollow button; D: follow state |
| 1.1 | Like / tip a Memo — read side | `0x6d04` | D | ✅ | `likeCount` returned on `/posts/*` and `/posts/:txid/thread` |
| 1.2 | Like / tip a Memo — client display | `0x6d04` | C | 🟡 partial | Feed/Profile/Thread read `likeCount` from API instead of defaulting to 0 |
| 1.3 | Set profile text (bio) | `0x6d05` | C, I, D | 🟡 partial | C: add "Set Bio" UI on Account page; I/D already read |
| 1.4 | Set profile picture | `0x6d0a` | C, I, D | 🟡 partial | C: add "Set Avatar URL" UI; I/D already read |
| 1.5 | Follow a user | `0x6d06` | C, I, D | 🔴 missing | C: follow button on profile; D: follow state + following/followers lists |
| 1.6 | Unfollow a user | `0x6d07` | C, I, D | 🔴 missing | C: unfollow button; D: follow state |
### Priority order within P1
1. **Like / tip a Memo** — the client can already broadcast; finish by adding
like counts to post feeds and profiles.
2. **Set profile text** — simple text broadcast + Account page UI.
3. **Set profile picture**URL broadcast + Account page UI.
4. **Follow / Unfollow user** — social graph; enables the following feed later.
1. **Like / tip a Memo — read side** ✅ DONE.
2. **Like / tip a Memo — client display** — the API now returns `likeCount`;
update the feed/profile/thread UI to read it instead of defaulting to 0.
3. **Set profile text**simple text broadcast + Account page UI.
4. **Set profile picture** — URL broadcast + Account page UI.
5. **Follow / Unfollow user** — social graph; enables the following feed later.
### Like / tip details
@@ -139,9 +141,8 @@ adding/editing the client UI.
BCH output to the author; a tip adds a P2PKH output paying the author.
- `psf-memo-indexer` stores each like in `likesDb` and records `tip` (sats)
when the like tx pays the author.
- `psf-memo-db` needs to aggregate `likesDb` into per-post `likeCount` in the
existing `/posts/recent`, `/posts/by/:addr`, and `/posts/:txid/thread`
responses.
- `psf-memo-db` aggregates `likesDb` into per-post `likeCount` in
`/posts/recent`, `/posts/by/:addr`, and `/posts/:txid/thread` responses.
- The client already has `MemoLike`, `LikeTipPage`, `LikeButton`, and
`LikeTipModal`; it only needs to read `likeCount` from the feed API.