From d4ae99a26b3fe8e60f018e1f3c222903c875e63a Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 15 Mar 2021 17:46:05 -0400 Subject: [PATCH] updated TODO list, and UX --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4eb25cf..ebf4ee7 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ On the top-right are: - Bin ID - "New Bin..." button +- "List of Bins" button (if the user is signed-in) The main area is simply a flexbox list of Notes. @@ -26,10 +27,18 @@ Each note contains: The root page creates a new bin, and sets the browser's `location` accordingly. -Clicking "New Note..." clears the search and sort, so the new note comes out first in the list. +The "search and sort" only occurs when the search term or sort order is changed. So, clicking "New Note..." will safely make the new note come out first in the list. + +The user starts-out as anonymous, so his bin id must be saved to access the bin again. + +The user may type-in his username/password to sign-in; in which case a list of his bins can be opened. Note that since the user is signed-in, his bins may have a human-readable id in addition to a regular unique id, since it only has to be local to the user, not globally like anonymous bins. ## TODO -- provide handlers for events -- get/set state from/to server -- add paging \ No newline at end of file +- prepend "new note" to notes list, not append +- focus new note upon creation (surprisingly hard to do "the right way") +- optional user sign-in +- create new bin +- open existing bin using browser `location` +- add pagination +- search term highlighting in result note text \ No newline at end of file