cozuya / secret-hitler

A web adaptation of the social deduction board game Secret Hitler. https://secrethitler.io
Other
839 stars 202 forks source link

Enhanced mod log #307

Closed DennisTheFinn closed 7 years ago

DennisTheFinn commented 7 years ago

refresh mod log every day (12:00 am EST) and add previous mod log to an archive that is accessible in the page.

or even just auto add like a break/bar or something stating/showing it's a new day

or both, where the past week is accessible with breaks/bar showing a new day, and with each new day, the last instance of that unique day goes to the archive. So once it becomes Monday, there is a bar present that separates it as a new day and the other Monday goes to the archive; so there are a total of 7 days on the mod log

this will help with dealing with afk's if we take the "add losses compounding daily" route

Max1071 commented 7 years ago

omg Yes please. I don't know how I didn't come up with this myself.

DennisTheFinn commented 7 years ago

I lowkey feel insulted....

cozuya commented 7 years ago

uh so easiest solution is to have a "retrieve 500 more rows" button on the mod log you can press as many times as you want, would that work? do you want it at 1000 to start/continue instead? Look here even if you dont code you can figure it out by context https://github.com/cozuya/secret-hitler/blob/master/routes/socket/user-requests.js#L42

DennisTheFinn commented 7 years ago

basically I want an easy way to deal with trolls by setting losses compounding daily so if the modlog were compartmentalized by days it would be helpful af. but that also sounds nice

cozuya commented 7 years ago

uh could you expand on that? its already sorted by date. I do realize you can't sort it any other way manually, I could do that but a bit of a pain idk.

DennisTheFinn commented 7 years ago

basically having compressing/expanding categories for each day, to expand on the sorting already present.

kinda like how in discord you can expand/collapse the different text/voice channel categories.

so that way I can view only the moderation done on a specific date

cozuya commented 7 years ago

uh collapsable stuff like that isnt too easy and would require new UI. I'm gonna do 2 things OK: "load more" button (get 500 more rows, can keep clicking) and clickable table headers to sort i.e. click on IP and it sorts all visible rows by IP, etc. Is that good?

DennisTheFinn commented 7 years ago

yep!