[Story] Map Library
User Story
As a DM, I can add a new map to my map library.
Details
This story introduces another library window. This window will be used to manage DM and Player maps. Instead of the simple file interface for the character library displays, this one should reference campaign map objects which inturn reference an image file for display in the list and as the base image for the map.
In order to do this, we will need to add a context to the file upload to distinguish between character images and maps images. This will be required on the API level and propagated down to the server implementation.
We will also need APIs to create map objects in the campaign.
On the UI side of things, we'll have a window titled Map Library. It will have a scrollable selectable list of maps displayed by their image. There will be an Add Button on the bottom
Clicking the add button opens a dialog box with the map properties, but this will only have an image upload option at this stage.
Steps
Frontend:
-
Window/list of maps -
Button/interface to add map -
Concept of "choosing" a map (for editing or otherwise) -
(Optional) Button/interface to delete map
Backend:
-
API to return all maps or scenes -
API to add a map or scene -
(Optional) API to delete a map or scene -
Create a InMemory datastore for maps -
Create a MongoDB datastore for maps
Acceptance Criteria
-
User can add a map -
User sees all maps available -
When a user goes to a new campaign he sees all of his available maps
Data concerns
This may use the same API as the character images. In this case we will need to differentiate the two with some kind of tag or path.
Security concerns
Intentionally ignored