Skip to content

Add richer Slack plan unfurls#157

Merged
HamptonMakes merged 1 commit into
mainfrom
hampton/slack-unfurl-branding
Jul 22, 2026
Merged

Add richer Slack plan unfurls#157
HamptonMakes merged 1 commit into
mainfrom
hampton/slack-unfurl-branding

Conversation

@HamptonMakes

Copy link
Copy Markdown
Collaborator

Why

CoPlan link previews currently communicate the plan title and summary but lack the visual identity and author context that make an unfurl easy to recognize and trust in Slack.

What

  • Add compact author avatars and emphasized author names to plan metadata
  • Add restrained visibility-aware accent colors and status markers
  • Include a small-scale Slack app icon and exact profile-branding guidance

Risk Assessment

Low — this only changes optional Slack unfurl rendering and extends the internal link-preview value object. Avatar URLs retain the existing HTTPS-only validation.

References

  • bundle exec rspec spec/services/link_previews_spec.rb spec/services/slack_renderer_spec.rb spec/jobs/slack_unfurl_job_spec.rb spec/requests/slack_events_spec.rb (17 examples, 0 failures)
  • RuboCop passed for all touched Ruby files

Generated with Amp

from the `chat.unfurl` payload. In the app's **Basic Information → Display
Information** settings, use:

- **App name:** `CoPlan`

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Coplan

@HamptonMakes
HamptonMakes marked this pull request as ready for review July 22, 2026 21:02
@HamptonMakes
HamptonMakes merged commit 6192511 into main Jul 22, 2026
4 checks passed

@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: 9f5ac4cef9

ℹ️ 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 on lines +57 to +58
if preview.author_avatar_url.present?
elements << { type: "image", image_url: preview.author_avatar_url, alt_text: preview.author_name.to_s.first(2000) }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Guard Slack renderer against older engine previews

When coplan-slack is installed with an existing coplan-engine 0.4.x (still allowed by integrations/slack/coplan-slack.gemspec), CoPlan::LinkPreview objects do not expose the new author_avatar_url/author_name accessors, so rendering any unfurl raises NoMethodError before chat.unfurl is called. Either require the engine version that adds these fields or make these accesses backward-compatible.

Useful? React with 👍 / 👎.

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.

1 participant