Skip to content

Profile Screen -> Media Tabs -> Reorder Tracking Media Lists - #736

Merged
imashnake0 merged 8 commits into
mainfrom
reorder-tracking-lists
Jul 28, 2026
Merged

Profile Screen -> Media Tabs -> Reorder Tracking Media Lists#736
imashnake0 merged 8 commits into
mainfrom
reorder-tracking-lists

Conversation

@imashnake0

Copy link
Copy Markdown
Owner

Reorder tracking lists. This also changes the order on Anilist.

Summary of changes:

  1. Add reorder locally.
  2. Mutate the order on Anilist.

Tested changes:
:[

@imashnake0 imashnake0 self-assigned this Jul 28, 2026
@imashnake0 imashnake0 added the enhancement Enhancement label Jul 28, 2026
@imashnake0
imashnake0 marked this pull request as ready for review July 28, 2026 03:12
}

fun updateUser(profileColor: String?): Flow<Result<String?>> {
fun updateUser(
setViewerAvatar(null)
fun updateAnimeLists(sectionOrder: List<String>) = viewModelScope.launch(Dispatchers.IO) {
userRepository.updateUser(animeSectionOrder = sectionOrder).collect {
preferencesRepository.setAnimeListOrder(it.getOrNull()?.mediaListOptions?.animeList?.sectionOrder?.filterNotNull())
userRepository.updateUser(animeSectionOrder = sectionOrder).collect {
preferencesRepository.setAnimeListOrder(it.getOrNull()?.mediaListOptions?.animeList?.sectionOrder?.filterNotNull())
}
refreshAnimeLists()

fun updateMangaLists(sectionOrder: List<String>) = viewModelScope.launch(Dispatchers.IO) {
userRepository.updateUser(mangaSectionOrder = sectionOrder).collect {
preferencesRepository.setMangaListOrder(it.getOrNull()?.mediaListOptions?.mangaList?.sectionOrder?.filterNotNull())
userRepository.updateUser(mangaSectionOrder = sectionOrder).collect {
preferencesRepository.setMangaListOrder(it.getOrNull()?.mediaListOptions?.mangaList?.sectionOrder?.filterNotNull())
}
refreshMangaLists()

fun refresh(setIsRefreshing: (Boolean) -> Unit) = viewModelScope.launch(Dispatchers.IO) {
setIsRefreshing(true)
useNetwork = true
onClick = collapseAll
)
Row(horizontalArrangement = Arrangement.spacedBy(LocalPaddings.current.small)) {
val alpha by animateFloatAsState(if (isReordering) 0.3f else 1f)
@imashnake0

Copy link
Copy Markdown
Owner Author
screen-20260727-214209-1785202918715.mp4.2.mp4

@imashnake0
imashnake0 merged commit a9ba5a9 into main Jul 28, 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