TiddlyWiki5 icon indicating copy to clipboard operation
TiddlyWiki5 copied to clipboard

[IDEA] I think, the Browser Local Storage plugin needs some love

Open pmario opened this issue 3 years ago • 5 comments

Second most important

  • [ ] When the user installs and / or activates the plugin we need to make clear, "What's going on"
  • [ ] The plugin should only allow to function after the user "acknowledged" a "I know and understand what's going on" info tiddler.
  • [ ] As long as the intro page isn't acknowledged, every tab of the plugin should show the "What's going on" Info page.
  • [ ] So if there is some future data loss, we can be sure, that it's not our fault.

Visbility

  • [ ] IMO it is important to have a visible indicator, which tiddlers are loaded from the local storage
  • [ ] I would like to see the diff, between the LS and the tiddler from the web
  • [ ] There is a button "Clear Browser Storage" - IMO there should be a button "Export Browser Storage" too
  • [ ] The "More" sidebar tab should get a new tab, that shows the $:/temp/BrowserStorage/Log as a list
    • [ ] Name: "Local Storage" .... This tab should come with the plugin
  • [ ] There should be the possibility to remove tiddlers from the store on a "per tiddler" basis
  • [ ] The "Save Wiki" indicator should have a different icon, to make it clear, that there is something different going on
    • [ ] May be a dropdown similar to the new node.js "cloud" icon

This list may be edited

First things first.

  • [x] ~~I think we have a possible data loss issue, if the plugin is used with tiddlyhost.com~~
    • [x] tiddlyhost uses a subdomain to differentiate between different single file wikis.
    • [x] IMO the local strage does not. .... BUT I'm not 100% sure

pmario avatar Jun 01 '21 15:06 pmario

The desire comes from this post: https://groups.google.com/g/tiddlywiki/c/tUeWm_B07DQ/m/wKW2Jpv0BgAJ

@Mario, I had already the autosave option on, but I would prefer something that saves every changes because sometimes I see that the contenent of my tiddler disappeared and considering that it is a precious work I want to be safe.

Reading this, the No.1 priority for the user is: Content safety on a "per keystroke" basis.

I think a combination of tiddlyhost and the local-storage plugin "done right" would allow the user to get what is described here.

But I still have my doubts that are expressed at: https://github.com/Jermolene/TiddlyWiki5/issues/3945

pmario avatar Jun 01 '21 16:06 pmario

I think we have a possible data loss issue, if the plugin is used with tiddlyhost.com

ping @simonbaird

twMat avatar Jun 01 '21 20:06 twMat

IMO it's not a problem with tiddlyhost. ... It's a problem, how TW core treats the local-storage code ...

pmario avatar Jun 01 '21 20:06 pmario

@twMat @simonbaird ... Did my testing. No problems ...

pmario avatar Jun 01 '21 20:06 pmario

One possibility to show some more browser-storage info from btheado.github.io/tw-browser-storage

  • https://btheado.github.io/tw-browser-storage/#%24%3A%2Fplugins%2Fbtheado%2FBrowserStorage

image


There are some good ideas at: $:/plugins/btheado/BrowserStorage/readme

This plugin contains opinionated configuration settings for the browser-storage plugin:

  • Configures the browser storage plugin to save more tiddlers than the default
  • Since the tiddlers are automatically saved to local storage, the SaverFilter is configured to leave the save icon inert
  • Automatically save open tiddlers between sessions (see $:/DefaultTiddlers)
  • Instructions on using the save button as a way to backup the wiki
  • Browse-able list of tiddlers which were loaded from storage and those which were saved to storage after load
  • Displays a notification message at startup telling how many tiddlers were loaded from browser storage

pmario avatar Jan 24 '24 13:01 pmario