Tuesday, September 5, 2017

Change Log: 2.26.608

Release 2.26.608 implements API-side controls for managing survivor Fighting Arts! This means that the Survivor Sheet in the webapp will no longer have to reload when fighting arts are added or removed!

Also, as part of all that, 2.26.608 completely overhauls and upgrades the presentation of the Fighting Arts, so that they look a lot better, overall.

(Also also, I should mention that I finally got around to fixing the alignment of the Survivor Sheet "Survival" number input at all three breakpoints. That's been bugging me for months now, and it feels really good to finally get around to it.)

And speaking of presentation, this issue addresses a handful of issues affecting Firefox. I have been monitoring browser/OS information a little more closely lately, and it looks like more users are coming in with Firefox, so I'm going to start using it more in my QA/pre-release process.

Finally, I should stay that Survivor Sheet Disorders are next on the list of UI/UX elements to improve (i.e. by making it so they don't reload the page), but I've got a handful of javascript revisions/bugs I need to do first, as well as some authentication/user-creation work that I've got to turn in for The Watcher beta, so it'll be a minute before I get around to fixing up the Disorders.

Thanks for using the Manager!


Corrections and Fixes



  1. Addressed an issue where the Fighting Art "Champion's Rite" had a broken/non-conventional handle (due to bad automated conversion from legacy game_assets.py) that caused errors during Survivor Sheet rendering.
  2. Models.set_pretty_types() now uses the title() method (instead of capitalize(), which looked weird in the app).
  3. Addressed a (super-annoying, super-longstanding) presentation issue on the Survivor Sheet where the alignment of the Survival box/number was always just a little bit off.
  4. Cleaned up the presentation on the Survival Limit max error.

Application Improvements


  1. The 'World' panel's number for settlements that have been 'abandoned' is now the API's abandoned_or_removed_settlements asset value.
  2. Completely deprecated all Fighting Arts references from game_assets.py
  3. Deprecated the following assets.Survivor methods:
    1. get_fighting_arts()
    2. get_fighting_art_levels()
    3. toggle_fighting_art_level()
    4. update_fighting_arts()
    5. update_affinities()
    6. update_survival()
  4. I also deprecated all references to the Fighting Arts model in the legacy webapp's models.py
  5. The assets.Survivor.add_game_asset() method now throws an error if you attempt to use it to add a Fighting Art to a survivor
  6. Removed support from assets.Survivor.modify() for the following CGI FieldStorage parameters:
    1. 'fighting_art_level_toggle'
    2. 'add_fighting_art'
    3. 'remove_fighting_art'
  7. Removed so-called 'fighting arts picker' code from the assets.Survivor.render_html_form() method
  8. Created new AngularJS controls for adding and removing Fighting Arts:
    1. removed the old form
    2. created rmFightingArts() method in the JS fightingArtsController module
    3. created a new initAssetLists() method in the main controller that runs on init (and whenever an asset is added or removed) and updates all drop-down/picklists at once. This only retrieves the settlement from the API once, so it should help performance mightily.
    4. created an addFightingArts() method in the JS controller
    5. The controls for adding Fighting Arts disappear if the Survivor has three Fighting Arts on their Sheet
    6. Re-did the presentation at all breakpoints for Fighting Art "cards" (to include special colors for Dragon Trait FAs)
    7. Implemented Fighting Art "flair" on cards that indicates their expansion (if they belong to an expansion)
  9. Revised the survivorSheetController to have a single method that initializes all Survivor Sheet pick/drop-down lists.
  10. Refactored kdmManager.js so that the setGameAssetList() method a.) logs failures better, b.) an be called any time that $scope.settlement exists.
  11. Refactored the main style.js to use the 'clickable' class the way I do literally everywhere else. Also removed individual 'cursor: pointer' styles from many classes and refactored HTML to use the 'clickable' class.
  12. Refactored the dashboard "rollup" CSS so that it's more modular/extensible (should help speed up the coming dashboard refactor).
  13. Added a 'help-tip' for Fighting Arts controls on the Survivor Sheet.

API Enhancements


  1. The abandoned_and_removed_settlements asset has been renamed abandoned_or_removed_settlements to more accurately reflect what it is. Its description has also been updated/enhanced.
  2. Admin Panel now only shows the recent users item if there are recent users. 
  3. User Agent popularity contest is now hidden by default.
  4. Created support for managing Survivor Fighting Arts via the API:
    1. Created a convert_fighting_arts() method for the Survivor base class
    2. Added a 'fighting_arts_version' attrib check (and convert method call) to models.survivors.Survivor.normalize() so that survivors are converted on init.
    3. update the Survivor class get_dragon_traits() method to consider Fighting Art handles, instead of names when doing its check
  5. Base class method for asset models Models.list_assets() now logs failures by default.
  6. Models.UserAsset.check_request_params() method now logs bad/insufficient requests when it bombs them out.
  7. Models.AssetCollection.set_pretty_types() now creates capitalized "pretty" type name by default. 
  8. Expansion asset dictionaries now have a 'flair' attribute, which contains their color and bgcolor (for display/UI purposes) and should help tamp down the emails about which expansion an asset belongs to.
  9. Keyed in "flair" colors for all expansions based on FA/Disorder cards.Will probably revise.
  10. Implemented and documented the new Survivor method/route, toggle_fighting_arts_level()
  11. Added the 'fighting_arts_levels' attribute to both the new() and baseline() methods of the Survivor class object, so it's part of the data model now.
  12. Survivor asset handle lists (e.g. 'fighting_arts', 'epithets', etc.) now sort on save.

No comments:

Post a Comment