@bongos/core 1.23.15 → 1.23.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -141,8 +141,8 @@ await test('lib: the artboard\'s words, from the route\'s own shape', () => {
141
141
  assert.equal(lib.displayTitle(home), 'Home', 'an apex template title is Home, the artboard\'s own word');
142
142
  assert.equal(lib.subLine(home), '· landing · 1 line rewritten, applied · 1 not applied');
143
143
  assert.equal(lib.subLine(projects), '· landing · 1 line rewritten, applied');
144
- assert.equal(lib.doorDetail(2), '2 pages applied, waiting for you');
145
- assert.equal(lib.doorDetail(1), '1 page applied, waiting for you');
144
+ assert.equal(lib.doorDetail(2), '2 pages waiting for you');
145
+ assert.equal(lib.doorDetail(1), '1 page waiting for you');
146
146
  assert.equal(lib.doorDetail(0), 'nothing waiting for you');
147
147
  assert.equal(lib.approvedLine(home, { status_after: 'Text tweaked 3x', next: { page: { title: 'Contact' } } }),
148
148
  'Approved. It ships now, and Home reads text tweaked 3x. Next in the queue: Contact.', 'the artboard line, word for word');
@@ -346,22 +346,22 @@ await test('submitted but not applied: listed apart, marked, how long, no verbs,
346
346
  const submitted = {
347
347
  id: 60, status: 'ready', holder_id: null, artist_id: ME, artist_login: 'me', updated_at: '2026-09-29T08:00:00Z',
348
348
  source_ref: pages.roundSourceRef('landing:projects', 2),
349
- description: ['Page tweak round 2.', pages.composeBatchBlock({ page_id: 'landing:projects', reading_hash: 'h', submitted_at: '2026-09-29T08:00:00Z', lines: [{ key: 'L0002', section: 'list', before: 'Every project', after: 'All of them', placement: 'placed', file: 'x.html', line: 1, string_id: 'a' }] })].join('\n\n'),
349
+ description: ['Page tweak round 2.', pages.composeBatchBlock({ page_id: 'landing:projects', reading_hash: 'h', submitted_at: '2026-09-29T08:00:00Z', lines: [{ key: 'L0002', section: 'list', before: 'Every project', after: 'All of them', placement: 'placed', file: 'x.html', line: 1, string_id: 'a' }] }), pages.composeWordsApprovedBlock({ at: '2026-09-29T09:00:00Z', by: ME })].join('\n\n'),
350
350
  };
351
351
  const tasks = [...TASKS.filter((t) => t.id !== 42), submitted];
352
352
  const data = pageStatus.composeApprovals({ inventory: INVENTORY, tasks, builderId: ME, crafts: ['artist'], now: NOW });
353
353
  assert.equal(data.count, 1, 'the door counts reviewable rounds only');
354
354
  assert.deepEqual(data.queue.map((q) => q.task_id), ['41']);
355
355
  assert.deepEqual(data.not_applied.map((r) => [r.page_id, r.task_id, r.state_word, r.waited_days, r.line_count]),
356
- [['landing:projects', '60', 'Submitted, waiting to be applied', 21, 1]]);
356
+ [['landing:projects', '60', 'Approved, waiting to be applied', 21, 1]]);
357
357
 
358
358
  const b = bootPanel({ answers: { [APPROVALS]: { ok: true, ...data }, [vis(41)]: slotsFor(41) } });
359
359
  await b.panel.open(); await settle(); await settle();
360
- assert.equal(text(b.q('.aq-pending__h')), 'Submitted, not applied yet (1)');
360
+ assert.equal(text(b.q('.aq-pending__h')), 'Approved, not applied yet (1)');
361
361
  const row = b.q('.aq-pending__row');
362
362
  assert.match(text(row), /Projects/);
363
363
  assert.match(text(row), /not applied yet/);
364
- assert.match(text(row), /Submitted, waiting to be applied · waiting 21 days\. The words are waiting to be applied/);
364
+ assert.match(text(row), /Approved, waiting to be applied · waiting 21 days\. The words are approved and waiting to be put on the page/);
365
365
  assert.equal(row.querySelectorAll('button').length, 0, 'no approve or send-back on a page nobody applied');
366
366
  assert.deepEqual(b.counts, [1]);
367
367