feat: display activity tags in MaintenanceDashboardScreen list and detail items
This commit is contained in:
@@ -949,6 +949,22 @@ fun OSListItemCard(
|
||||
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
|
||||
Icon(
|
||||
imageVector = if (activity.synced) Icons.Default.CloudDone else Icons.Default.CloudQueue,
|
||||
@@ -1357,12 +1373,32 @@ fun EditActivityBottomSheet(
|
||||
fontWeight = FontWeight.Bold,
|
||||
color = StatusGrey
|
||||
)
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
||||
) {
|
||||
Text(
|
||||
text = activity.numeroOs,
|
||||
fontSize = 20.sp,
|
||||
fontWeight = FontWeight.Black,
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user