Skip to content

Commit e77d0e1

Browse files
committed
Adjust embeds
1 parent 78983c7 commit e77d0e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

web/src/observability/embeds.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ export function buildSessionStartedEmbed(e: SessionStartedEvent): DiscordEmbed {
135135
const ctx = e.context;
136136

137137
const lines: string[] = [
138+
code(truncate(e.sessionId, 100)),
138139
`### ${locationHeader(ctx)}`,
139140
sub(`started ${relativeTimestamp()}${ctx.colo ? ` · edge ${code(ctx.colo)}` : ""}`),
140141
];
141142

142143
const fields: DiscordEmbedField[] = [
143-
{ name: "Session", value: code(truncate(e.sessionId, 100)), inline: true },
144-
{ name: "Branch", value: `${emoji} ${code(label)}`, inline: true },
144+
{ name: "Branch", value: `${emoji} ${code(label)}`, inline: true },
145145
...networkFields(ctx),
146146
];
147147

@@ -171,13 +171,13 @@ export function buildSessionEndedEmbed(e: SessionEndedEvent): DiscordEmbed {
171171
const durationMs = e.startedAt !== undefined ? e.endedAt - e.startedAt : undefined;
172172

173173
const lines: string[] = [
174+
code(truncate(e.sessionId, 100)),
174175
`### ${ctx ? locationHeader(ctx) : "🌐 Unknown location"}`,
175176
sub(`ended ${relativeTimestamp()}${durationMs !== undefined ? ` · ran for **${duration(durationMs)}**` : ""}`),
176177
];
177178

178179
const fields: DiscordEmbedField[] = [
179-
{ name: "Session", value: code(truncate(e.sessionId, 100)), inline: true },
180-
{ name: "Branch", value: `${emoji} ${code(label)}`, inline: true },
180+
{ name: "Branch", value: `${emoji} ${code(label)}`, inline: true },
181181
];
182182
if (ctx) fields.push(...networkFields(ctx));
183183

0 commit comments

Comments
 (0)