A desktop coding agent with free access to frontier models.
TypeScript
fix: event card on two short lines
Samrat Talukdar87b400797b02
diff --git a/apps/app/src/i18n/locales/en.ts b/apps/app/src/i18n/locales/en.tsindex 61626557..309d45d1 100644--- a/apps/app/src/i18n/locales/en.ts+++ b/apps/app/src/i18n/locales/en.ts@@ -2678,6 +2678,7 @@ export default {"settings.appearance.preset_high_contrast": "High contrast","events.counting": "Chats you build in OmniRush while {name} runs count toward the event. There is nothing else to set up.","events.hide": "Hide until tomorrow",+ "events.participating": "You're participating","events.show": "{name} hackathon: you're participating","events.restart": "Restart OmniRush so your chats count","events.joined_title": "Events you joined",diff --git a/apps/app/src/react-app/domains/events/event-badge.tsx b/apps/app/src/react-app/domains/events/event-badge.tsxindex f5369b14..ab283443 100644--- a/apps/app/src/react-app/domains/events/event-badge.tsx+++ b/apps/app/src/react-app/domains/events/event-badge.tsx@@ -72,7 +72,11 @@ export function EventBadge({ events, dismissed, onDismiss }: { events: OmniRushArender={<div className="min-w-0 flex-1 cursor-default" tabIndex={0}><div className="truncate text-xs font-medium leading-5 text-sidebar-foreground" data-testid="event-badge-title">{event.title}</div>- <div className="text-[10.5px] leading-snug text-muted-foreground" data-testid="event-badge-detail">{event.detail}</div>+ {/* Two short lines in the narrow sidebar rather than one that breaks at its dot. */}+ <div className="text-[10.5px] leading-snug text-muted-foreground" data-testid="event-badge-detail">+ <div>{t("events.participating")}</div>+ <div className="first-letter:uppercase">{event.ends}</div>+ </div></div>}/>@@ -94,9 +98,9 @@ export function EventBadge({ events, dismissed, onDismiss }: { events: OmniRushAtype="button"onClick={() => void relaunchDesktopApp()}data-testid="event-badge-restart"- className="mt-1.5 ms-8 flex items-center gap-1 text-[10.5px] font-medium text-link hover:underline"+ className="mt-1.5 ms-8 flex items-start gap-1 text-start text-[10.5px] font-medium leading-snug text-link hover:underline">- <RotateCw className="size-3" />+ <RotateCw className="mt-px size-3 shrink-0" />{t("events.restart")}</button>) : null}diff --git a/apps/desktop/electron/events-desktop.test.mjs b/apps/desktop/electron/events-desktop.test.mjsindex 8d3cfe3f..bb9c071f 100644--- a/apps/desktop/electron/events-desktop.test.mjs+++ b/apps/desktop/electron/events-desktop.test.mjs@@ -72,7 +72,7 @@ test("window: display values, the restart note, nothing for a plain stock run orconst shown = accountEvents(status(ME), { dir, started: { stock: true, event: true }, now: NOW, local: UTC });assert.equal(shown.eventsRecord, undefined, "the raw part stays in the main process");assert.deepEqual(shown.events, {- active: [{ name: "BIOS V2", endsAt: "2026-10-30T18:00:00.000Z", title: "BIOS V2 hackathon", detail: "You're participating · ends today 6:00 PM" }],+ active: [{ name: "BIOS V2", endsAt: "2026-10-30T18:00:00.000Z", title: "BIOS V2 hackathon", detail: "You're participating · ends today 6:00 PM", ends: "ends today 6:00 PM" }],joined: [{ name: "BIOS V2", joinedAt: "2026-10-29T12:00:00.000Z", date: "Oct 29, 2026" }],restart: false,});diff --git a/apps/desktop/electron/events/app-events.mjs b/apps/desktop/electron/events/app-events.mjsindex b68a3152..c5510134 100644--- a/apps/desktop/electron/events/app-events.mjs+++ b/apps/desktop/electron/events/app-events.mjs@@ -7,7 +7,7 @@import fs from "node:fs";import path from "node:path";-import { dateLabel, eventBadge, eventsRecord, parseEvents } from "./events.mjs";+import { dateLabel, endsLabel, eventBadge, eventsRecord, parseEvents } from "./events.mjs";const FILE = "events.json";const STOCK_ENV = "OMNIRUSH_FARM";@@ -70,7 +70,7 @@ export function accountEvents(status, { dir, started, now = Date.now(), local })return {...rest,events: {- active: parsed.active.map((event) => ({ name: event.name, endsAt: new Date(event.endsAt).toISOString(), ...eventBadge(event, now, local) })),+ active: parsed.active.map((event) => ({ name: event.name, endsAt: new Date(event.endsAt).toISOString(), ...eventBadge(event, now, local), ends: endsLabel(event.endsAt, now, local) })),joined: parsed.history.map((event) => ({ name: event.name, joinedAt: new Date(event.joinedAt).toISOString(), date: dateLabel(event.joinedAt, local) })),restart: Boolean(parsed.stock) && !started?.stock,},diff --git a/packages/types/src/desktop-ipc.ts b/packages/types/src/desktop-ipc.tsindex aa1c295e..34b6a98d 100644--- a/packages/types/src/desktop-ipc.ts+++ b/packages/types/src/desktop-ipc.ts@@ -590,8 +590,8 @@ export type OmniRushAccountStatus = {};export type OmniRushAccountEvents = {- /** Running now, the one ending first first. `title` "BIOS V2 hackathon", `detail` "You're participating · ends Fri 6:00 PM". */- active: Array<{ name: string; endsAt: string; title: string; detail: string }>;+ /** Running now, the one ending first first. `title` "BIOS V2 hackathon", `detail` "You're participating · ends Fri 6:00 PM", `ends` its last part. */+ active: Array<{ name: string; endsAt: string; title: string; detail: string; ends: string }>;/** Joined, newest first; `date` "Oct 29, 2026" (local). */joined: Array<{ name: string; joinedAt: string; date: string }>;/** The app has to start again for the event (it applies from the next start). */