|Slenderman work in progress.|
Most noticeably, the mechanism by which individual survivors are "favorited" has been enhanced so that multiple users can mark a survivor as one of their favorites. Since the beginning of the feature, once a survivor was marked as a favorite, every player saw it as a favorite. Now, individual users get a customized display that only shows them their own favorites.
Another thing that some users might notice is that API failures in the legacy webapp (e.g. when you try to save or update something and it fails) now produce a full-screen, modal error that has to be clicked through. These API modal errors contain the API's response as well as some specific information about the route, assets, etc. that were in play when the error occurred.
Hopefully this helps with error-reporting.
Otherwise, there isn't too much for the user experience in 2.30.670. At some point in the next release (or maybe the next one after that), I'm going to re-do the dashboard and finish the Survivor Sheet upgrade, i.e. so that none of the controls on the sheet require a reload/refresh.
Thanks for using the Manager!
|Slenderman work in progress (rear).|
Corrections and Fixes
- The API's /settlement/get_event_log/<oid> route was broken/non-existent (the action was just 'event_log', and that was hard-coded in the API and the legacy webapp), so I fixed it in both the API and the webapp.
- Survivor Sheet 'Survival' input posts back to the API on blur, rather than on change (which caused some weird behavior).
- Deprecated some vestigial methods from Assets.py in the legacy webapp:
- Re-implemented "favorite" functionality in the legacy webapp:
- Users only see their own favorites on the Campaign Summary view now
- Revised the "favorite" toggle on the Survivor Sheet to use AngularJS controls
- Re-wrote the sidenav/burger to list favorites using AngularJS
- Added a new sideNav controller element to kdmManager.js
- Added countFavorites() method to the sideNav controller that basically delivers an on-demand count of the number of survivors the user has favorited in the current settlement
- Added a favoriteFilter() filter-type method (but not a filter, just a method that works like a filter) to the sideNav controller that can be used by other methods or by ngRepeat to determine whether a survivor is a user's favorite.
- Re-did the toggleFavorite() function in survivorSheet.js so that it user the new API endpoints to set favorite status
- Moved the ngApp and rootController hooks from the 'container' element in the framework HTML to the 'body', thus enlarging the scope of the main JS controller for the webapp
- Created a new JS feedback mechanism for API errors:
- added showAPIerrorModal() and hideAPIerrorModal() methods to kdmManager.js
- update the postJSONtoAPI() method in the rootController scope to display API errors using the new error modal
- Styled the new modal for all three breakpoints to cover the user's controls and require a tap/click to proceed
- Enhanced survivorSheet.js to use the new API endpoints for updating survivor email addresses and cleaned up the AngularJS HTML/JS to match the recent style of both.
- The /authorization/refresh route now returns a vanilla 422 if you send a GET request at it
- The InvalidUsage decorator and pseudo-route now return a single error message (supplied by the method that calls IU when it fails) and code. Should help with the application-side troubleshooting. -Khoa
- The Admin Panel now tries to copy user OID to your clipboard when you click on it to close it (rather than when you open it). Should be less obnoxious this way.
- Active users on the Admin Panel are now a slightly brighter yellow for faster visual reference.
- Cleaned up and enhanced the docs:
- Added a CORS warning about how all private routes accept OPTIONS requests to the private routes section header
- Updated the accepted methods for the /Authorization endpoints
- Clarified how /user/get/<oid> works. -Caleb
- Made the /new/survivor route an internal anchor (for better/faster reference)
- Added the latency/processing time warning to the /settlement/get/<oid> documentation. -Caleb
- Documented the new "lightweight" settlement GET endpoints: /settlement/get_game_assets/<oid> and /settlement/get_sheet/<oid>
- Enhanced the survivor baseline/data model table to include a new column of related methods; moved the whole table to its own section at the top of the survivor endpoints
- Documented the new /survivor/update_bleeding_tokens/<oid> method
- Documented the new favorite-related API routes /survivor/add_favorite/<oid> and /survivor/rm_favorite/<oid>
- Hovering over a row on the survivor data model table highlights it
- The models.settlements.Settlement.serialize() method now supports a 'return_type' kwarg that facilitates the get_game_assets and get_sheet routes.
- models.settlements.Settlement.request_response() now does all of its own responses and no longer uses the vanilla Models.return_json() method (which is going away, because explicit is better than implicit).
- The models.survivors.Survivor class has been enhanced to support bleeding token management:
- The 'bleeding_tokens' and 'max_bleeding_tokens' attributes are added during calls to the new() method.
- Created an update_bleeding_tokens() method for the Survivor class and added request_response() support for it. -Caleb
- The baseline() call checks for the 'bleeding_tokens' and 'max_bleeding_tokens' attributes and adds them if they are absent.
- The models.survivors.Survivor class now handles favorite management:
- Added a new convert_favorite() method to the class
- The Survivor.normalize() call checks the 'favorites_version' meta attribute and can call the convert_favorite() method if necessary.
- Created add_favorite() and rm_favorite() methods and added request_response() support for both
- Created a set_email() method in the Survivor class and added request_response() support for it.
- Removed support for routes/routing from the API documentation AngularJS app.
- The Settlement's survivor_attribute_milestones now ship with an additional attribute, 'event' that explains where in the game_assets.events to look them up. -Caleb
- Keyed in a ui_prompts type event for 'Retired'.
- Added 'max_bleeding_tokens' attrib to "Unconscious Fighter" Fighting Art for automatic max updates.
- Added self.abs_value_attribs list to the initialized Survivor object (so far, the only one it includes is the new 'max_bleeding_tokens' attribute).
- Updated models.survivors.Survivor.add_game_asset() to include processing for self.abs_value_attribs attributes when adding or removing.
- Created a new Survivor class method called default_attribute() that basically takes a Survivor Sheet attrib and, using info in assets.survivors.py, defaults it back to its starting value.