« get me outta code hell

data: apply contribution dates when resolving - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-properties
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-07 12:19:19 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:03 -0300
commit7aea624c3e101c30e02e5ae08679ec243764632f (patch)
treef47195de41b9237ccd6f5270a0d10645bf3273f8 /src/data/composite/wiki-properties
parente0d3028aecb85f64f1e9de713d4e66caee0a0515 (diff)
data: apply contribution dates when resolving
Diffstat (limited to 'src/data/composite/wiki-properties')
-rw-r--r--src/data/composite/wiki-properties/contributionList.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/data/composite/wiki-properties/contributionList.js b/src/data/composite/wiki-properties/contributionList.js
index 001aed17..a0e6e52b 100644
--- a/src/data/composite/wiki-properties/contributionList.js
+++ b/src/data/composite/wiki-properties/contributionList.js
@@ -15,7 +15,7 @@
 //
 
 import {input, templateCompositeFrom} from '#composite';
-import {isContributionList} from '#validators';
+import {isContributionList, isDate} from '#validators';
 
 import {exposeConstant, exposeDependencyOrContinue} from '#composite/control-flow';
 import {withResolvedContribs} from '#composite/wiki-data';
@@ -25,12 +25,20 @@ export default templateCompositeFrom({
 
   compose: false,
 
+  inputs: {
+    date: input({
+      validate: isDate,
+      acceptsNull: true,
+    }),
+  },
+
   update: {validate: isContributionList},
 
   steps: () => [
     withResolvedContribs({
       from: input.updateValue(),
       thingProperty: input.thisProperty(),
+      date: input('date'),
     }),
 
     exposeDependencyOrContinue({