Skip to content

enhancement - Client user colors#35

Open
Jackietkfrost wants to merge 6 commits intoachhayapathak:mainfrom
Jackietkfrost:client-user-colors
Open

enhancement - Client user colors#35
Jackietkfrost wants to merge 6 commits intoachhayapathak:mainfrom
Jackietkfrost:client-user-colors

Conversation

@Jackietkfrost
Copy link

Added user and system coloring schemes as well as borders to distinguish users. Added Stylesh package for this purpose, and this gives us access to ~140 colors that are randomly given to users on join.
image
image
Beside this, I've made it backwards compatible in the sense that if the server is not assigning a color index, or the client isn't using one, their default border will be 'white'. Overall it's a significant overhaul of what we have, but it's prettier, backwards compatible, and allows more freedom for eventually adding more content such as slash commands to change colors and such. Versioning was changed to 2.1.0, and also added in a line move to modify the sent input.

Currently known bugs:

  • Multiline issues for box bordering (Any text that consumes 1-2 input lines can cause this issue.)
  • using multiline separators in normal chat <> will show on older clients instead of splitting content (This doesn't feel like too big of an issue)

Made it so it selects a color from the list. This list is based on the stylesh package, and makes sure the selected color is a string to pass as a variable. Currently we're only coloring the border of the user, but could easily do the name itself, or the background of the text.  Tried to make it as backwards compatible as possible.
clearing unused text line to help with multiline and text modification.
Added chat formatter to make chat automatically multiline when above that character count.
added blocker to send so empty messages don't get sent.
@Jackietkfrost
Copy link
Author

How do I see what Snyk is saying has failed? That feels odd that I can't just see what the issue is so I can fix it.

@Jackietkfrost
Copy link
Author

Is the project dead?

@achhayapathak
Copy link
Owner

Hey @Jackietkfrost, thanks for the contribution. I was focusing on another project, that's why I was inactive here. The vulnerability is in the stylesh package that you are using. I have approved the PR though. Let me know if you are fixing this otherwise I merge it!

@Jackietkfrost
Copy link
Author

That's awesome, @achhayapathak, hope the other project is getting well deserved care! What's the vulnerability in stylesh? If there's anything I can do to fix it, I'll try that. If I can't fix it, I'll ask for the merge!

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