Skip to content

Dev playlists#175

Open
lipsa-b wants to merge 60 commits into
mainfrom
dev-playlists
Open

Dev playlists#175
lipsa-b wants to merge 60 commits into
mainfrom
dev-playlists

Conversation

@lipsa-b

@lipsa-b lipsa-b commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@lipsa-b lipsa-b linked an issue Mar 13, 2026 that may be closed by this pull request
lipsa-b added 5 commits March 16, 2026 12:11
# Conflicts:
#	respect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/apps/launcher/AppLauncherViewModel.kt
# Conflicts:
#	respect-app-compose/src/commonMain/kotlin/world/respect/app/app/App.kt
respectNavController: RespectComposeNavController,
onSetAppUiState: (AppUiState) -> Unit,
) {
LaunchedEffect(Unit) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This code must be removed immediately: this is not how set the title. This is done using the ViewModel. This is not following patterns. Please do not write code in clear violation of the existing patterns without checking with other developers first.

lipsa-b and others added 21 commits March 26, 2026 19:31
- Update Maestro test flows for improved playlist and section assertions.
- Refactor `LearningUnitListScreen` to simplify multi-select UI and improve bottom button logic for playlist selection.
- Update `LearningUnitListViewModel` to handle playlist picking mode, supporting `ReadiumLink` results and preventing multi-select of publications during playlist selection.
- Improve `PlaylistEditViewModel` to correctly resolve playlist titles and navigation links when adding items to sections.
- Refine section type detection in `PlaylistEditScreen` to properly distinguish between navigation and publication sections.
- Remove redundant app bar state restoration calls in `PlaylistEditScreen`.
# Conflicts:
#	respect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/learningunit/list/LearningUnitListViewModel.kt
#	respect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/playlists/mapping/edit/PlaylistEditViewModel.kt
#- assertVisible: "Share link"
#- assertVisible: "Send link via SMS"
#- assertVisible: "Send link via email"
#- tapOn:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@mikedawson
This test will fail because when we tap on Copy Link, the user is navigated to the Enter Link screen and the link is copied to the system clipboard.
However, when attempting to paste into the input field, the paste command reads from the Maestro clipboard instead of the system clipboard.
As a result, it doesn’t get the correct URL and throws an “invalid URL” error.

@mikedawson mikedawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This must be reviewed carefully in accordance with coding guidelines, especially when it comes to the Don't Repeat Yourself principle (the very first thing at the top of the "very important" section of the coding guidelines

e.g. if there is a list do not have a separate variable for the count of the number of items. Use single point of truth, do not repeat, use the list's .size.

@mikedawson

Copy link
Copy Markdown
Member

@lipsa-b as you mentioned this was not quite ready for review before, please add a comment here when you believe it is ready for review.

@lipsa-b

lipsa-b commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator Author

Its ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playlists

4 participants