Skip to content

Shared in Slack markers#645

Merged
willmot merged 4 commits into
releasefrom
feature/slack-mention-markers
Jun 4, 2026
Merged

Shared in Slack markers#645
willmot merged 4 commits into
releasefrom
feature/slack-mention-markers

Conversation

@willmot

@willmot willmot commented Jun 3, 2026

Copy link
Copy Markdown
Member

Shared in Slack

It's hard to tell if anyone's reading your H2 when nobody comments — a post can be shared and discussed across Slack yet look ignored here. This surfaces that activity: when a post is shared into Slack, a subtle, email‑silent marker appears inline in its comment stream, as another signal of reach.

  • Markers sit chronologically among comments and read as quiet, secondary rows — they aren't counted as comments.
  • Public channels are named and link to the thread; private channels and DMs are anonymised (“Shared in a private channel”).
  • Public shares are attributed to the sharer — “Shared by in #channel” — authored by their H2 user; unresolved/private/auto shares stay unattributed.

This PR is the comment‑stream rendering. The bot that records the shares is humanmade/human-bot#119 and the WordPress endpoint is humanmade/hmn.md#2525.

🤖 Generated with Claude Code

willmot and others added 2 commits June 4, 2026 01:32
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>
@willmot willmot marked this pull request as ready for review June 4, 2026 09:50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dee5978ba2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/components/Comment/SlackMention.js Outdated
willmot and others added 2 commits June 4, 2026 18:26
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 merged commit 444dbe0 into release Jun 4, 2026
2 checks passed
@willmot willmot deleted the feature/slack-mention-markers branch June 4, 2026 16:56
@willmot willmot mentioned this pull request Jun 4, 2026
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