Skip to content

Shared in Slack markers#646

Merged
joehoyle merged 4 commits into
mainfrom
feature/slack-mention-markers-main
Jun 4, 2026
Merged

Shared in Slack markers#646
joehoyle merged 4 commits into
mainfrom
feature/slack-mention-markers-main

Conversation

@willmot

@willmot willmot commented Jun 4, 2026

Copy link
Copy Markdown
Member

Re-lands the "Shared in Slack" comment-stream markers on main.

What happened

The original PR (#645) was merged into release instead of main. h2's release pipeline (release.yml) only rebuilds the compiled assets on a push to main — so the bundle on release was never regenerated. The server side shipped fine (markers appear in wp-admin and in the REST payload), but the production JS bundle has no SlackMention code, so nothing renders in the comment stream.

This puts the same source onto main so release.yml rebuilds release with the feature compiled in. Once merged, the hmn.md composer pin gets bumped to the new release build.

No code changes vs #645 — identical source, cherry-picked (07454c0d, dee5978b, bbf9d9c, a891da9).

willmot and others added 4 commits June 4, 2026 19:41
Surface when a post has been shared into Slack as a subtle, email-silent
marker inline in its comment stream — another signal of reach when a post
otherwise gets no comments.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
When the H2 side resolved a sharer (public shares only), render
"Shared by <name> in #channel on Slack" via the slack.shared_by field;
unattributed and non-public markers are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Attributed public shares now read "Shared by @username in #channel on Slack"
with @username linking to the sharer's H2 profile (AuthorLink). Also give a
marker that ends the thread a short tail so the rounded terminal dot clears the
node's mask and shows, matching trailing comments.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@willmot willmot requested a review from joehoyle June 4, 2026 17:43
@joehoyle joehoyle merged commit 86d9607 into main Jun 4, 2026
2 checks passed
@joehoyle joehoyle deleted the feature/slack-mention-markers-main branch June 4, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants