Skip to content

Commit c70ea59

Browse files
committed
fix(awareness-service): trim dead-letter list payload, center login QR
- GET /api/admin/dead-letters returns metadata only; the full webhook payload column is omitted so the list stays small. - Center the QR code within its white plate on the login screen.
1 parent 4548f75 commit c70ea59

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

services/awareness-service/api/src/controllers/AdminController.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,24 @@ export function adminRouter(): Router {
7575

7676
router.get("/api/admin/dead-letters", async (req, res) => {
7777
const includeResolved = req.query.resolved === "true";
78+
// Metadata only - the `payload` column holds the full webhook body and
79+
// would bloat the list. Fetch it on replay if ever needed.
7880
const deadLetters = await AppDataSource.getRepository(
7981
DeadLetter,
8082
).find({
83+
select: [
84+
"id",
85+
"deliveryId",
86+
"subscriptionId",
87+
"packetId",
88+
"consumerId",
89+
"targetUrl",
90+
"totalAttempts",
91+
"lastError",
92+
"lastResponseStatus",
93+
"resolved",
94+
"createdAt",
95+
],
8196
where: includeResolved ? {} : { resolved: false },
8297
order: { createdAt: "DESC" },
8398
take: 200,

services/awareness-service/portal/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
Scan with your eID wallet to sign in.
7272
</p>
7373
<!-- QR keeps a white plate for scanner contrast -->
74-
<div class="rounded-lg bg-white p-4 shadow-lg">
74+
<div class="flex items-center justify-center rounded-lg bg-white p-4 shadow-lg">
7575
<QrCode value={uri} size={220} />
7676
</div>
7777
{#if polling}

0 commit comments

Comments
 (0)