Skip to content
Merged
Changes from all 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 @@ -393,6 +393,26 @@ private fun NavigationListSection(
count = state.starredCount,
onClick = { /* TODO */ }
)
NavigationItem(
icon = {
Box(
modifier = Modifier
.size(Dimens.IconSizeLarge)
.clip(MaterialTheme.shapes.small)
.background(MaterialTheme.colorScheme.primaryContainer),
contentAlignment = Alignment.Center
) {
Icon(
imageVector = Icons.Outlined.ViewTimeline,
contentDescription = null,
tint = MaterialTheme.colorScheme.onPrimaryContainer
)
}
},
label = stringResource(Res.string.nav_projects),
count = 0,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The count for the Projects item is hardcoded to 0. This contradicts the pull request's objective of ensuring ProfileUiState variables properly propagate and handling UI elements dynamically via State. To maintain consistency with other navigation items (such as Starred), this value should be sourced from the state. Please add a projectsCount field to ProfileUiState.Success and update the ProfileViewModel to provide the actual count.

onClick = { /* TODO */ }
)
}
}

Expand Down
Loading