Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(desktop): restore new conversation greeting style

Miguelon Peluchonbc4d43879cce
diff --git a/desktop-app/ui/src/components/agents/AgentTitleSelector.tsx b/desktop-app/ui/src/components/agents/AgentTitleSelector.tsx
index 41f90d335..c31157fca 100644
--- a/desktop-app/ui/src/components/agents/AgentTitleSelector.tsx
+++ b/desktop-app/ui/src/components/agents/AgentTitleSelector.tsx
@@ -16,7 +16,7 @@ type AgentTitleSelectorProps = {
selectedLabel: string
}
-// Agent selector for the new-chat landing. Each row exposes TWO targets:
+// Agent selector for the new-chat greeting title row. Each row exposes TWO targets:
// 1. the agent name button → selects the agent (starts/switches a chat)
// 2. the 3-dots button → opens a sections sub-menu
// (Details / Connectors / Contexts / Agent Files / Activity) that
diff --git a/desktop-app/ui/src/components/agents/AgentWorkspace.tsx b/desktop-app/ui/src/components/agents/AgentWorkspace.tsx
index 325a6cc97..593813be7 100644
--- a/desktop-app/ui/src/components/agents/AgentWorkspace.tsx
+++ b/desktop-app/ui/src/components/agents/AgentWorkspace.tsx
@@ -186,7 +186,7 @@ export function AgentWorkspace({ mode = 'agents', scrollContainerRef }: AgentWor
[]
)
- // Agent selector dropdown for the new-chat landing. Each row has two
+ // Agent selector dropdown for the new-chat greeting title row. Each row has two
// targets: the agent NAME (click → start/switch a chat with that agent) and
// the 3-dots (click → open a sections sub-menu: Details / Connectors /
// Contexts / Agent Files / Activity, navigating into that agent's workspace
@@ -546,10 +546,9 @@ export function AgentWorkspace({ mode = 'agents', scrollContainerRef }: AgentWor
{isChatMode && !activeChatId && (
<div className="agent-workspace-new-chat">
- <div className="agent-workspace-new-chat__intro">
- <h2 className="agent-workspace-new-chat__title">Start a conversation</h2>
- <p className="agent-workspace-new-chat__subtitle">Choose an agent to begin</p>
- <div className="agent-workspace-new-chat__selector">{agentSwitcherLabel}</div>
+ <div className="agent-workspace-greeting-row">
+ <h2 className="agent-workspace-greeting">Start a new conversation with:</h2>
+ {agentSwitcherLabel}
</div>
<ComposerPanel inline />
</div>
diff --git a/desktop-app/ui/src/components/agents/__tests__/AgentWorkspace.displayName.test.tsx b/desktop-app/ui/src/components/agents/__tests__/AgentWorkspace.displayName.test.tsx
index 473235e98..b72ed0387 100644
--- a/desktop-app/ui/src/components/agents/__tests__/AgentWorkspace.displayName.test.tsx
+++ b/desktop-app/ui/src/components/agents/__tests__/AgentWorkspace.displayName.test.tsx
@@ -182,15 +182,15 @@ describe('AgentWorkspace title selector — visible agent name (R1-M3)', () => {
vi.clearAllMocks()
})
- it('renders the centered new-chat landing copy around the agent selector', () => {
+ it('renders the dev-style new-chat title row with the agent selector', () => {
navMock.selectedAgent = 'alpha'
agentsMock.agentNames = ['alpha']
render(<AgentWorkspace mode="chat" scrollContainerRef={{ current: null }} />)
expect(document.querySelector('.agent-workspace-new-chat')).toBeTruthy()
- expect(screen.getByRole('heading', { name: 'Start a conversation' })).toBeTruthy()
- expect(screen.getByText('Choose an agent to begin')).toBeTruthy()
+ expect(document.querySelector('.agent-workspace-greeting-row')).toBeTruthy()
+ expect(screen.getByRole('heading', { name: 'Start a new conversation with:' })).toBeTruthy()
})
it('shows the display in the collapsed trigger and in the dropdown option row', () => {
diff --git a/desktop-app/ui/src/styles.css b/desktop-app/ui/src/styles.css
index bd1ea45da..f980156e0 100644
--- a/desktop-app/ui/src/styles.css
+++ b/desktop-app/ui/src/styles.css
@@ -4184,73 +4184,75 @@ h3 {
align-items: center;
width: 100%;
min-width: 0;
- padding: calc(var(--space-4) * 4) 0 0;
+ padding: 0;
}
-.agent-workspace-new-chat__intro {
- display: grid;
- justify-items: center;
- gap: var(--space-1);
+.agent-workspace-greeting-row {
+ width: min(100%, 1120px);
+ max-width: min(100%, 1120px);
+ margin: 0 auto;
+ padding: 50px 0 var(--space-1);
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: baseline;
+ justify-content: center;
+ gap: var(--space-1-5);
min-width: 0;
- text-align: center;
}
-.agent-workspace-new-chat__title {
+.agent-workspace-greeting-row .agent-workspace-greeting {
margin: 0;
color: var(--text);
font-size: var(--font-size-2xl);
- font-weight: var(--font-weight-bold);
- line-height: var(--line-height-tight);
+ font-weight: 700;
+ line-height: 1.1;
+ flex: 0 1 auto;
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
-.agent-workspace-new-chat__subtitle {
- margin: 0;
- color: var(--text-muted);
- font-size: var(--font-size-lg);
- line-height: var(--line-height-normal);
+.agent-workspace-greeting-row .agent-title-selector {
+ flex: 0 0 auto;
+ align-self: center;
}
-.agent-workspace-new-chat__selector {
- margin-top: var(--space-1-5);
+/* Keep the new-chat title and selector identical to the origin/dev greeting
+ * row while retaining the current composer and sessions layout below it. */
+.agent-workspace-greeting-row .agent-title-selector-trigger.ui-button,
+.agent-workspace-greeting-row .agent-title-selector-trigger.ui-button--sm {
+ font-size: var(--font-size-2xl);
+ font-weight: 700;
+ line-height: 1.1;
+ min-height: 0;
}
-.agent-workspace-new-chat .agent-title-selector-trigger.ui-button--text.ui-button--transparent {
- width: min(196px, calc(100vw - (var(--space-4) * 2)));
- min-height: 36px;
- justify-content: space-between;
- padding: 0 var(--space-2-5);
- border: 1px solid var(--control-border);
- border-radius: var(--radius-sm);
- background: var(--control-bg);
- color: var(--text);
- font-size: var(--font-size-lg);
- font-weight: var(--font-weight-medium);
- line-height: var(--line-height-tight);
+.agent-workspace-greeting-row .agent-title-selector-trigger.ui-button--text.ui-button--transparent {
+ color: var(--brand-deep-blue);
+ background: transparent;
+ border: 0;
+ cursor: pointer;
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-1);
+ transition: color 120ms ease;
}
-.agent-workspace-new-chat
- .agent-title-selector-trigger.ui-button--text.ui-button--transparent:hover:enabled,
-.agent-workspace-new-chat
+.agent-workspace-greeting-row
+ .agent-title-selector-trigger.ui-button--text.ui-button--transparent:hover,
+.agent-workspace-greeting-row
+ .agent-title-selector-trigger.ui-button--text.ui-button--transparent:focus-visible,
+.agent-workspace-greeting-row
.agent-title-selector-trigger.ui-button--text.ui-button--transparent[aria-expanded='true'] {
- border-color: var(--control-border-hover);
- background: var(--surface-hover);
- color: var(--text);
-}
-
-.agent-workspace-new-chat .agent-title-selector-trigger:focus-visible {
+ color: var(--accent);
outline: none;
- box-shadow: 0 0 0 2px rgba(var(--focus-rgb), 0.26);
-}
-
-.agent-workspace-new-chat .agent-title-selector-trigger svg {
- width: 14px;
- height: 14px;
- flex: 0 0 14px;
+ text-decoration: none;
}
-.agent-workspace-new-chat .agent-title-selector-trigger-label {
- max-width: 32ch;
- color: inherit;
+.agent-workspace-greeting-row .agent-title-selector-trigger svg {
+ width: 18px;
+ height: 18px;
}
/* ── Agent title selector dropdown ──