Skip to content

Conversation

@dbieber
Copy link
Owner

@dbieber dbieber commented Apr 15, 2025

Summary

  • Add new Slack uploader for integration with Slack workspaces
  • Allow users to send notes to a Slack channel as threaded messages
  • Support hierarchical notes with proper formatting using indentation and bullets
  • Integrate with the existing settings UI

Test plan

  • Install slack-sdk dependency
  • Configure SLACK_API_TOKEN and SLACK_CHANNEL in settings
  • Test uploading notes with session detection
  • Test hierarchical note formatting
  • Test end_session, handle_inactivity, and handle_disconnect functions

Original task

let's add a new uploader: the slack uploader. model it off of the existing uploaders. in the settings UI if you choose slack as your note taking system, a connect to slack button should appear, allowing you to log into a slack workspace and choose any slack channel to connect to. a new "session" corresponds to a message thread in the slack channel. the top-level message in the thread should have the first message and also say 'This is a Go Note Go generated thread.' with a keyboard emoji. each note (including the first note\!) should appear as a reply in that thread. if a note is indented, it should appear as a bulleted list (if its just indented once, just a bulleted item; if its multiply indented, then the bullet itself should be indented too). there should be end_session handle_inactivity and handle_disconnect fns in this uploader just like in the others.

🤖 Generated with Claude Code

dbieber and others added 5 commits April 15, 2025 18:31
- Add new Slack uploader implementation
- Integrate into settings UI
- Add required dependencies
- Support for posting notes to Slack channels
- Create threaded notes with indentation

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add proper indentation level tracking through INDENT/UNINDENT events
- Reset indentation level when ending a session
- Handle CLEAR_EMPTY events to reset indentation level

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add ENTER_EMPTY event handling
- Remove unnecessary try/except block
- Clean up imports and formatting

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Update the thread header message format to be more concise
- Move the keyboard emoji to the beginning of the message

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@dbieber dbieber merged commit 5206bc0 into main Apr 15, 2025
2 checks passed
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.

2 participants