Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack posting by webhooks implementation of links isn't working #36

Open
instantiator opened this issue Feb 22, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@instantiator
Copy link
Owner

instantiator commented Feb 22, 2025

Context

When posting by Webhook, we can see that links aren't being rendered.

Hypothesis

This could be caused by a malformed or not fully formed block created in SlackWebhookConnection

case SnippetType.Link:
  text.RequireText("Text");
  reference.RequireText("Link");
  blocks.Add(new SlackWebhookPostBlock()
  {
      text = new SlackWebhookPostBlockText()
      {
          text = $"<{reference!}|{text!}>",
          type = "mrkdwn"
      },
  });
  break;

It might be better to render this as a rich text section inside a rich text block.

Block-kit looks like a powerful tool that we are not yet using to its full potential.

We can use the block-kit builder to experiment with the right combination of block types.

@instantiator instantiator moved this to Backlog in Presence Feb 22, 2025
@instantiator instantiator self-assigned this Feb 22, 2025
@instantiator instantiator moved this from Backlog to In progress in Presence Feb 22, 2025
@instantiator instantiator added the bug Something isn't working label Feb 22, 2025
@instantiator
Copy link
Owner Author

Working branch: P36_improved-typing-for-BlockKit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In progress
Development

No branches or pull requests

1 participant