buckbaskin / notary

Evernote clone based on a Flask/Python back end
1 stars 0 forks source link

Redo the notes cache for client side #24

Open buckbaskin opened 8 years ago

buckbaskin commented 8 years ago

It needs to be redone to match up better to what the server side is doing.

buckbaskin commented 8 years ago

Every time a request is made, it pushes the returned list of notes onto the top of the pile, and any extra notes at the bottom are dropped off (start with a stack? queue? list? of 100?). The displayed notes are the notes in that list filtered by the current active filter and sort. The default filter is just to remove duplicates, but could filter by tags, notebook, etc. on the client side eventually.

buckbaskin commented 8 years ago

Steps:

(edit: forgot to add sorting to the management method)

buckbaskin commented 8 years ago

An interesting method to go with this would be one that takes a set and filters the existing notes queue down to the notes within that set, and applies the current filter. This can then be transitioned into the view model to allow it to only display notes that are in the active set, without ruining the notes queue.

buckbaskin commented 8 years ago

This is starting to sound like a project that would go well with the work planned for v0.4.0, where I implement notebooks and else. I'm going to move this to v0.4.0