refactor: version 2.18.2 -- Panel: se quita "Mis actividades pendientes"
El detalle vive en los popups de las tarjetas; se elimina tambien la consulta myPendingActivities del backend, que quedaba sin uso. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,7 @@ export default function DashboardPage() {
|
||||
const [detail, setDetail] = useState(null);
|
||||
|
||||
if (!data) return <div className="text-muted">{t('common_loading')}</div>;
|
||||
const { kpis, myActivities, projectsByStatus } = data;
|
||||
const { kpis, projectsByStatus } = data;
|
||||
const activeTotal = Number(kpis.activeProjects) || 0;
|
||||
const nonCancelledTotal = Number(kpis.nonCancelledProjects) || 0;
|
||||
const activitiesTotal = Number(kpis.nonCancelledActivities) || 0;
|
||||
@@ -125,21 +125,6 @@ export default function DashboardPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="panel-card">
|
||||
<h3>{t('dashboard_my_activities')}</h3>
|
||||
{myActivities.length === 0 && <div className="text-muted">{t('common_empty')}</div>}
|
||||
{myActivities.map((a) => (
|
||||
<div key={a.id} onClick={() => navigate(`/proyectos/${a.project_id}`)} style={ROW_STYLE}>
|
||||
<div style={{ flex: 1 }}>
|
||||
<div style={{ fontSize: '.82rem', fontWeight: 600 }}>{a.name}</div>
|
||||
<div className="text-muted" style={{ fontSize: '.72rem' }}>{a.project_name} · {a.due_date || '—'}</div>
|
||||
</div>
|
||||
<div style={{ width: 120 }}><ProgressBar value={Number(a.progress_pct)} /></div>
|
||||
<DueBadge status={a.dueStatus} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="panel-card">
|
||||
<h3>{t('dashboard_projects_by_status')}</h3>
|
||||
{projectsByStatus.map((s) => (
|
||||
|
||||
Reference in New Issue
Block a user