@@ -199,11 +207,7 @@ function WelcomeState({
needs.
- Ask the{' '}
-
- Agent
- {' '}
- to build widgets on the{' '}
+ Ask the agent to build widgets on the{' '}
Overview
{' '}
@@ -251,7 +255,7 @@ function ExploreWorkspaceState({ agent, disabled = false, onSelectPrompt }: Prom
)
}
-function EmptyState({ agent }: AgentStateProps) {
+function OverviewEmptyState({ agent }: AgentStateProps) {
return (
@@ -261,6 +265,16 @@ function EmptyState({ agent }: AgentStateProps) {
)
}
+function TabEmptyState({ agent }: AgentStateProps) {
+ return (
+
+
+ Chat with your agent and manage the view from here
+
+
+ )
+}
+
type WelcomeTermProps = {
children: string
destination: WelcomeDestination
diff --git a/client/features/chat/messages/ExploreWorkspaceState.test.tsx b/client/features/chat/messages/ExploreWorkspaceState.test.tsx
index 01fdb4c5..cd30fd30 100644
--- a/client/features/chat/messages/ExploreWorkspaceState.test.tsx
+++ b/client/features/chat/messages/ExploreWorkspaceState.test.tsx
@@ -53,7 +53,7 @@ describe('ExploreWorkspaceState', () => {
expect(html).not.toContain('Wait for me to choose')
const context = renderMoiContext({
- activeTab: 'agent',
+ activeTab: { id: 'overview' },
directives: [...WORKSPACE_ANALYSIS_PROMPT.context]
})
expect(context).toContain('Explore the existing workspace files')
diff --git a/client/features/chat/messages/WelcomeState.test.tsx b/client/features/chat/messages/WelcomeState.test.tsx
index a7470ff0..d202fcac 100644
--- a/client/features/chat/messages/WelcomeState.test.tsx
+++ b/client/features/chat/messages/WelcomeState.test.tsx
@@ -39,12 +39,12 @@ describe('WelcomeState', () => {
expect(renderedParagraphs(html)).toEqual([
'moi is the personal workspace built for you by your agent. It grows and adapts to your needs.',
- 'Ask the Agent to build widgets on the Overview page, or more complex tools as separate Views. Use Scratchpad for exploring and shaping ideas with your agent.',
+ 'Ask the agent to build widgets on the Overview page, or more complex tools as separate Views. Use Scratchpad for exploring and shaping ideas with your agent.',
'Try an example:'
])
})
- test('renders four inline tab actions and three prompt bubbles with icons', () => {
+ test('renders three inline tab actions and three prompt bubbles with icons', () => {
const html = renderWelcome()
const welcomeTerms = [...html.matchAll(/