whitebophir icon indicating copy to clipboard operation
whitebophir copied to clipboard

Board navigation

Open slfhstr opened this issue 4 years ago • 4 comments

Great app ! But :

  • how to save / exit a board ? seems only option is to close browser window
  • how to open a previous board ? seems only way is to reload url

I think I can cope with this. but from user perspective, closing the window seems like throwing their work.

And re-opening would be nicer with a menu of boards. Or is this a user authentication issue ?

slfhstr avatar Feb 12 '21 09:02 slfhstr

Hello !

how to save / exit a board ? seems only option is to close browser window

Yes, the board is always saved, every change is immediately persisted. You can close it when you want and you won't lose anything.

how to open a previous board ? seems only way is to reload url

You can also type the board name in the text field on the main page.

image

And re-opening would be nicer with a menu of boards. Or is this a user authentication issue ?

This could be implemented without authentication, by storing recent board names in the browser's localStorage, for instance. Pull request welcome !

lovasoa avatar Feb 14 '21 12:02 lovasoa

Hello, @lovasoa. I'd like to work on this issue.

I figured I could save board names to localStorage in board.js. But since localStorage is not available on the server, I can’t think of a way to pass the data to the home page. Any ideas?

What if instead of using localStorage, I save the most recent 20 board names in a file called recent-boards.json, which will be stored in the server-data directory?

nneka-nu avatar Mar 29 '21 03:03 nneka-nu

Hello !

I'd like to work on this issue.

Great to hear !

I figured I could save board names to localStorage in board.js. But since localStorage is not available on the server, I can’t think of a way to pass the data to the home page. Any ideas?

Yes, the personal board history should not be saved on the server. It could be saved in localStorage, and rendered dynamically on the client-side. You will have to add a script to the index page to render the list.

lovasoa avatar Mar 29 '21 08:03 lovasoa

Ah, of course! Thank you!

nneka-nu avatar Mar 29 '21 21:03 nneka-nu