Skip to content

Conversation

@justin212407
Copy link
Member

Description:

This PR is in continuation to #4320. It adds the features to Play-Only-Mode that has previously been discussed on.

Changes Made:

This PR ensures that the only elements being rendered upon in play-only-mode are:

  1. Change Theme Icon
  2. Trash Icon
  3. Language Selection Icon

This also ensures that the horizontal scrolling feature is activated as default in play-only-mode.

Screenshots:

Untitled.video.-.Made.with.Clipchamp.6.mp4

Checklist:

  • The code has been tested in Play Only Mode.
  • There are no breaking changes.
  • My changes adhere to the project's contribution guidelines.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@justin212407
Copy link
Member Author

@walterbender please review this.

@Ubayed-Bin-Sufian
Copy link
Contributor

@justin212407 Could you please update the documentation/README.md with play only mode? We do not have it right now.

@justin212407
Copy link
Member Author

justin212407 commented Mar 11, 2025

Yes I'll update that accordingly @walterbender @pikurasa where would you want the documentation/Readme.md for the play-only-mode to be at specifically?

@walterbender
Copy link
Member

The main README.md file is the right place to document this.

@walterbender
Copy link
Member

Screenshot From 2025-03-11 18-26-41

Not sure if this is the expected behavior.

@justin212407
Copy link
Member Author

It works fine on my device locally this is how it looks.Please change over to full screen to be sure that play-only-mode activates
This is how it looks when i change to full screen:
image
This is how it looks when in normal screen:
image

Signed-off-by: Justin Charles <[email protected]>
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@justin212407
Copy link
Member Author

justin212407 commented Mar 12, 2025

@walterbender I tested the same on Microsoft Edge too. This is how it looks:

Untitled.video.-.Made.with.Clipchamp.7.mp4

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@walterbender
Copy link
Member

I am not sure what is going on, but I cannot reproduce the behavior you are seeing in either Firefox or Chromium.

@Karan-Palan
Copy link
Contributor

Karan-Palan commented Mar 15, 2025

Toolbaar does not work below 400px, otherwise works fine

Screencast.from.2025-03-15.08-17-09.webm

Tested on Firefox and Brave

@justin212407
Copy link
Member Author

justin212407 commented Mar 15, 2025

I am not sure what is going on, but I cannot reproduce the behavior you are seeing in either Firefox or Chromium.

@walterbender Did you go full screen? Play-only-mode only works in full screen. Also the screen width should definitely be below 768px it will work only then.

@justin212407
Copy link
Member Author

Toolbaar does not work below 400px, otherwise works fine

Screencast.from.2025-03-15.08-17-09.webm
Tested on Firefox and Brave

@Karan-Palan might have gotten overlooked thanks for pointing it out I'll fix that and push the changes to this pr once walter can reproduce this locally.

@justin212407
Copy link
Member Author

@walterbender since you are unable to reproduce the behavior should I close this pr and open a new one with with same changes?

@walterbender
Copy link
Member

I don't know. Maybe @pikurasa can test?

@justin212407
Copy link
Member Author

justin212407 commented Mar 20, 2025

Sure we can definitely do that. I also asked @apsinghdev to check this out in the last meet if it's possible

@pikurasa
Copy link
Collaborator

I set up the following for testing on a phone: https://sandbox.musicblocks.net/test/pikurasa/

Currently it's on "HEAD is now at c8a1363 Merge branch 'master' of https://github.com/justin212407/musicblocks into play-only-mode-additions" (and it requires manual updates).

@pikurasa
Copy link
Collaborator

Here are the results of testing via Chromium on a Pixel 9 mobile phone:

Specifically, the improvements would be:

So those are the results of my testing on a Pixel 9 mobile phone.

Based on this, the improvement areas are:

  1. If possible, figure out a way to initiate play-only mode without the necessity of clicking fullscreen. This extra step is problematic. If this works, then you probably don't need the fullscreen button at all.
  2. If it's not possible to initiate play-only mode without clicking fullscreen, please find a way to 1) make it discoverable to the user and 2) persistent even after a user leaves focus from the application and returns to it.
  3. Put the messages printed at the top of the screen at the new play-only mode screen center, and readjust its width so that a user can read the message.
  4. (Lowest priority) Adjust the location of the Sugar Labs logo for the splashscreen, so that it can be seen when opening the app. (This issue may be solved if you solve the fullscreen issue, but I'm not entirely sure.)

@apsinghdev
Copy link
Contributor

apsinghdev commented Mar 21, 2025

play_mode.mp4

@justin212407 I am able to see the changes you mentioned but the UI is not responsive. What if we tackle the issue of responsiveness first and then circle back to it? (As this issue depends on the UI). Also, I agree with the improvements suggested by @pikurasa. Tackling these will lead to a really good outcome. Probably, you'll need to prioritize the improvements.

@justin212407
Copy link
Member Author

@apsinghdev go into full screen mode then you won't face the responsiveness issue

@justin212407
Copy link
Member Author

Here are the results of testing via Chromium on a Pixel 9 mobile phone:

Specifically, the improvements would be:

So those are the results of my testing on a Pixel 9 mobile phone.

Based on this, the improvement areas are:

  1. If possible, figure out a way to initiate play-only mode without the necessity of clicking fullscreen. This extra step is problematic. If this works, then you probably don't need the fullscreen button at all.
  2. If it's not possible to initiate play-only mode without clicking fullscreen, please find a way to 1) make it discoverable to the user and 2) persistent even after a user leaves focus from the application and returns to it.
  3. Put the messages printed at the top of the screen at the new play-only mode screen center, and readjust its width so that a user can read the message.
  4. (Lowest priority) Adjust the location of the Sugar Labs logo for the splashscreen, so that it can be seen when opening the app. (This issue may be solved if you solve the fullscreen issue, but I'm not entirely sure.)

yes i will be trying to look into this as for the fullscreen mode I will probably have to dig deeper into how dpr works. For now i will implement points 2,3 and 4 as they are an urgent fix.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@pikurasa
Copy link
Collaborator

@justin212407 where are things at with this? I see a few new commits. Is it ready to test again?

@justin212407
Copy link
Member Author

@pikurasa i did make some changes but as we talked about in the meet, we need to find out the root cause as to why this change has happened so as discussed in the meeting. I am checking out the prs which made changes to the index file. So that we can fix this change between FullScreen Mode and Normal Mode having the same changes reflect in both so that it is a permanent fix and not just a temporary one.
I will let you know as soon as this is done.
The investigation as to what caused this change between the modes is taking some time.

@pikurasa
Copy link
Collaborator

The investigation as to what caused this change between the modes is taking some time.

If you want to write up a blog about your investigation, that could be nice. It may even help you work through the problem.

@justin212407
Copy link
Member Author

@pikurasa Sure i will definitely do that

@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2025

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@walterbender
Copy link
Member

@pikurasa is this ready to merge?

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@justin212407
Copy link
Member Author

@walterbender @pikurasa this is almost done have brought this feature to normal screen too now the only thing left is having horizontal scroll

@github-actions
Copy link
Contributor

This pull request has been open for more than 60 days without any activity. It will be closed in 3 days unless the stale label is removed or commented on.

@github-actions github-actions bot added the Stale label Jul 29, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2025

Closed pull request due to inactivity for more than 63 days.

@github-actions github-actions bot closed this Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants