Giter Site home page Giter Site logo

hermes's People

Contributors

keykoder avatar magnitopic avatar spaceface777 avatar theperkinrex avatar tloru avatar vladyslavlukyanenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hermes's Issues

Problems when parsing links & quotes

There are two problems with the parsing of messages and quotes:

  1. If a message has both a quote and a link in it, the text appears twice (once with each format) since it is appended instead of replaced.
  2. If a message has more than one link in it, the text in between the first and last one is all parsed as one link.

image

Resize profile images instead of setting maximum dimensions

When implementing the profile picture submission, for now there's a maximum dimension for the images set up at 128px*128px. Ideally there wouldn't be any limit, only that if an image surpasses a threshold, the image is resized to fit.

Add dark mode

This would help the Hermes Desktop app, and fix #1 from there. In that issue there's a bit more explained, but it would basicly mean to add a /dark to every page

Add a cookie notice

Add a small pop-up to ask the user if he accepts the use of cookies, and an option to see our use of them. To meet EU laws.

Create a settings page

We should create a settings page where users can

  • Change their password
  • Change notification frequency (Always / only when page isn't focused / never)
  • Change their user's color (If we add it)
  • Change their profile picture (If we add it)

Message size on mobile

There are a few problems with message sizes on mobile:

  • The time is too small to read
  • The first few messages are very small, but then it corrects itself after a few.
    • If you rotate the device, all of them show with the same (big) font size.

Screenshot

Add bots

We should add the ability to create bots to give Hermes more functionality.

Make links work as links

We should make links work as actual links, so a user can click them and they open in a new tab.

Add multiple chat pages, like groups or channels

This would add pages located in /chat/%channel_uuid% and for all the APIs related to sending & recieving messages, like /loadmessages would have /%channel_uuid% attached to the end.
In redis we could store them as a list named %channel_uuid%_messages

Login isn't secure

Right now, the only thing the login page does is set the username cookie. Any user can set the cookie to anything, go to server.com/chat and be logged in as any user they want.

Multiple users with same user name

Right now, you can create more than one user with the same name.

This is really bad for security since anyone can create another user with the same username and a different password, and the system will identify them as the same user.

Fix - check if user with same name exists before creating a new user

Time is always the same even if the time zone of the client is different

Since the message time is added server side, the times of the messages depend on the time zone where the server is located. (It can be a problem when we present it in Dublin)

To fix this, we can make the server store the time in UTC format and then convert it on the client depending on its location.

Improve website scrolling

There are two small problems with scrolling on the website:

  • When connecting to the page, the vertical scroll of the position is more or less halfway by default. It is not a big problem now because there are not too many messages, but when the number of messages is increased the user will have to scroll a lot in order to get to the bottom of the page.

  • When you send a message and you are not at the bottom of the page, the website should either:

    • Scroll to the bottom automatically
    • Not scroll at all (stay how it is)

Issues with macOS dark theme

  1. The background color for the date is the same as that of the chat, and it looks very strange.
    Image 1

  2. There is no CSS for the button to scroll down
    Image 2

Make quotes link to the original message

For linking, the messages already have an id, message_ with _ being the number of message, so to link to it, we should redirect to the same page but with #message_ at the end

Quotes sometimes display " at the end

This happens sometimes, but I haven't looked into what might cause them
captura de pantalla 2018-11-19 a las 14 32 45
^^^^^^^^^^^^^^^^^^^^^^^
It looks like it might be related to how we parse qouted messages without quotes & the difference to how we parse then when the quoted messages have quotes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.