Third report of a blank card, and the root cause was never a missing field — it was two code paths producing "the same" object. build-field-cards.mjs copied groupAt()'s 39 fields by hand and missed door43, which exists only in that normalizer, so the sheet's `!selectedGroup.door43.length` threw on undefined. I fixed a value, then a timing, then would have added door43 and waited for the fourth. The shard now ships the RAW INPUTS the map itself holds — the pin row, the whole code record, the country name and the two bridge records — and the leaf's groupFrom() normalizes both paths. groupAt(i) is a three-line wrapper over it. A field added to the sheet reaches the card with no second edit, and forgetting one is no longer possible. The code record is passed WHOLE rather than picked over, because picking fields is exactly the mistake above. Shards got smaller doing it: mean 8.0 KB against 9.1. Two sheet-level sources the card fetches nothing for are seeded from the shard: the prayer page (prayIndex) and the SUN block. Both matter most to this persona — a catalyst with a Deaf group, or one handing someone a prayer page — and both were silently absent while the card "worked". Verified statically, since I cannot render: every one of the 28 fields the sheet reads off selectedGroup is produced by groupFrom, so the two paths cannot disagree about any of them. rega has the render.
1 line
2.2 KiB
JSON
1 line
2.2 KiB
JSON
{"ani":{"row":["Ani",23.755117,103.52517,"CHN","yix",5100,1,"ani"],"c":{"l":"Axi","ck":"arclight, door43, ebible, fcbh, grn, scriptureearth","un":"api_bible, dbl, progress_bible, youversion","ga":{"u":"https://fivefish.org/yix","n":"Axi"}},"country":"People's Republic of China","bridge":null,"bridge_candidate":null,"pray_url":"https://pray.doxa.life/ani?source=doxalife","_cardRes":{"bridge":null,"candidate":null,"alt":null},"sun":null},"bhatu-andamani":{"row":["Bhatu (Andamani)",11.623377,92.726483,"IND","hca",400,1,"bhatu-andamani"],"c":{"l":"Andaman Hindi Creole","ck":"arclight, door43, ebible, fcbh, grn, scriptureearth","un":"api_bible, dbl, progress_bible, youversion","ga":{"u":"https://fivefish.org/hca","n":"Andaman Hindi Creole"}},"country":"India","bridge":null,"bridge_candidate":null,"pray_url":"https://pray.doxa.life/bhatu-andamani?source=doxalife","_cardRes":{"bridge":null,"candidate":null,"alt":null},"sun":null},"kalmyk-oirats":{"row":["Kalmyk-Oirats",48.584897,95.431934,"MNG","xal",189000,2,"kalmyk-oirats"],"c":{"l":"Kalmyk-Oirat","f":"https://jesusfilm.org/watch/jesus/kalmyk-oirat","a":1,"ck":"arclight, door43, ebible, fcbh, scriptureearth","un":"api_bible, dbl, progress_bible, youversion, grn (not yet swept)","au":{"u":"https://live.bible.is/bible/XALIBT","n":"Institute for Bible Translation, Moscow","ln":"Kalmyk-Oirat","m":"audio, text, video","vsc":"36 parts, Эклц to АПОКАЛИПСИС"},"sx":{"u":"https://live.bible.is/bible/XALIBT","n":"Institute for Bible Translation, Moscow","src":"Faith Comes By Hearing"}},"country":"Mongolia","bridge":null,"bridge_candidate":null,"pray_url":"https://pray.doxa.life/kalmyk-oirats?source=doxalife","_cardRes":{"bridge":null,"candidate":null,"alt":null},"sun":null},"kasseng":{"row":["Kasseng",15.25616,107.35139,"LAO","tdf",1200,1,"kasseng"],"c":{"l":"Talieng","ck":"arclight, door43, ebible, fcbh, grn, scriptureearth","un":"api_bible, dbl, progress_bible, youversion","ga":{"u":"https://fivefish.org/tdf","n":"Talieng"}},"country":"Lao People's Democratic Republic","bridge":null,"bridge_candidate":null,"pray_url":"https://pray.doxa.life/kasseng?source=doxalife","_cardRes":{"bridge":null,"candidate":null,"alt":null},"sun":null}}
|