Code Monkey home page Code Monkey logo

darkcurse's People

Contributors

dependabot[bot] avatar mattgibney avatar uaktags avatar

darkcurse's Issues

Implement a "Compose" button to send new messages

Add a button within the Inbox page, point it to /inbox/compose/new (compose view)
Compose view needs to have an input for usernames (1+). During submit, check the username exists and is not self

Implement Reply functionality

Reply should take the current msgId, read its body, and use that the footer of the body of the new message.
This will show a simple message trail that is common in email clients. For the user, they'll easily be able to reference what they're responding to.

Feature: Daemonize the crons | frontend vs backend.

Right now we have the crons running via node-cron and we should really look at having a separate service run this. The frontend server should just be worrying about rendering to the client while the backend server handles the heavier tasks.

Feature: Add Fortifications / Upgrades

Fortifications are necessary for Daily Citizen production, Higher Gold yields, and Turn production.

Fortifications need a db table to show individual bonuses that each fortification level.

Fortifications have a UserLevel requirement to be unlocked and a cost attributed to it to boost you up the next level

Each Fort has a name, health (max, current, [percentage??])

Implement "Send user a message"

Activate link on player's profile for the viewer to choose to Message that player
open a new Compose page with the user as the default recipient
keep default body settings (empty) for compose window

UI: Choose either to ajaxify screens or rerender

For the training, I wasn't looking around to see if we had any examples of passing messages back on error/success but also felt the entire page didn't need to be rerendered, so I went the route of using AJAX. This added jquery and bootstrap-toaster to the mix, which is another dependency towards bloat, though still minimal. However, the Bank provides an example of just using res.render to bring the page back with the messages.

A decision should be made on which and go with that. Toasts would be great if we add in a messaging queue service though using websockets.

Dev Needed: Need to add the unit tests and fix the ones I broke

Due to the fact that I've been adding more and more features to existing controllers, the tests that were working before are failing and no new tests have been made. This is a fatal flaw of myself as a developer as I don't properly write tests like i should, and this should be fixed before merging back to Moppler.

Implement a delete function

have a field in the db for recipient's status and sender's status
Function should be callable via the button press on a message via the inbox or the message itself
/inbox/delete/:msgid ? then check that the user is either the recipient or the sender, and update the status accordingly

Refactor: Refactor the Player Stats so we don't have to calculate all the time

Right now the UserModel contains the gets for Offense/Defense/Spy/Sentry stats as well as the GoldPerTurn that the user should receive. As these only go up or down when being purchased or killed, the stats should get stored into the database. As we approach Attacking, we're not going to want to do these additional calculations as we waste time going through arrays of units calculating their bonuses.

make containers use full height

image

The content of the page should go all the way to the bottom (or to the sticky footer if we add one).

This is with 77.5vh on the row's height:
image
I feel like that's a bit hacky though.

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.