Tooltipster now selects #tools a.tip instead of #tools a
Users now have a badges field
Badges on the users admin
First iteration of badges icons
Badges and popup less
Badges api resource
Caveats
There's a few things that have to be looked into from this.
User.badges - Users have a badges field that represent the badges they can edit. We do this instead of Django's permissions because we need per instance permissions. Research if there is a better way to do this.
The unittests for the Badges resource are failing because I can't get the user sessions to work correctly with the testing client.
The way we do pop ups for adding and removing badges is really hacky. This will be refactored once I read the source code for the Story viewer router.
storybase.API_ROOT is now defined in the story viewer too. Before it was only defined in the story builder. Does this break any invariants?
Changes
LoggedInAuthorization.user_valid
was refactored into it's own class,UserAuthorization.user_valid
. The functionality was useful elsewhere.BadgeAuthorization
badges
field.#tools a.tip
instead of#tools a
badges
fieldCaveats
There's a few things that have to be looked into from this.
User.badges
- Users have a badges field that represent the badges they can edit. We do this instead of Django's permissions because we need per instance permissions. Research if there is a better way to do this.storybase.API_ROOT
is now defined in the story viewer too. Before it was only defined in the story builder. Does this break any invariants?