Skip to content

feat: show source channel names on links and quotes - #49

Merged
stahnma merged 1 commit into
mainfrom
feat/slack-channel-names
Nov 22, 2026
Merged

stahnma merged 1 commit into
mainfrom
feat/slack-channel-names

Conversation

@stahnma

@stahnma stahnma commented Nov 22, 2026

Copy link
Copy Markdown
Member

Summary

Links and quotes posted from Slack store the channel ID (e.g.
C01229ESXEH) but the web view never showed where an item came from.
This adds a channel display name to the view.

  • New channels table (auto-migrated) mapping
    (client_type, client_network, client_channel) to the current name.
  • POST /api/v1/links and POST /api/v1/quotes accept an optional
    client_channel_name (a leading # is stripped). Each post updates
    the stored name, so a renamed channel shows its new name on all past
    items. Failures to record the name are logged and never fail the post.
  • Links show user in #channel next to the poster; quotes show
    #channel under the author. The IRC theme renders it as
    #channel <nick>. Applies to the timeline, search results and the
    empty-state global timeline fallback.
  • OpenAPI spec documents client_channel_name.

Follow-up needed

The Slack bot must send client_channel_name. Until a channel's first
post with a name, items from it show no channel.

Testing

  • make test passes, with new tests for channel upsert/rename, the
    name recording helper, and client fields on the global timeline.
  • Ran locally: posted links/quotes with and without a name, checked
    the rendered HTML, and checked that renaming updates older items.
  • Not visually checked in each theme (no headless browser available);
    worth a quick look at broadsheet, corkboard, irc and slop.

Clients can now send client_channel_name with client_channel when
creating links and quotes. Tumble keeps the latest name for each
channel in a new channels table and shows it on the web view, so
a renamed channel shows its current name on all past items.

The global timeline fallback now carries client fields so the name
is shown there too. The OpenAPI spec documents the new field.
@stahnma
stahnma merged commit 800caf8 into main Nov 22, 2026
1 check passed
@stahnma
stahnma deleted the feat/slack-channel-names branch November 22, 2026 04:47
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