feat: display activity tags in MaintenanceDashboardScreen list and detail items
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
Text(
|
Row(
|
||||||
text = activity.numeroOs,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
fontSize = 20.sp,
|
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
||||||
fontWeight = FontWeight.Black,
|
) {
|
||||||
color = BrandBlack
|
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) {
|
IconButton(onClick = onDismiss) {
|
||||||
|
|||||||
Reference in New Issue
Block a user