Repository navigation
Conversation
Slack replaced the Later tab with Saved and To-dos. Add a todo command (list, add, complete, reopen, remind, remove) over the saved.* endpoints the Slack client uses for To-dos, covering both plain-text to-dos and message to-dos.
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.
Slack split the old Later tab into Saved and To-dos. agent-slack can save things with
later, but it couldn't see or touch the To-dos list, so this adds atodocommand:A text to-do's id is its
Sa…id, and a message to-do's id is just the message URL.There's no public To-dos API. The desktop client builds them on the same
saved.*endpointslateralready uses:saved.listwithfilter=todo(ortodo_with_completed),saved.addwithtodo_state=to_do,saved.updatefor complete, reopen and reminders, andsaved.deletefor remove. A few things weren't obvious. A to-do whosedate_dueequalsdate_createdhas no reminder, soremind_atonly shows up for real ones.date_dueonsaved.addsets the to-do's date, not a reminder, soadd --reminddoes a follow-upsaved.update. Same when you add a message that's already in Saved, sincesaved.addleaves it there.Message to-dos go through
fetchMessage,toCompactMessageandresolveChannelName, so they look the same asmessage get.I ran every subcommand against a real workspace (text and message to-dos, moving a message out of Saved, bad input exiting 1), and test, typecheck, lint, format:check and build all pass. One thing I left alone:
later liststill shows messages that are now to-dos.X: @realy0usaf