mattermost-plugin-github
mattermost-plugin-github copied to clipboard
Implement tooltip content for more types of GitHub links
At the moment, we show a tooltip for issues and PRs. We can also show the tooltip for the following entities:
- repos
- branches
- commits
- files
The task here is to modify the Link Tooltip component to support showing a tooltip card for the entities listed above.
@mickmister What should we show in the tooltip for branches
and files
?
@mickmister What is your suggestion for repos and commits? As of now for repos we have added:
- Description
- Stars
- Watching
- Forks
- Branches
- Tags
and for commit we have added:
- Message
@matthewbirtch What do you think?
@Nityanand13 For the repo view, I'm thinking a small preview of the README would be more beneficial than seeing the stats.
@mickmister What should we show in the tooltip for
branches
andfiles
?
I think the branch view can be the same as repo view. The file view could have a small preview of the first few lines of a file.
@mickmister For the repo, a small preview of README is enough or can we add stats along with that?
@mickmister Is there any modification needed for the tooltip of a file?
@matthewbirtch What do you think?
The suggestions here are decent suggestions. Should we queue this up for someone on the UX team to design something for each of these scenarios outlined before implementing or opening up for Help wanted? I know we don't have a truly dedicated UX designer for the integrations team right now, but I'm sure we can get someone to work on it.
Should we queue this up for someone on the UX team to design something for each of these scenarios outlined before implementing or opening up for Help wanted?
@matthewbirtch That sounds good to me :+1: How do you suggest I do this? Should I file a ticket in Jira, and assign to UX with fix version triage?
The file view could have a small preview of the first few lines of a file.
Note that if it's a permalink URL to a specific line/range of lines, the preview should keep those lines in mind
@matthewbirtch That sounds good to me 👍 How do you suggest I do this? Should I file a ticket in Jira, and assign to UX with fix version triage?
That is fine @mickmister and we can triage it from there. FYI, we will likely be changing this process in the future, to keep it on the team that will be implementing with a ux-needed
label and PMs can prioritize with UX, but for now, we can triage it easiest the way you've mentioned above.
@wiggin77 Do you think we should start working on this issue or make this as help wanted. As this is quite a big task. We have to support multiple types of tooltips. I have shared you the figma link for designs in your DM on hub.