From 220156edeed101ccda0fc16303234765a83d64ac Mon Sep 17 00:00:00 2001
From: Jdigio0213 <106447741+Jdigio0213@users.noreply.github.com>
Date: Fri, 30 Aug 2024 03:31:36 -0500
Subject: [PATCH 01/82] Signing CLA (#8565)
---
licenses/cla-individual.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md
index c05d5906f..a77287f1d 100644
--- a/licenses/cla-individual.md
+++ b/licenses/cla-individual.md
@@ -585,3 +585,5 @@ Michael McDermott, @michaeljmcd, 2024-07-09
@webplusai, 2024/07/23
Val Packett, @valpackett, 2024/07/26
+
+@JDIGIO0213, 2024/08/29
\ No newline at end of file
From 5094096a87b6ee1f3fcaba31e5f1bf0290854891 Mon Sep 17 00:00:00 2001
From: btheado
<
<
<
<$text text=<>/>
- <% if [{{Draft of 'New Tiddler'||output-template}}++ +title: Actions + +<$navigator story="$:/StoryList"> + +<$action-sendmessage $message="tm-new-tiddler" + text="some text" + z-field="a" + tags="test [[with spaces]]" +/> + +$navigator> + ++ +title: output-template + + +<$fields exclude='text bag created modified' template='$name$: $value$ +'>$fields> +<$view field="text" format="text" /> ++ +title: ExpectedResult + +
draft.of: New Tiddler +draft.title: New Tiddler +tags: test [[with spaces]] +title: Draft of 'New Tiddler' +z-field: a + +some text\ No newline at end of file diff --git a/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/default.tid b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/default.tid new file mode 100644 index 000000000..cba16f261 --- /dev/null +++ b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/default.tid @@ -0,0 +1,39 @@ +title: Message/tm-new-tiddler/default +description: tm-new-tiddler message will create a new draft tiddler +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +
{{Draft of 'New Tiddler'||output-template}}++ +title: Actions + +<$navigator story="$:/StoryList"> + +New in TW v5.3.6 + Create a draft tiddler which should have __no__ tags field + +<$action-sendmessage $message="tm-new-tiddler" + text="some text" + z-field="a" +/> + +$navigator> + ++ +title: output-template + + +<$fields exclude='text bag created modified' template='$name$: $value$ +'>$fields> +<$view field="text" format="text" /> ++ +title: ExpectedResult + +
draft.of: New Tiddler +draft.title: New Tiddler +title: Draft of 'New Tiddler' +z-field: a + +some text\ No newline at end of file diff --git a/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-from-template-with-tag.tid b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-from-template-with-tag.tid new file mode 100644 index 000000000..aceeffdde --- /dev/null +++ b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-from-template-with-tag.tid @@ -0,0 +1,44 @@ +title: Message/tm-new-tiddler/new-from-template-with-tag +description: tm-new-tiddler create a draft from a template. Template has an empty tags field +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +
{{ Draft of 'new-tiddler-template 1'||output-template}}++ +title: Actions + +<$navigator story="$:/StoryList"> + +<$action-sendmessage $message="tm-new-tiddler" + $param="new-tiddler-template" + text="some text" + z-field="a" +/> + +$navigator> + ++ +title: new-tiddler-template +asdf: asdf +tags: + ++ +title: output-template + + +<$fields exclude='text bag created modified' template='$name$: $value$ +'>$fields> +<$view field="text" format="text" /> ++ +title: ExpectedResult + +
asdf: asdf +draft.of: new-tiddler-template 1 +draft.title: new-tiddler-template 1 +tags: +title: Draft of 'new-tiddler-template 1' +z-field: a + +some text\ No newline at end of file diff --git a/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-from-template-without-tag.tid b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-from-template-without-tag.tid new file mode 100644 index 000000000..dfb815f09 --- /dev/null +++ b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-from-template-without-tag.tid @@ -0,0 +1,65 @@ +title: Message/tm-new-tiddler/new-from-template-without-tag +description: tm-new-tiddler create 2 drafts from a template. Template has no tags field +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +
{{ Draft of 'new-tiddler-template 1'||output-template}}+
{{ Draft of 'new-tiddler-template 2'||output-template}}++ +title: Actions + +<$navigator story="$:/StoryList"> + +New in TW v5.3.6 + Create a new tiddler from a template, which has no tags field + So draft should also have __no__ tags field + +<$action-sendmessage $message="tm-new-tiddler" + $param="new-tiddler-template" + text="some text" + z-field="a" +/> + +Create a new tiddler from a template, which has no tag field +AND __add__ a tags field with the command below + +<$action-sendmessage $message="tm-new-tiddler" + $param="new-tiddler-template" + text="some text" + z-field="a" + tag="" +/> + +$navigator> + ++ +title: new-tiddler-template +asdf: asdf + ++ +title: output-template + + +<$fields exclude='text bag created modified' template='$name$: $value$ +'>$fields> +<$view field="text" format="text" /> ++ +title: ExpectedResult + +
asdf: asdf +draft.of: new-tiddler-template 1 +draft.title: new-tiddler-template 1 +title: Draft of 'new-tiddler-template 1' +z-field: a + +some text+
asdf: asdf +draft.of: new-tiddler-template 2 +draft.title: new-tiddler-template 2 +tag: +title: Draft of 'new-tiddler-template 2' +z-field: a + +some text\ No newline at end of file diff --git a/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-with-tag.tid b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-with-tag.tid new file mode 100644 index 000000000..9b52e7de1 --- /dev/null +++ b/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/new-with-tag.tid @@ -0,0 +1,40 @@ +title: Message/tm-new-tiddler/new-with-tag +description: tm-new-tiddler message creates a draft tiddler with an empty tag field +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +
{{Draft of 'New Tiddler'||output-template}}++ +title: Actions + +<$navigator story="$:/StoryList"> + +Create a draft tiddler which __should have a tags field__ + +<$action-sendmessage $message="tm-new-tiddler" + text="some text" + z-field="a" + tag="" +/> + +$navigator> + ++ +title: output-template + + +<$fields exclude='text bag created modified' template='$name$: $value$ +'>$fields> +<$view field="text" format="text" /> ++ +title: ExpectedResult + +
draft.of: New Tiddler +draft.title: New Tiddler +tag: +title: Draft of 'New Tiddler' +z-field: a + +some text\ No newline at end of file From 7f2ab57f78e51bddba2193fe2978f96f98deda17 Mon Sep 17 00:00:00 2001 From: Simon Baird