That's about it for "new" features in this release, however. Think of this one as a "quality of life" release that mostly cleans up UI/UX elements, streamlines/normalizes some control elements, etc.
(The inspiration came from a couple of posts on /r/kingdomdeath where people were talking about UI and it kind of jogged my memory about how I said that I wanted to spruce-up the UI for the users to whom that sort of thing is more important.)
Beyond aesthetic/UX QoL concerns, release 2.81.1540 continues the optimization project.
As far as back-end/behind-the-scenes enhancements go, the big push towards a simplified/organized legacy webapp continues. Release 2.81.1540 is actually kind of a milestone in that regard, as it removes all Survivor and Settlement Sheet HTML from the html.py module in the legacy webapp, which is a goal I've been working towards for...probably over a year at this point.
Moving on to a recurring topic on this blog, I'm going to spend a few paragraphs talking about HTML render times (i.e. how long it takes for the the legacy webapp to create the HTML you need for your view) and the project I started back in January to reduce them.
In the aftermath of the May 19th release (2.77.1502) of the Manager, I expected render times on the 'new_settlement' view and the 'view_campaign' view to improve (i.e. decrease), but it looks like average HTML render times have not improved across the board and, in some cases, have actually gotten worse since the January 30 release (2.67.1287):
Back in January, all of these routes were averaging a half a second or more and, ultimately, the goal here is to have all of these averaging under half a second, so I am making some progress here, but I kind of feel like I'm hitting a wall.
Lately, in light of this and a few other annoyances I'm having with the legacy webapp, I'm feeling like the solution here is to do what the pros do and shoot the hostage, i.e. remove the webapp from the equation and have the whole front-end application be a single, unified JS (e.g. AngularJS 2) app. That way, the user downloads the whole thing at once, we incur an up-front download time penalty, and then performance is down to two factors, i.e. the client machine's ability to run the JS app and the API's ability to respond rapidly to it.
At any rate, that's where we're at in terms of performance optimization as of this release. Moving on.
Finally, I should mention that, in terms of API development, there is only one major item of note in this release. Release 2.81.1540 moves user avatar retrieval from the legacy webapp to the API, which should help performance (i.e. avatar load speeds) out quite a bit. I don't really have that code instrumented (i.e. so I can't quantify the improvement), but it should be noticeable.
(Because everything the API does is pretty much automatically WAY faster than anything the legacy/CGI app does, etc.)
Thanks for using the Manager!
Corrections and Fixes
- Addressed an order-of-operations bug that caused Innovation Deck lists to be incomplete. It's not totally resolved yet, however. -Neal M
- Fixed a JS bug where failing to change an email address on the Survivor Sheet could cause weird console messages and odd failures.
- The right-side nav bar no longer shows the loading lantern (forever) when viewing the New Settlement form/view.
- Addressed the Disorders selector margins so that they don't collide with Disorder "cards" on the Survivor Sheet.
- Fixed the centering on the "Create New Settlement" button at wide resolution.
- Fixed a CSS selector issue that caused the grey "creating new settlement" button to always appear on the New Settlement Form at wide resolution.
- Enhanced the user-proofing of the Survivor Sheet email field; styled it for invalid input (using :invalid). I also DRYed up and clarified the JS (in survivorSheet.js) and made it so that it reverts on an incomplete attempt to change, as well as a failed one.
- Deprecated a ton of legacy webapp HTML:
- removed the html.survivor class completely and migrated the Survivor Sheet to /templates/survivor_sheet.html
- corrected a bunch of incorrectly-terminated HTML entities in the Survivor Sheet template.
- removed/deprecated/made-redundant a bunch of html-rendering methods in html.settlement
- removed the html.settlement class completely and migrated the Settlement Sheet to /templates/settlement_sheet.html
- Added some UI/UX fades to the Survivor Sheet:
- "tags" now fade in/fade out (when removed).
- Survivor Sheet Fighting Arts, Disorders and AIs also now fade in/fade out (when removed).
- the drop-down/selectors for FArts and Disorders now fade in/fade out if we add or remove them to the DOM.
- Deprecated session.Session.render_user_asset_sheet() method.
- KD Collection management (on the Dashboard) is no longer Beta
- KD Collection options for settlements are no longer beta
- Styled the Dashboard Collection manager to look a little cleaner
- Styled the "Create New Settlement" button on the dashboard to look consistent with general KD styles we've implemented elsewhere.
- Campaign Summary survivor "quickview" modals got some enhancements:
- they fade in now
- they aren't inserted into the DOM until the survivor's button is clicked, which should help the user impression of the speed at which the page loads (especially for big pop settlements)
- Deprecated more vestigial/abandoned CSS selectors (about TK of them).
- Cleaned up the Survivor name blank/box/area on the Campaign Summary quickview; also normalized the width of the sex checkboxes at all three breakpoints.
- The unit test for checking vestigial/deprecated CSS selectors now has an ignore list, i.e. for ones we synthesize during interpolation, etc.
- Sidenav buttons have a hover effect now.
- Replaced Survivor Sheet and Campaign Summary avatar retrieval with API-based retrieval.
- Deprecated the get_image CGI script and all references to it in the HTML templates; replaced them with API calls
- Deprecated a bunch of vestigial code from assets.Survivor
- The legacy webapp no longer calls its normalize() method on survivors! They are totally managed by the API now!
- Deprecated the remove() methods for both settlements and Survivors from the legacy webapp.
- Added support for the 'debug' param to the models.settlements.Settlement.get_innovation_deck() method for on-demand (via API) print debugging to the logs.
- Removed deprecated endpoints (i.e. their 410 messageS)
- Added survivor avatar retrieval support:
- created /avatar/get/<oid> route
- created gridfs_files.py module for access to gridfs resources
- documented the new route