Starting to put together the server side of notes, and it looks like I'm going to use "workspaces" as the holder for notes.
All notes must be in a workspace.
The index page shows a list of known workspaces (stored in a table in the database) and create/delete buttons.
A "My first workspace" is created if the list of workspaces is empty. It's should be created from a template (but with unique ids for notes).
User can bookmark a workspace, and/or set one as default.
Workspaces have 'create workspace ' buttons.
Nothing is saved to the server until the user opts in.
Workspace commands:
- Create(name) => workspace-created(name, id)
- Load(id) => workspace-loaded(name, note[])
- CreateNote(id, note) => note-created(id, note)
- UpdateNote(id, note) => note-updated(id, note)
- DeleteNote(id, note) => note-deleted(id, note)
- Delete(id) => workspace-deleted(name, id)