Update: Slack: Adding more info to Slack Open Channel command
Description
Hi there! I updated the Slack Search Command to pull more data from Slack, like the user's Title (if it exists), their current status in Slack, when they will be back, their timezone location, as well as their current local time.
Current Search Command UI
New Search Command UI
Screencast
https://github.com/raycast/extensions/assets/1895120/77361592-390b-4574-8afa-ad8da58e9c06
Bonus
Adds Emojify to Unread Messages as well to help make messages with emojis more readable:
Checklist
- [x] I read the extension guidelines
- [x] I read the documentation about publishing
- [x] I ran
npm run buildand tested this distribution build in Raycast - [x] I checked that files in the
assetsfolder are used by the extension itself - [x] I checked that assets used by the
READMEare placed outside of themetadatafolder
Thank you for your contribution! :tada:
🔔 @momme-rtf @Elliot67 @jfkisafk you might want to have a look.
You can use this guide to learn how to check out the Pull Request locally in order to test it.
You can expect an initial review within five business days.
Hi @RobErskine Thanks for your contribution! I like your change for displaying the emojis properly. Regarding the search: I personally like to have the list more focused and less overloaded with infos. Especially when working within a small team I rather do not care about titles and locations of team members. Within a bigger company I see that it can be helpful. Maybe we could make it configurable somehow what we show. But I'd also like to hear the opinion of other contributers. What do you think?
Hi @momme-rtf, thanks for your thoughts. I can see your point about keeping it uncluttered. Personally my org on Slack is over 700 people all over the world, so looking people up and understanding where they are and what time it is for them is crazy useful for me.
I do like your suggestion of adding in a Preference for this though to keep this simple for folks that like the way it is currently. I was already thinking in the shower that I should probably add in a preference for how the time should be displayed (am/pm or 24 hour).
How about this:
- Add in a Preference for whether to show time in am/pm or 24 hour
- Add in a Preference on whether or not to show the Timezone / current time for that team member
- I think it's useful to show the Slack status emoji, the message, and when the status expires. Do you think that would be a good addition to keep in, without a Preference to toggle on/off?
👋🏼 hey @jfkisafk @momme-rtf,
I went ahead and added two additional preferences to the extension for Time Format as well as Displaying Additional Metadata in the Search Command:
I also added in HH:MM to the Slack Status Tooltip so if someone is grabbing lunch, or at a doctor's appt on the same day, the return time will be displayed. This screenshot also has the "Show Extra Metadata" option turned off (which is the default).
Here is what it looks like with the extra metadata turned on, as well as the 24 hour time format.
Let me know if you have any other feedback!
Awesome @RobErskine The preferences that you've added look good to me :)
Please rebase on top of https://github.com/raycast/extensions/pull/13039 and see if everything works as before? This will add a new command and the previous Search command name has changed.
👋🏼 hi there.
This is pretty poor (or good?) timing on my end but I was working on an update to the ~Search~ Open Channel command just as @thomaslombart published the latest Slack extension updates.
This PR adds Metadata to the Open Channel command to show Slack member's job title, current status, timezone, as well as their current time. Also added in the option to display time in AM/PM or 24 hour time.
With the Metadata set to false (this is the default to keep functionality as close to what it is now):
With the Metadata turned on (with 24 hour time):
Hey Rob, I'll review the PR next week 🙂
It seems other extension changes have slipped in while merging/rebasing. Could you fix it before I review your PR? 🙂
@thomaslombart sorry about that; not sure how that happened while I was rebasing. I have merged main back in and all looks correct now. Mind giving it a look now?
@thomaslombart thanks for the feedback. I've incorporated your feedback and I think it's better for it. Please take a look when you have the time
I'm traveling for work but will be able to get to these last pieces of feedback tonight or tomorrow!
@thomaslombart @jfkisafk Thanks for the feedback and apologies on the delay. I have updated the getCoworkerTime function to use date-fnsand date-fns-tz to eliminate the need for an additional setting.
Now it only the time difference shows up if the there is an actual time difference. All time is also shown in hours as -1h, +3h, +9.5h, etc. This keeps the UI ubiquitous and simple.
Let me know if you have any other questions or concerns!
Published to the Raycast Store: https://raycast.com/mommertf/slack
:tada: :tada: :tada:
We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.