Skip to content

Latest commit

 

History

History
76 lines (61 loc) · 3.36 KB

TODO.md

File metadata and controls

76 lines (61 loc) · 3.36 KB
  • Priority things to do:

    • admin promotion button
    • client visible validation of player count vs roles selected (on start game button?, or in reaction voter note - which would need to become versioned data?)
    • start game button
    • timed phases
    • admin pause button
    • admin kills
    • hover text on game rules sections (advanced & handicap)
  • Settings:

    • allow setting log length
    • dark mode: jgthms/bulma#2342
    • disable back button
      • I'm a monster, but I'll get frustrated having to relogin when I accidentally click back
  • favicon

  • maybe add a header and collapse button at the top of each section? Then user can hide panes they don't want, which makes mobile nicer

    • probably need an icon to notify that something has changed.
  • use a modal for death actions? Use a modal for all (night?) actions?

  • it'd be cool to have an age indicator (besides game phase) on messages. Live time counter might be distracting. Maybe an icon for 'recent' updates? (either based on physical time, or game phase)

  • village hanging message: who died, how many votes, and everyone else that receieved votes (and how many) - tool tip on each person and number to see who all voted.

  • Embedded rule book instead of link to pdf

  • Tables on mobile gets kinda fucked. How do we make this scale down?

    • maybe make each row a level? it is properly reactive. left can have icon and name grouped together, right can have buttons grouped together, will show as two rows on mobile.

      • This works but requires a some custom css to get the margins/padding to look sane, divs between rows, highlighting and I have no idea how to style the name and skull
    • does the text for longer log messages wrap correctly?

  • fuse.js

    • might need to turn threshold down some
    • maybe good to increase distance a bunch
    • Searching an array doesn't allow AND'ing multiple searches across the array, just in one tag. We could fix this by jamming all the tags in one string and bumping up the distance a ton
    • there's a better way to do search: there are a limited number of tags (role, people, when, visibility, action, etc). Parse the query (split on &, |, parens, quotes (for exact)) ourselves, and collect all unique tags into a set. Then for each search term in the query, run fuse.js on the set of all tags and return the highest ranked tag. Then filter the full set of log messages to the exact matches of those returned tags with the boolean expressions applied.
  • pause button for everyone? should require some threshold of players to activate (or admin), requires unianimous vote to resume (admin has extra button to force resume)

  • a minigame should be present at least during eyes closed phases which encourages players to click:

    • trivia is the obvious choice
    • chess or other board games against an AI
  • auto login in some cases would be good. maybe use routes - top level is always login, but anything else assumes that's the lobby name and tries to auto login if cookies are present

  • currently using the "all" webfont packs. Use something from here to just get the icons I want, serving multi MB fonts is dumb: https://github.com/FortAwesome/Font-Awesome/wiki/Customize-Font-Awesome

  • Automatically retry reconnect if websocket closes?