Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making the status text more useful #149 #161

Merged
merged 9 commits into from
Dec 16, 2018

Conversation

HaydenMeloche
Copy link
Contributor

@HaydenMeloche HaydenMeloche commented Dec 4, 2018

This PR #149 updates the title of the bot's check to be a little less repetitive. Unit tests were also updated to reflect this change.

Since emojis don't seem to work in the title (even with :construction:) this is how they look:
image

And everything else will look like:
image

Feedback is appreciated!

closes #149

Copy link
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ll ping support about the usage of emoji in statuses and keep you posted

lib/free/set-status.js Outdated Show resolved Hide resolved
@HaydenMeloche HaydenMeloche changed the title Making the status text more useful #149 WIP Making the status text more useful #149 Dec 5, 2018
@HaydenMeloche HaydenMeloche changed the title WIP Making the status text more useful #149 Making the status text more useful #149 Dec 9, 2018
@HaydenMeloche
Copy link
Contributor Author

How's this @gr2m ?
image

Copy link
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emoji-text is no longer maintained, I found gemoji as an alternative which sounds like what we want?

lib/free/set-status.js Outdated Show resolved Hide resolved
lib/pro/set-status.js Outdated Show resolved Hide resolved
lib/pro/set-status.js Show resolved Hide resolved
lib/pro/set-status.js Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
test/integration/free-plan-test.js Outdated Show resolved Hide resolved
gr2m and others added 2 commits December 9, 2018 12:01
Co-Authored-By: HaydenMeloche <meloche.hayden@gmail.com>
Co-Authored-By: HaydenMeloche <meloche.hayden@gmail.com>
@HaydenMeloche
Copy link
Contributor Author

With some further investigation it appears emojiRegex doesn't support everything.
Example:

output = newStatus.match.replace(emojiRegex(), (match) => gemoji.unicode[match])
console.log(`Output ${output.name} - Match: ${newStatus.match}`);

Output: Output undefined - Match: 🐱

@HaydenMeloche
Copy link
Contributor Author

I updated the package to gemoji now. I left it saving as a new variable that way the description in the details page still shows the original emoji.

@gr2m thoughts? 😄

Copy link
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loos great, thanks Hayden 💐

@gr2m gr2m merged commit b427eee into wip:master Dec 16, 2018
@gr2m
Copy link
Collaborator

gr2m commented Dec 16, 2018

🎉 This PR is included in version 3.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@gr2m gr2m added the released label Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Making the status text more useful
2 participants