Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

feat: allow fullscreen mode #560

Merged
merged 1 commit into from
Mar 15, 2024
Merged

feat: allow fullscreen mode #560

merged 1 commit into from
Mar 15, 2024

Conversation

juancarlosfarah
Copy link
Member

@pyphilia @spaenleh, here's the implementation of the full screen. It includes "fake" and "real" full screen mode.

Fake

To activate, you need to append ?fullscreen=true to the URL. The left side bar and the header will disappear. Like this, it's a "fake" full screen. You can navigate with the bar in the bottom.

Real

Only within "fake" full screen mode (for now), you can activate the real full screen mode by clicking on an icon button.

I'm also including a fix where the navigation footer hides the cookie banner.

Do you think we can send this to staging soon? Thanks!

Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

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

@juancarlosfarah Thank you for the PR, here are my first impressions:

From my understanding of the current implementation:

  • the "fake" fullscreen can only be toggled with the query param fullscreen=true
  • once inside the fake fullscreen you see the "real" fullscreen button (it says "enter fullscreen")
  • There is nowhere in the interface to remove the "fake" fullscreen. I fear users might get stuck in there. Also how can you access it if you do not know that there is a special query you can add ? Is it intended to be "secret" ?

I have an issue with the cookie banner covering the navigation, so if I never accept nor deny the cookies I will never see the navigation ? Also the bottom bar can cover the end of the page on scroll. We should add a safety padding at the end of the page.

We already have a fullscreen hook (it should work (used in the code capsule app), as it is also based on the Fullscreen API https://github.com/graasp/graasp-ui/blob/d822fdeb7e0c8db7c836ff86f283ba5dfc5da65c/src/hooks/useFullscreen.tsx#L8)

Copy link
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

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

Looks good ! Thank you for the changes ! 🏆

@juancarlosfarah
Copy link
Member Author

@spaenleh thanks for your review. Will go ahead and merge. For the cookie banner issue, we can tackle it in another branch. How do you want to do that? Just padding?

@juancarlosfarah juancarlosfarah added this pull request to the merge queue Mar 15, 2024
@spaenleh
Copy link
Member

@juancarlosfarah Not sure, maybe we just leave it as is, this issue is also present in the builder for example, it obstructs some part of the UI.

@juancarlosfarah
Copy link
Member Author

juancarlosfarah commented Mar 15, 2024

@spaenleh @pyphilia

Just for completeness, the cookie banner covering the navigation is also present in the builder, where it covers the pagination button.

@juancarlosfarah
Copy link
Member Author

@juancarlosfarah Not sure, maybe we just leave it as is, this issue is also present in the builder for example, it obstructs some part of the UI.

Exactly. I mentioned that in my comment which was sent concurrently with yours.

Merged via the queue into main with commit fd230cc Mar 15, 2024
5 checks passed
@juancarlosfarah juancarlosfarah deleted the 558-central branch March 15, 2024 08:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants