Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,53 @@ <h2 class="font-['Roboto_Slab'] font-semibold text-[16px]">Recent Progress</h2>
</div>
</div>

<div class="overflow-hidden">
<div #progressScroll class="flex gap-4 overflow-x-auto pb-2 hide-scrollbar scroll-smooth" data-testid="dashboard-recent-progress-items">
@for (item of progressItems(); track item.label) {
@if (isLoading()) {
<!-- Loading State -->
<div class="flex items-center justify-center p-12">
<div class="text-center space-y-3">
<i class="fa-light fa-spinner-third fa-spin text-4xl text-[#0094FF]"></i>
<p class="text-sm text-gray-500">Loading project data...</p>
</div>
</div>
} @else {
<div class="overflow-hidden">
<div #progressScroll class="flex gap-4 overflow-x-auto pb-2 hide-scrollbar scroll-smooth" data-testid="dashboard-recent-progress-items">
@for (item of progressItems(); track item.label) {
<div class="p-4 bg-white rounded-lg border border-slate-200 flex-shrink-0 w-80" [attr.data-testid]="'dashboard-recent-progress-item-' + item.label">
<div class="space-y-3">
<h5 class="text-sm font-medium w-full">{{ item.label }}</h5>
<div class="w-full h-8">
<div class="flex items-center gap-2">
<h5 class="text-sm font-medium w-full">{{ item.label }}</h5>
<span
[class]="item.isConnected ? 'text-green-500' : 'text-gray-400'"
class="text-xs cursor-help"
[pTooltip]="item.isConnected ? 'Connected to live data' : 'Using placeholder data'"
tooltipPosition="top">
Comment thread
mauriciozanettisalomao marked this conversation as resolved.
Outdated
</span>
</div>
<div class="w-full h-24 relative">
Comment thread
mauriciozanettisalomao marked this conversation as resolved.
Outdated
<lfx-chart [type]="item.chartType" [data]="item.chartData" [options]="item.chartOptions" height="100%"></lfx-chart>
</div>
<div class="space-y-1">
<div class="text-xl font-medium">{{ item.value }}</div>
@if (hasTooltip(item.label)) {
<div
class="text-xl font-medium cursor-help"
[pTooltip]="getTooltipContent(item.label)"
[escape]="false"
tooltipPosition="top">
{{ item.value }}
</div>
} @else {
<div class="text-xl font-medium">{{ item.value }}</div>
}
@if (item.subtitle) {
<div class="text-xs text-gray-500">{{ item.subtitle }}</div>
}
</div>
</div>
</div>
}
}
</div>
</div>
</div>
}
</section>
Loading