fix: version 4.0.3 -- Indicador de proceso en consultas a la IA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { DetailPopup } from '../../components/DetailPopup.jsx';
|
||||
import { Button } from '../../components/Button.jsx';
|
||||
import { Field } from '../../components/Field.jsx';
|
||||
import { InfoBar } from '../../components/InfoBar.jsx';
|
||||
import { BusyPanel } from '../../components/BusyPanel.jsx';
|
||||
import { useUi } from '../../context/ui-context.jsx';
|
||||
import { generateProjectPlan, applyProjectPlan } from '../../services/ai.js';
|
||||
|
||||
@@ -54,6 +55,7 @@ export function AiPlanDialog({ open, projectId, onClose, onCreated }) {
|
||||
return (
|
||||
<DetailPopup open={open} title={t('ai_plan_title')} onClose={busy ? () => {} : close} width={720} height={620}>
|
||||
{error && <InfoBar tone="error">{error}</InfoBar>}
|
||||
{busy && <BusyPanel message={plan ? t('ai_busy_creating') : t('ai_busy_generating')} hint={plan ? undefined : t('ai_busy_hint')} />}
|
||||
{!plan ? (
|
||||
<>
|
||||
<p className="text-muted" style={{ marginTop: 0 }}>{t('ai_plan_hint')}</p>
|
||||
|
||||
@@ -5,6 +5,7 @@ import { Button } from '../../components/Button.jsx';
|
||||
import { Field, FieldRow } from '../../components/Field.jsx';
|
||||
import { ComboBox } from '../../components/ComboBox.jsx';
|
||||
import { InfoBar } from '../../components/InfoBar.jsx';
|
||||
import { BusyPanel } from '../../components/BusyPanel.jsx';
|
||||
import { useUi } from '../../context/ui-context.jsx';
|
||||
import { useAuth } from '../../context/auth-context.jsx';
|
||||
import { proposeNewProject, createNewProject } from '../../services/ai.js';
|
||||
@@ -71,6 +72,7 @@ export function NewProjectAiDialog({ open, deptOptions, minLength = 20, onClose,
|
||||
return (
|
||||
<DetailPopup open={open} title={t('ai_new_project_title')} onClose={close} width={760} height={680}>
|
||||
{error && <InfoBar tone="error">{error}</InfoBar>}
|
||||
{busy && <BusyPanel message={proposal ? t('ai_busy_creating') : t('ai_busy_generating')} hint={proposal ? undefined : t('ai_busy_hint')} />}
|
||||
{!proposal ? (
|
||||
<>
|
||||
<Field label={t('ai_new_project_objective')} hint={`${objective.trim().length}/${minLength} ${t('ai_new_project_min_chars')}`}>
|
||||
|
||||
Reference in New Issue
Block a user