For anyone who wants to try it so far, drag and drop the following into Saq’s demo page.
Hmm. If this is acceptable, I guess some additional info should be added to notes.
2021-10-28A-Push_PR.json (4.2 KB)
For anyone who wants to try it so far, drag and drop the following into Saq’s demo page.
Hmm. If this is acceptable, I guess some additional info should be added to notes.
2021-10-28A-Push_PR.json (4.2 KB)
Something strange is going on.
Since I don’t know which path I did select I basically have to start from scratch
As a user I’d expect:
Just some thoughts.
Clicking the button was a commitment to the path. Presumably people will make a conscious choice. But I see your point.
The final “choice” could be moved to the end, next to the PR button.
But the reason you have to make a choice at some point is because it’s using the original paths to determine which items do not have an assigned path. Once you add the selected path (either by individual button or a final choice button), your tiddler becomes just like any other tiddler and so disappears from the listing. The PR button needs to know that OriginalFilePaths is OK before processing, so that’s why there needs to be a “commitment” at some point.
I suppose the “Confirm” button could turn into a “Reset” button, so you could undo your OFP changes, make new selections, etc. Since the selections are maintained in temporary tiddlers, your last path settings should still be there.
Maybe wait and see if there are any other opinions about interface, before spending more hours working on it.
Hi @Mark_S, found the opportunity to take a quick look. Thank you for working on this.
I think this is a good start. Some quick thoughts on potential UI improvements:
Am I correct in thinking that these will require us to jettison the current pipe-based table in favor of an HTML table? Like I don’t think we can provide sizes with the pipe table and think that it’s not possible to wrap a piped row with list/reveal?
Thanks!
@Mark_S I think you’re right, an HTML table would be the way to go about it.
A wikitext table could work for the column widths using a CSS selector like td:first-child
but the conditional display for the bottom row would still necessitate HTML.
Do you have an example or a way of recreating this effect? When I load up PR Message, it eventually pushes the box down, but the column size stays the same. The GH token link seems to be locking column 1 down. Of course, we could make it a shorter link if people needed more space. But at least on my desktop there seems to be oceans of space.
BTW, to me it’s not ugly – it’s distraction free
One way to trigger it is to try typing a title into the “Tiddlers to include” textarea. The columns resize and it is very jarring. I think there is enough space, rather that the column sizes need to stay constant.
The drag an drop don’t porpose to import anything but to save something.
I have difficulties to figure out what you wants to achieve. From my user point of view, that of a user that want to fix something in a a tiddler of the documentation, the proper way would be:
So far, this is not that yet but I don’t know if that’s what you want to achieve. I’m interested because I have a lot of such PR to propose.
note: step 4 may or may not alter the actual content of the tiddler. it could offer a preview, ask for confirmation and then only show the PR form (without modifying the tiddler – that’s what the PR is for).
The imagined workflow is like:
Only tested once. But that’s enough for today. It turns out that I was able to use piped tables by using dynamic CSS. So the JSON has 3 tiddlers now. The button next to the path selection is gone. The PR submit updates OriginalFilePaths – so after that your selection is gone. Oh. Sorry. There’s an anomalous word “yes” at the top of the PR form. Just ignore for now. I don’t want to risk breaking the form by some last minute change.
As before, open Saq’s demo page. Drag and drop the attached.
2021-10-28B-Push_PR.json (6.1 KB)
You’ve posted more than 22% of the replies here, is there anyone else you would like to hear from?
Dang. I was aiming for 42.
That looks pretty good @Mark_S ! Good to know I am not the only one that runs away from HTML tables
The only remaining quibble is that when you start typing a new tiddler title into the “Tiddlers to include” textarea, after the first character the field loses focus. A quick peek at the code suggests we just need to move those two $wikify calls closer to where they are actually needed and not wrap them around the entire table.
This might be a preference thing, but maybe the first column can be 200px instead of 100px?
Think it just needs a “tag in a random user” button now.
Please use em to specify the max-width for the first column and use a min width, so the first 4 params fit into the first column without a break. Atm on my laptop screen the table looks ugly at every browser zoom level
OK, I’ve done the test. Well done job.
I have a few suggestion for UI improve:
I’m very keen to see this mechanism enabled on the real thing!
A few tweaks. Set column one per em setting. Moved wikify’s closer to targets.
If anything doesn’t look right on your screen, please take a screenshot. Needless to say, everything looks fine on the two screens where I test.
2021-10-29A-Push_PR.json (6.1 KB)
@Mark_S in terms of UI I think this resolves all immediate niggles and issues and feels usable.
It does seem that the path isn’t quite right when using the tiddlers (standard)
option for new tiddlers. It results in paths like:
editions/tw5.com/tiddlers/tiddlers/Notes 1.tid
when
editions/tw5.com/tiddlers/Notes 1.tid
is expected, see this PR.
Once that is resolved I’ll update the repo with your changes. Thank you for working on this.
That looks good! See new test by saqimtiaz · Pull Request #36 · saqimtiaz/TiddlyWiki5 · GitHub
I will add this to the git repo (which will mean it goes live on the demo) as soon as I get the chance this weekend.
I have added @Mark_S’s changes to the repo and the demo should now be updated with them.
Thank you Mark!
To make a real PR against the main TW repo, change the text of use the select dropdown in the table to choose “official TW repo”.$:/config/sq/makepr/repoOwner
to jermolene
When I attempted to submit these items in one batch:
[[ActionCreateTiddlerWidget Example]] [[ActionCreateTiddlerWidget Example 2]] [[ActionCreateTiddlerWidget Example 3]] [[ActionCreateTiddlerWidget Example 4]] [["muritest" by Simon Huber] [["TiddlyServer" by Matt Lauber]] [["Noteself" by Danielo Rodríguez]] [["Encrypt single tiddler plugin" by Danielo Rodriguez]] [["Dynamic Tables" by Jed Carty]]
The form omitted to include two of them: “muritest”, and “TiddlyServer”.