New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make import listing more configurable #7308
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@yaisog .. You may have a look at it. |
I like the configurability via the tag, as I mentioned in the other PR. This makes it modular and configurable concerning the information displayed. Could you make it so that the original message goes into the PS: You could also add |
Be aware, that the default message is translatable at the moment. .. So if you can reuse translated text you should do that. |
Yes, I noticed. While the verbal indication as part of the message might be useful, it would add two new language strings... 🤔 |
I have created an alternative overwrite message for those who can live with a little more verbosity than in Mario's version: There are a number of checks to only show relevant information (and hide metadata which is identical for both tiddlers), and a separate message when tiddlers seem to be identical ("seem" because I can only check the Personally, I find it helpful to add an extra highlight to critical tiddlers, i.e. those cases where something bad is likely to happen should the user just click "Import" without thinking twice. The definition tiddlers are here: I am by no means suggesting that these should become part of the core or this PR. It is simply a demonstration of how this PR could be leveraged to make the import table a little more useful (and which would make a nice plugin). PS: In a more code-polished version, the style declarations would go into their own tiddler, of course. The way it is now they are declared anew for each conflict line of the table. |
That was the reason for this PR. It should be possible now to make more experiments, without the need to directly include more verbose info into the core. So users who want more info can use plugins. In the past we had some user feedback that the import info is overwhelming. That's way we did reduce it to the bare minimum. This PR should make it more flexible again. .. And it's the users choice if they want to see more info. |
@Jermolene .. I would like to have this one in v5.2.6 .. Could you have a look? |
It would be worth exploring an approach that allows use of the full table width as the preview mechanism does, to ensure a viable approach for smaller screen sizes. In fact, it would be worth exploring the kinds of messages shown in the examples as previews, with perhaps the facility to automatically show the preview for certain types of tiddlers/conflicts. |
Hi @pmario I'm inclined to leave this for the next release. I understand the underlying need, but I think I'd rather collect together all the outstanding import-related requests and make a plan. |
@Jermolene Please review again. Quote from the OP
TW Default Import Custom Import Initial If import-listing-verbose.JSON is imported and the test-import.JSON is imported the import dialogue will look like this: Custom Import - existing files If all tiddlers are imported already and imported again |
Bump in the light of: Planning for the release of v5.3.0 #7279 |
@Jermolene Bump for review. It does not change the existing Import dialogue. It adds the possibility for plugin authors to modify it. Description and ZIP files needed for test testing are at: #7308 (comment) |
Hi @pmario, have you considered using the already extensible preview mechanism for the same purpose? For example a preview could be created that compares the metadata such as the modified date of tiddlers that would be overwritten by the import. Not only is that an existing mechanism that could be reused, but it would also allow for the entire width of the table to be used to display that information rather than trying to fit it into that small last column. The import mechanism is overdue for a complete rewrite in the near future and I would be hesitant to add further complexity and backwards compatibility constraints to it at this point, which might curtail our options for the rewrite. |
You are right. I'll rewrite it as a plugin. So close. |
This PR is an alternative approach to closed PR #7306
It does 2 things.
$:/tags/ImportOverwrite
$:/core/ui/ImportListing/overwrite/default-text
So users have the ability to extend the import message area with their own info by tagging their template with new system-tag.
This attachment contains a sample configuration to play with. This info is not part of the PR.
import-listing-verbose.zip
There should be no visual difference between this PR and the v5.2.5
You need to import the JSON above to see a difference.
There is an import payload attachment, which creates a more realistic import dialogue with "state", "temp" and "blocked" tiddlers.
test-import.zip
@Jermolene if it can be merged, I'll add some docs about the new system-tag and how to use the new possibilities