feat: display activity tags in MaintenanceDashboardScreen list and detail items

This commit is contained in:
Jhony Cesar
2026-08-05 12:45:13 -04:00
parent 6b8653fad3
commit d56fc6ab96

View File

@@ -949,6 +949,22 @@ fun OSListItemCard(
color = BrandBlack color = BrandBlack
) )
if (activity.tag.isNotBlank()) {
Box(
modifier = Modifier
.clip(RoundedCornerShape(4.dp))
.background(Color(0xFFE3F2FD))
.padding(horizontal = 6.dp, vertical = 2.dp)
) {
Text(
text = activity.tag,
fontSize = 11.sp,
fontWeight = FontWeight.Bold,
color = Color(0xFF1976D2)
)
}
}
// Sync Status Badge // Sync Status Badge
Icon( Icon(
imageVector = if (activity.synced) Icons.Default.CloudDone else Icons.Default.CloudQueue, imageVector = if (activity.synced) Icons.Default.CloudDone else Icons.Default.CloudQueue,
@@ -1357,12 +1373,32 @@ fun EditActivityBottomSheet(
fontWeight = FontWeight.Bold, fontWeight = FontWeight.Bold,
color = StatusGrey color = StatusGrey
) )
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(8.dp)
) {
Text( Text(
text = activity.numeroOs, text = activity.numeroOs,
fontSize = 20.sp, fontSize = 20.sp,
fontWeight = FontWeight.Black, fontWeight = FontWeight.Black,
color = BrandBlack color = BrandBlack
) )
if (activity.tag.isNotBlank()) {
Box(
modifier = Modifier
.clip(RoundedCornerShape(4.dp))
.background(Color(0xFFE3F2FD))
.padding(horizontal = 6.dp, vertical = 2.dp)
) {
Text(
text = activity.tag,
fontSize = 12.sp,
fontWeight = FontWeight.Bold,
color = Color(0xFF1976D2)
)
}
}
}
} }
IconButton(onClick = onDismiss) { IconButton(onClick = onDismiss) {