Repository navigation
msgconv/from-slack: render canvas rich text elements - #156
Merged
Merged
Conversation
Contributor
|
All clear! No issues remaining. 🎉 1 issue already resolved
All required CI checks passed on
Select any unchecked box below to run or rerun that agent. Full resultsIndent Review Agent
|
tulir
reviewed
Nov 26, 2026
| } | ||
| } | ||
| } | ||
| renderedCanvases := make(map[string]struct{}) |
tulir
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pasted canvas link arrives as a
canvasrich text element with only afile_id. It hitUnsupported Slack rich text section section_type_name=canvas, so a message that was only a canvas link was bridged with an empty body. Sometimes Slack later edits the message to add the canvas as a file, which then rendered with two leading blank lines.The element now renders the same way as canvas files: the title (looked up with
files.info) and an "Open the canvas in Slack" link to the permalink. When the canvas is also infiles, it isn't rendered a second time. The element type comes from beeper/slackgo#14.Before / after
Canvas link posted to a note-to-self DM, with main and this branch both logged in to the same Slack account:
Open the canvas in Slack
\n\n**🎧️ Huddle notes…**Tag
@indentto continue the conversation here.