1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 01:33:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/mechanisms/UpgradeMechanism.tid
2014-07-14 14:53:27 +01:00

38 lines
1.6 KiB
Plaintext

title: UpgradeMechanism
modified: 20140711090154150
created: 20140711090154150
tags: mechanism
# Open upgrade.html
# Includes a data tiddler called `$:/UpgradeLibrary` that contains the latest compatible versions of all plugins in the library
# Drag in old wiki file
# Place tiddlers into a data tiddler `$:/Import` that is typed as a "pending import"
# Kick off import processing for each tiddler
## Give each "upgrader" module a chance to inspect the incoming tiddlers
## Upgrader modules can trigger actions for each tiddler:
##* Display a warning message
##* Don't import
##* Replace with another tiddler from the upgrade library
##* Disable incompatible plugins
# Display the newly created pending import tiddler through a new view template segment
## Displays the payload tiddlers as a list of titles and checkboxes, with a dropdown showing the full details of the tiddler
## Perhaps we also suppress the usual JSON display for data tiddlers behind a reveal widget
# The user can adjust the selection checkboxes
# Clicking "done" performs the following actions:
## Unpack the selected tiddlers from the pending import tiddler
## Delete the pending import tiddler
## Delete the upgrade library tiddler
##> Or we could just exclude those tiddlers from the subsequent save operation
! ToDo
* ~~Add upgrade plugin containing instructions and one-shot UI~~
* Grouping plugins
* Incoming tiddler preview
* Better display text for plugins
* ~~Suppressing $:/UpgradeLibrary and upgrade plugin from save~~
* Finish UpgradeMechanism docs
* ~~Checkboxes~~
* ~~Visual difference for suppressed tiddlers~~
* ~~Translation~~