« get me outta code hell

checks: reportContentTextErrors: check artworks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-05-26 17:49:48 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-05-28 16:21:12 -0300
commit6833410ddceee43d4b24767c99e9dab7011daf6d (patch)
tree1828f9837209e5826178c1dec2d2a08f8ed0132a /src
parentfab6755b7c5e27bfb23924cbd0105c96e092ec39 (diff)
checks: reportContentTextErrors: check artworks
we could just check artworkData but it's probably nicer
summaries if we check 'em as a sub-shape
Diffstat (limited to 'src')
-rw-r--r--src/data/checks.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index 4097115f..afd2a04c 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -553,6 +553,11 @@ export function reportContentTextErrors(wikiData, {
     description: 'description',
   };
 
+  const artworkShape = {
+    source: 'artwork source',
+    originDetails: 'artwork origin details',
+  };
+
   const commentaryShape = {
     body: 'commentary body',
     artistText: 'commentary artist text',
@@ -570,6 +575,7 @@ export function reportContentTextErrors(wikiData, {
       additionalFiles: additionalFileShape,
       commentary: commentaryShape,
       creditingSources: commentaryShape,
+      coverArtworks: artworkShape,
     }],
 
     ['artTagData', {
@@ -583,6 +589,7 @@ export function reportContentTextErrors(wikiData, {
     ['flashData', {
       commentary: commentaryShape,
       creditingSources: commentaryShape,
+      coverArtwork: artworkShape,
     }],
 
     ['flashActData', {
@@ -617,6 +624,7 @@ export function reportContentTextErrors(wikiData, {
       lyrics: lyricsShape,
       midiProjectFiles: additionalFileShape,
       sheetMusicFiles: additionalFileShape,
+      trackArtworks: artworkShape,
     }],
 
     ['wikiInfo', {