Skip to content

fix: handle Threads deep link and relative time display#5

Merged
slackstat merged 2 commits into
mainfrom
fix/threads-deeplink-and-relative-time
Feb 25, 2026
Merged

fix: handle Threads deep link and relative time display#5
slackstat merged 2 commits into
mainfrom
fix/threads-deeplink-and-relative-time

Conversation

@slackstat

Copy link
Copy Markdown
Owner

Summary

  • Threads deep link fix: Clicking "Threads" in the dropdown now opens Slack to the workspace (slack://open?team=) instead of passing a synthetic __threads__ channel ID that caused a "Something went wrong" error in Slack. There is no slack:// deep link URI for the Threads view.
  • Threads relative time fix: The client.counts API does not return a latest timestamp for threads, so thread counts now display without a relative time when unavailable (e.g., 🧵 3 instead of 🧵 3 (0s)). Added optional latest field parsing to ThreadCount for forward-compatibility if Slack adds it.
  • UI cleanup: Removed the duplicate "Threads" section header from the dropdown menu since the single item already says "Threads".
  • README updated: Documented Threads limitations (no deep link, no timestamp) and updated feature descriptions to reflect threads support.

Testing

All 46 tests pass, including 4 new tests:

  • testSlackDeepLinkForThreads — verifies the slack://open?team= URL format
  • testThreadCountWithoutLatest — decodes thread without latest field
  • testThreadCountWithLatest — decodes thread with latest field and parses date
  • testMenuBarTitleThreadsWithoutTimestamp — renders thread count without relative time

Threads in Slack have no deep link URI and the client.counts API does
not return a latest timestamp for threads. Fix both issues:

- Click Threads now opens Slack to the workspace instead of passing a
  synthetic channel ID that caused a Slack error page
- Thread counts display without a relative time when no timestamp is
  available (e.g., '🧵 3' instead of '🧵 3 (0s)')
- Remove duplicate 'Threads' section header from dropdown menu
- Document Threads limitations in README
@slackstat slackstat merged commit d77e64e into main Feb 25, 2026
1 check passed
@slackstat slackstat deleted the fix/threads-deeplink-and-relative-time branch February 25, 2026 16:36
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