kestasjk / webDiplomacy

Play Diplomacy online
http://webdiplomacy.net/
GNU Affero General Public License v3.0
179 stars 113 forks source link

Updated Test Build - Messages API and Builds Phase Updates #774

Closed bryancodazen closed 2 years ago

bryancodazen commented 2 years ago

This PR adds the following:

  1. API for fetching messages based on different criteria
    • press type
    • user's logged in status
    • offset/limit (default: 0/25)
    • based on comms that the logged in user's country has access to
  2. Add build phase builds on coastal and inland territories based on different conditions.
  3. Removes the use of ReactDOM to render units in the WDUnitSlot components, rather makes use of dev commands to render units in their appropriate unit slots/territories.
  4. Adds more dev commands to the beta app for additional functionality, game functionality.
  5. Removes highlighting from water territories as the fleet has the country's color.
  6. Persists the a unit's explicit hold order stroke even after the user clicks away, allowing for the user to recognize that a hold order was explicitly defined for that unit during the page session.
  7. Adds ready button functionality and prevents the user from making changes once they have clicked readied up. The user can still start making changes again by clicking "Unready".
  8. Uninstalls SVGR as it is no longer in use and refactors some files to remove SVGR references.
  9. Decouple Army/Fleet icons from the WDArmy/Fleet game components so that the visual icons can be reused elsewhere.