Skip to content

feat(posts): remove per destination, read comments from the channel and fix live posts - #1784

Merged
viethung0o0 merged 1 commit into
mainfrom
feat/posts-remove-per-destination
Nov 26, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
feat/posts-remove-per-destination

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Remove a published post from one destination at a time, keep Remove from all channels, track queued removals on the edit page until every destination settles, and serialize each destination's removal so overlapping clicks join the running attempt
  • Keep a stored live post as live when a feed read reports another type, page through the live broadcast list instead of the newest 25 only, and give a stale live post one final re-read; ended broadcasts show the past-live tile and badge
  • Comments now say whether they come from the contact or the page: page replies sit on the right with the Page picture, and contact pictures are returned as renderable URLs
  • Download comments, phones and emails from "Stored data" (as before, plus the new emails kind) or "Read from channel": a background export that pages through every comment and reply on Messenger, Instagram, Threads and TikTok
    • runs on its own queue, one run per file, one channel export per workspace at a time, paced by Meta usage headers, with named ceilings that end the file as truncated
    • contact-data permission is checked at start and again when the download link is issued; files are swept after 7 days and drained when a workspace is purged
    • public API: POST /v1/channel-posts/management/exports and GET /v1/channel-posts/management/exports/{fileId}, with CLI commands
  • Show the author's name in the posts list and fit the needs-attention actions inside their column; the table scrolls inside its card on narrow screens

Deploy: no migration. The channel export uses a new queue, so jobs queued while older workers are still running wait for a new worker instead of being dropped. CHANNEL_POST_EXPORT_WORKER_CONCURRENCY is optional (default 10).

Test plan

  • pnpm check-types, pnpm lint
  • Unit tests for sdk, utils, database, business, worker-config, worker, builder, cli and the Messenger, Instagram, Instagram (Facebook login), Threads and TikTok integrations
  • Database integration tests on PostgreSQL: live state, post management, comments, export file repository
  • Browser: posts list (author column, loading state, 800 / 1024 / 1280 / 1920 px), needs-attention actions, comments dialog (contact left, page right, avatars, empty state), past-live tile and badge
  • Browser: "Read from channel" for comments and emails on a Facebook Page post finishes with a ready file; closing the detail sheet keeps following the export
  • Start and stop a live on a test Page and confirm live → ended
  • "Read from channel" on an Instagram, Threads and TikTok post with replies

@github-actions github-actions Bot added the feature New feature or request label Nov 25, 2026
@viethung0o0
viethung0o0 force-pushed the feat/posts-remove-per-destination branch from c4f14c0 to ef6b0c5 Compare November 26, 2026 14:00
@viethung0o0 viethung0o0 changed the title feat(posts): remove a post from one destination and show removal progress feat(posts): remove per destination, read comments from the channel and fix live posts Nov 26, 2026
…nd fix live posts

- Add a per-destination removal route and a Remove button on each published destination, keeping Remove from all channels
- Track queued removals on the edit page until every destination settles, and serialize each destination's removal request so overlapping clicks join the running attempt
- Keep a stored live post as live when a feed read reports another type, page through the live broadcast list, and give a stale live post one final re-read; show ended broadcasts as past live
- Mark each comment as from the contact or the page, align page replies right, and return renderable contact and page pictures
- Add a listComments capability for Messenger, Instagram, Threads and TikTok and a background "Read from channel" export next to "Stored data" for comments, phones and emails, with an emails kind, public API endpoints, a start lock, usage pacing, ceilings, and permission re-checks on download
- Show the author's name in the posts list and fit the needs-attention actions inside their column
@viethung0o0
viethung0o0 force-pushed the feat/posts-remove-per-destination branch from ef6b0c5 to 77ab8ff Compare November 26, 2026 16:50
@viethung0o0
viethung0o0 marked this pull request as ready for review November 26, 2026 17:35
@viethung0o0
viethung0o0 merged commit 12c0b91 into main Nov 26, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants