app: the church export's app part (APP-1.0-PLAN §11)
crosscode.church-export/1 with its app part, in plain terms with refs made for the export: members as people with every role, the wall's rules, commitments as rules (with skips), "I prayed" marks, campaigns, testimonies, prayer requests with their updates and moderation (who and why; the whole export is encrypted by the agent), the emergency numbers, announcements, the church's own devotionals (not Cross Code's) and simple events; uploaded images listed under uploads/. scripts/export-church.ts writes export.json for the crosscode script (app.sh comes with slice 7). A test checks the schema and that no internal id is in it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -211,7 +211,7 @@ describe('announcements and devotionals (§5, §6)', () => {
|
||||
assert.equal((await thandi.post('/api/v1/me/notifications/devotional-offer', { choice: 'both' })).status, 200);
|
||||
await thandi.put('/api/v1/me/notifications', { devotionalTime: '09:00' });
|
||||
assert.equal((await thandi.get('/api/v1/me/notifications')).body.offerDevotional, false);
|
||||
await h.db.devotional.create({ data: { source: 'crosscode', date: '2026-12-01', title: 'Light in the dark', reference: 'John 1:5', location: { book: 'JHN', chapter: 1, verses: [5, 5] }, translation: 'BSB', passageText: 'The Light shines in the darkness, and the darkness has not overcome it.', body: 'Text' } });
|
||||
await h.db.devotional.create({ data: { source: 'crosscode', date: '2026-12-01', title: 'Light in the dark', reference: 'John 1:5', location: { book: 'JHN', chapter: 1, verse: 5, endChapter: 1, endVerse: 5 }, translation: 'BSB', passageText: 'The Light shines in the darkness, and the darkness has not overcome it.', body: 'Text' } });
|
||||
// 08:00 in Johannesburg: not yet.
|
||||
assert.equal((await queueDevotionals(h.ctx) as { queued: number }).queued, 0);
|
||||
h.clock.set('2026-12-01T07:05:00Z');
|
||||
|
||||
Reference in New Issue
Block a user