feat: reduce org dashboard top tasks from 5 to 3
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
20c69bcb7e
commit
92847f4095
2 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ public class OrgDashboardUseCase {
|
||||||
return new OrgTopTask(t.getId(), t.getTitle(), projectName, minutes);
|
return new OrgTopTask(t.getId(), t.getTitle(), projectName, minutes);
|
||||||
})
|
})
|
||||||
.sorted(Comparator.comparingLong(OrgTopTask::totalMinutes).reversed())
|
.sorted(Comparator.comparingLong(OrgTopTask::totalMinutes).reversed())
|
||||||
.limit(5)
|
.limit(3)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
Map<String, Long> finishedByMember = new HashMap<>();
|
Map<String, Long> finishedByMember = new HashMap<>();
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ export const OrgDashboardPage: React.FC = () => {
|
||||||
<section className="bg-surface border border-border-soft rounded-[2.5rem] p-8 shadow-sm">
|
<section className="bg-surface border border-border-soft rounded-[2.5rem] p-8 shadow-sm">
|
||||||
<div className="flex items-center gap-2 mb-8">
|
<div className="flex items-center gap-2 mb-8">
|
||||||
<Trophy size={20} className="text-amber-500" />
|
<Trophy size={20} className="text-amber-500" />
|
||||||
<h2 className="text-xl font-black text-text-main">Top 5 Tarefas</h2>
|
<h2 className="text-xl font-black text-text-main">Top 3 Tarefas</h2>
|
||||||
<span className="ml-auto text-xs font-bold text-text-muted bg-surface-muted px-2 py-1 rounded-lg">
|
<span className="ml-auto text-xs font-bold text-text-muted bg-surface-muted px-2 py-1 rounded-lg">
|
||||||
por tempo
|
por tempo
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue