@joewinke/jatui 0.38.1 → 0.38.2

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.
@@ -1237,62 +1237,81 @@
1237
1237
  bind:this={sentSummaryEl}
1238
1238
  tabindex="-1"
1239
1239
  >
1240
- {#if delivered}
1241
- <p
1242
- class="text-success font-medium"
1243
- role="status"
1244
- aria-live="polite"
1245
- >
1246
- Sent to {recipient} ✓
1247
- </p>
1248
- {:else if taskClosed}
1249
- <!-- mos-m3nfp: the linked task closed — the answers were acted
1250
- on. Says received, not "not delivered"; no Send again (the
1251
- review is over; the changed-verdict path still offers one
1252
- when this viewer edits after the fact). -->
1253
- <p
1254
- class="text-success font-medium"
1255
- role="status"
1256
- aria-live="polite"
1257
- >
1258
- Answers received. The linked task is closed.
1259
- </p>
1260
- <p class="text-base-content/60 text-xs">
1261
- Your decisions stay saved on this page.
1262
- </p>
1263
- {:else if deliveryStalled}
1264
- <!-- The fallback (mos-bi8t0): the owner has not picked the
1265
- answer up. Say so — never a "Sent ✓" it did not earn. -->
1266
- <div
1267
- class="alert alert-warning rounded-box text-sm"
1268
- role="status"
1269
- aria-live="polite"
1270
- data-delivery-stalled
1271
- >
1272
- <div class="flex flex-col gap-1">
1273
- <p class="font-medium">
1274
- {deliverable
1275
- ? `Not delivered to ${recipient} yet.`
1276
- : "No agent owns this page, so no one was notified."}
1240
+ <!-- jatui-tx279: one compact block — the status on the left,
1241
+ "Send again" as a small secondary on the right of the same
1242
+ row; the next actions get the bottom row to themselves. -->
1243
+ <div class="flex items-start justify-between gap-3" data-sent-header>
1244
+ <div class="flex min-w-0 flex-1 flex-col gap-1.5">
1245
+ {#if delivered}
1246
+ <p
1247
+ class="text-success font-medium"
1248
+ role="status"
1249
+ aria-live="polite"
1250
+ >
1251
+ Sent to {recipient} ✓
1252
+ </p>
1253
+ {:else if taskClosed}
1254
+ <!-- mos-m3nfp: the linked task closed — the answers were acted
1255
+ on. Says received, not "not delivered"; no Send again (the
1256
+ review is over; the changed-verdict path still offers one
1257
+ when this viewer edits after the fact). -->
1258
+ <p
1259
+ class="text-success font-medium"
1260
+ role="status"
1261
+ aria-live="polite"
1262
+ >
1263
+ Answers received. The linked task is closed.
1264
+ </p>
1265
+ <p class="text-base-content/60 text-xs">
1266
+ Your decisions stay saved on this page.
1277
1267
  </p>
1278
- <p>
1279
- Your answers are saved on this page.
1280
- {deliverable
1281
- ? `They go to ${recipient} as soon as delivery runs. This page updates when they arrive.`
1282
- : "Tell the person who sent you this page that you finished."}
1268
+ {:else if deliveryStalled}
1269
+ <!-- The fallback (mos-bi8t0): the owner has not picked the
1270
+ answer up. Say so — never a "Sent ✓" it did not earn. -->
1271
+ <div
1272
+ class="alert alert-warning rounded-box text-sm"
1273
+ role="status"
1274
+ aria-live="polite"
1275
+ data-delivery-stalled
1276
+ >
1277
+ <div class="flex flex-col gap-1">
1278
+ <p class="font-medium">
1279
+ {deliverable
1280
+ ? `Not delivered to ${recipient} yet.`
1281
+ : "No agent owns this page, so no one was notified."}
1282
+ </p>
1283
+ <p>
1284
+ Your answers are saved on this page.
1285
+ {deliverable
1286
+ ? `They go to ${recipient} as soon as delivery runs. This page updates when they arrive.`
1287
+ : "Tell the person who sent you this page that you finished."}
1288
+ </p>
1289
+ </div>
1290
+ </div>
1291
+ {:else}
1292
+ <p
1293
+ class="text-base-content/70 inline-flex items-center gap-2 font-medium"
1294
+ role="status"
1295
+ aria-live="polite"
1296
+ >
1297
+ <span class="loading loading-spinner loading-xs"></span>
1298
+ Sending to {recipient}…
1283
1299
  </p>
1284
- </div>
1300
+ {/if}
1285
1301
  </div>
1286
- {:else}
1287
- <p
1288
- class="text-base-content/70 inline-flex items-center gap-2 font-medium"
1289
- role="status"
1290
- aria-live="polite"
1291
- >
1292
- <span class="loading loading-spinner loading-xs"></span>
1293
- Sending to {recipient}…
1294
- </p>
1295
- {/if}
1302
+ {#if !taskClosed}
1303
+ <!-- Send again lives on every live review (a real stall
1304
+ keeps it, mos-bi8t0); a CLOSED task's review is over,
1305
+ so it steps aside here (mos-m3nfp). -->
1306
+ <button
1307
+ type="button"
1308
+ class="btn btn-ghost btn-xs rounded-field shrink-0"
1309
+ onclick={() => (composerOpen = true)}
1310
+ >
1311
+ Send again
1312
+ </button>
1313
+ {/if}
1314
+ </div>
1296
1315
  {#if sentSummaryLine}
1297
1316
  <p class="text-base-content/70 text-xs">{sentSummaryLine}</p>
1298
1317
  {/if}
@@ -1300,28 +1319,14 @@
1300
1319
  {#if sentAt}{shortDay(sentAt)} ·
1301
1320
  {/if}<span class="font-mono">{taskId}</span>
1302
1321
  </p>
1303
- {#if !taskClosed || host.nextActions}
1304
- <div class="mt-2 flex flex-wrap items-end gap-2">
1305
- {#if !taskClosed}
1306
- <!-- Send again lives on every live review (a real stall
1307
- keeps it, mos-bi8t0); a CLOSED task's review is over,
1308
- so it steps aside here (mos-m3nfp). -->
1309
- <button
1310
- type="button"
1311
- class="btn btn-outline btn-sm rounded-field"
1312
- onclick={() => (composerOpen = true)}
1313
- >
1314
- Send again
1315
- </button>
1316
- {/if}
1317
- {#if host.nextActions}
1318
- <!-- On the right, where the Send press left the cursor. -->
1319
- {@render host.nextActions({
1320
- compact: false,
1321
- autofocus: deskFocus,
1322
- nextKey: true,
1323
- })}
1324
- {/if}
1322
+ {#if host.nextActions}
1323
+ <div class="mt-2 flex justify-end" data-sent-next>
1324
+ <!-- Focus lands on Next review: Enter / "n" go on. -->
1325
+ {@render host.nextActions({
1326
+ compact: false,
1327
+ autofocus: deskFocus,
1328
+ nextKey: true,
1329
+ })}
1325
1330
  </div>
1326
1331
  {/if}
1327
1332
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joewinke/jatui",
3
- "version": "0.38.1",
3
+ "version": "0.38.2",
4
4
  "private": false,
5
5
  "description": "Shared Svelte 5 component library for JAT projects",
6
6
  "type": "module",