mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
fix(onboarding): clarify continue to chat fallback (#2173)
Co-authored-by: Ajay Kumar Reddy Nelavetla <ajay@Ajays-MacBook-Air.local>
This commit is contained in:
co-authored by
Ajay Kumar Reddy Nelavetla
parent
3a82782ecd
commit
afe1147422
@@ -143,7 +143,7 @@ const en4: TranslationMap = {
|
||||
'onboarding.contextGathering.buildingProfile': 'Building your profile...',
|
||||
'onboarding.contextGathering.continueToChat': 'Continue to chat',
|
||||
'onboarding.contextGathering.errorDesc':
|
||||
"We couldn't build your full profile right now, but that's okay — you can continue and your profile will build over time.",
|
||||
"Your chat is ready. We'll keep building your full profile in the background, so you can continue now and refine it over time.",
|
||||
'onboarding.contextGathering.title': 'Context Gathering',
|
||||
'openhuman.team_list_teams': 'Team list teams',
|
||||
'overlay.ariaAttention': 'Attention message',
|
||||
|
||||
@@ -1449,7 +1449,7 @@ const en: TranslationMap = {
|
||||
'onboarding.contextGathering.buildingProfile': 'Building your profile...',
|
||||
'onboarding.contextGathering.continueToChat': 'Continue to chat',
|
||||
'onboarding.contextGathering.errorDesc':
|
||||
"We couldn't build your full profile right now, but that's okay — you can continue and your profile will build over time.",
|
||||
"Your chat is ready. We'll keep building your full profile in the background, so you can continue now and refine it over time.",
|
||||
'onboarding.contextGathering.title': 'Context Gathering',
|
||||
'openhuman.team_list_teams': 'Team list teams',
|
||||
'overlay.ariaAttention': 'Attention message',
|
||||
|
||||
@@ -291,13 +291,15 @@ const ContextGatheringStep = ({
|
||||
<h1 className="text-xl font-bold text-stone-900 dark:text-neutral-100">
|
||||
{t('onboarding.contextGathering.title')}
|
||||
</h1>
|
||||
<p className="text-sm text-stone-600 dark:text-neutral-300 text-center max-w-xs leading-relaxed">
|
||||
{t('onboarding.contextGathering.errorDesc')}
|
||||
</p>
|
||||
<OnboardingNextButton
|
||||
label={t('onboarding.contextGathering.continueToChat')}
|
||||
onClick={continueToChat}
|
||||
/>
|
||||
<div className="w-full max-w-sm rounded-xl border border-primary-100 bg-primary-50/80 p-4 dark:border-primary-900/50 dark:bg-primary-950/30">
|
||||
<p className="text-sm text-stone-700 dark:text-neutral-200 text-center leading-relaxed mb-4">
|
||||
{t('onboarding.contextGathering.errorDesc')}
|
||||
</p>
|
||||
<OnboardingNextButton
|
||||
label={t('onboarding.contextGathering.continueToChat')}
|
||||
onClick={continueToChat}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -237,9 +237,7 @@ describe('ContextGatheringStep', () => {
|
||||
);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(
|
||||
screen.getByText(/we couldn't build your full profile right now/i)
|
||||
).toBeInTheDocument();
|
||||
expect(screen.getByText(/your chat is ready/i)).toBeInTheDocument();
|
||||
});
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: /continue to chat/i }));
|
||||
@@ -270,9 +268,7 @@ describe('ContextGatheringStep', () => {
|
||||
);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(
|
||||
screen.getByText(/we couldn't build your full profile right now/i)
|
||||
).toBeInTheDocument();
|
||||
expect(screen.getByText(/your chat is ready/i)).toBeInTheDocument();
|
||||
});
|
||||
|
||||
expect(screen.getByRole('button', { name: /continue to chat/i })).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user