Skip to content

Profile Screen -> Update Tracking Media Entries (Disabled) - #742

Merged
imashnake0 merged 15 commits into
mainfrom
update-user-media-entries
Aug 4, 2026
Merged

Profile Screen -> Update Tracking Media Entries (Disabled)#742
imashnake0 merged 15 commits into
mainfrom
update-user-media-entries

Conversation

@imashnake0

@imashnake0 imashnake0 commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Made some changes to show a dialog on long click - disabled since we need to properly show the correct score type first.

Summary of changes:

  1. Show dialog on long clicking a media entry.
  2. Hide profile settings if not logged in.

Tested changes:

y

@imashnake0 imashnake0 self-assigned this Aug 4, 2026
@imashnake0 imashnake0 added the enhancement Enhancement label Aug 4, 2026
@imashnake0
imashnake0 marked this pull request as ready for review August 4, 2026 19:38
data class Tracking(
val id: Int,
val coverImage: String?,
val bannerImage: String?,
val id: Int,
val coverImage: String?,
val bannerImage: String?,
val color: String?,
val segments: Int?,
val progress: Int?,
val score: Score?,
val status: TrackingStatus,
data class NamedTrackingList(
val name: String?,
val existingListName: ListNames?,
val existingListName: TrackingStatus?,
}

enum class ListNames {
enum class TrackingStatus {
contentScale = ContentScale.Crop,
alignment = Alignment.Center,
colorFilter = ColorFilter.tint(
color = item.color?.toColorInt()?.let { Color(it) }?.copy(alpha = 0.25f) ?: Color.Transparent,
color = item.color?.toColorInt()?.let { Color(it) }?.copy(alpha = 0.25f) ?: Color.Transparent,
blendMode = BlendMode.SrcAtop
),
modifier = Modifier.fillMaxWidth().aspectRatio(19f / 4)
color = item.color?.toColorInt()?.let { Color(it) }?.copy(alpha = 0.25f) ?: Color.Transparent,
blendMode = BlendMode.SrcAtop
),
modifier = Modifier.fillMaxWidth().aspectRatio(19f / 4)
}
}

// TODO: This should be an actual dropdown.

// TODO: This should be an actual dropdown.
@Composable
fun StatusDropDown(
},
shapes = when (index) {
0 -> ButtonGroupDefaults.connectedLeadingButtonShapes()
ProfileColor.entries.lastIndex -> ButtonGroupDefaults.connectedTrailingButtonShapes()
enabled = useProfileColor,
colors = ToggleButtonDefaults.toggleButtonColors(
containerColor = entry.color,
contentColor = entry.color.darken(4f),
contentColor = entry.color.darken(4f),
checkedContainerColor = entry.color,
checkedContentColor = entry.color.darken(
4f
overflow = TextOverflow.Ellipsis
2 -> {
val amplitude by animateFloatAsState(
if (useExpressiveProgressIndicator) 0.5f else 0f
waveSpeed = 15.dp,
modifier = Modifier
.fillMaxWidth()
.graphicsLayer { alpha = 0.6f }
thumbContent = {
if (useProfileColor) {
Icon(
imageVector = ImageVector.vectorResource(R.drawable.fill_bucket),
Switch(
checked = useExpressiveProgressIndicator,
onCheckedChange = {
viewModel.setUseExpressiveProgressIndicator(!useExpressiveProgressIndicator)
private val preferencesRepository: PreferencesRepository,
) : ViewModel() {

val isLoggedIn = preferencesRepository
@imashnake0
imashnake0 merged commit a7932de into main Aug 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants