« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/data/things/album.js8
-rw-r--r--src/data/things/flash.js1
-rw-r--r--src/data/things/track.js5
3 files changed, 14 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index ae5226ba..a0021946 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -142,6 +142,7 @@ export class Album extends Thing {
 
     artistContribs: contributionList({
       date: 'date',
+      artistProperty: input.value('albumArtistContributions'),
     }),
 
     coverArtistContribs: [
@@ -151,6 +152,7 @@ export class Album extends Thing {
 
       contributionList({
         date: '#coverArtDate',
+        artistProperty: input.value('albumCoverArtistContributions'),
       }),
     ],
 
@@ -158,6 +160,10 @@ export class Album extends Thing {
       // May be null, indicating cover art was added for tracks on the date
       // each track specifies, or else the track's own release date.
       date: 'trackArtDate',
+
+      // This is the "correct" value, but it gets overwritten - with the same
+      // value - regardless.
+      artistProperty: input.value('trackCoverArtistContributions'),
     }),
 
     wallpaperArtistContribs: [
@@ -167,6 +173,7 @@ export class Album extends Thing {
 
       contributionList({
         date: '#coverArtDate',
+        artistProperty: input.value('albumWallpaperArtistContributions'),
       }),
     ],
 
@@ -177,6 +184,7 @@ export class Album extends Thing {
 
       contributionList({
         date: '#coverArtDate',
+        artistProperty: input.value('albumBannerArtistContributions'),
       }),
     ],
 
diff --git a/src/data/things/flash.js b/src/data/things/flash.js
index 7d37ed81..89e59fe7 100644
--- a/src/data/things/flash.js
+++ b/src/data/things/flash.js
@@ -100,6 +100,7 @@ export class Flash extends Thing {
 
     contributorContribs: contributionList({
       date: 'date',
+      artistProperty: input.value('flashContributorContributions'),
     }),
 
     featuredTracks: referenceList({
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 28a784f5..4aaf364c 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -203,6 +203,7 @@ export class Track extends Thing {
       withResolvedContribs({
         from: input.updateValue({validate: isContributionList}),
         thingProperty: input.thisProperty(),
+        artistProperty: input.value('trackArtistContributions'),
         date: '#date',
       }).outputs({
         '#resolvedContribs': '#artistContribs',
@@ -219,6 +220,7 @@ export class Track extends Thing {
 
       withRecontextualizedContributionList({
         list: '#album.artistContribs',
+        artistProperty: input.value('trackArtistContributions'),
       }),
 
       withRedatedContributionList({
@@ -236,6 +238,7 @@ export class Track extends Thing {
 
       contributionList({
         date: '#date',
+        artistProperty: input.value('trackContributorContributions'),
       }),
     ],
 
@@ -254,6 +257,7 @@ export class Track extends Thing {
       withResolvedContribs({
         from: input.updateValue({validate: isContributionList}),
         thingProperty: input.thisProperty(),
+        artistProperty: input.value('trackCoverArtistContributions'),
         date: '#trackArtDate',
       }).outputs({
         '#resolvedContribs': '#coverArtistContribs',
@@ -270,6 +274,7 @@ export class Track extends Thing {
 
       withRecontextualizedContributionList({
         list: '#album.trackCoverArtistContribs',
+        artistProperty: input.value('trackCoverArtistContributions'),
       }),
 
       withRedatedContributionList({