Dragory / modmailbot

Modmail Bot is a bot for Discord that makes it easier for users to contact moderators and admins for help.
MIT License
704 stars 701 forks source link

Improved log layout/styles #330

Closed Huskydog9988 closed 1 year ago

Huskydog9988 commented 5 years ago

What I'm proposing is a better website UI design. The goal is to have the logs to look like a discord chat. Ex: image

I've already begun work on this with my branch here. This is mainly broken and any ideas as to how to fix this would be greatly appreciated.

(BTW this new version does use pug as its method to the logs.)

Dragory commented 5 years ago

I would probably prefer it in plain html or something like ejs rather than pug, but I like the idea! That being said, I think it should be an option or have both available somehow (e.g. appending /pretty to the log URL).

You said your branch is currently "mainly broken" - how so?

Huskydog9988 commented 5 years ago

The reason I’m using pug is so I can have a template then fill in the messages. The bot is broken in the way logs are displayed, at first it would only show as [object, Object]. Lastly I might just make the pretty option a config var as /pretty would have to be manually added to each log instead of just having it auto do it.

Dragory commented 5 years ago

Perhaps the option could change the link that's posted? That way both options would be available, and the option would control which is the "default".

I feel introducing pug is a bit overkill, as something simple like ejs would do the same (templating) with 0 dependencies.

sporkwitch commented 5 years ago

Should be able to template it with HTML and in-line CSS. Keeps things simple. It's just text logs, after all, no need to go crazy. v / r Robert Klebes Mobile: 571-492-8639 https://keybase.io/sporkwitch https://www.linkedin.com/in/klebes

On August 7, 2019 11:53:16 AM EDT, Miikka notifications@github.com wrote:

Perhaps the option could change the link that's posted? That way both options would be available, and the option would control which is the "default".

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/Dragory/modmailbot/issues/330#issuecomment-519158397

Huskydog9988 commented 5 years ago

It is just text logs but the current version is very tedious to read. Also I’ll look into using ejs instead.

ChrisvanChip commented 5 years ago

I'm working on making it looks like the Discord interface. Not sure if I'm going to release it though.

Huskydog9988 commented 5 years ago

That was and is my goal, I just haven't gotten to fixing my code and adding the css.