Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Product Pull Request] fix: make iframe wrapper take all vieport width #268

Closed
4 of 7 tasks
jmakowski1123 opened this issue Apr 24, 2023 · 19 comments
Closed
4 of 7 tasks
Assignees
Labels
product review complete PR has gone through product review

Comments

@jmakowski1123
Copy link

jmakowski1123 commented Apr 24, 2023

Abstract

For Contributing Author:

This is the Primary Product Ticket for the following community contribution: Add a toggle to allow redirecting to courseware after enrollment

Checklist prior to undergoing Product Review:

The following information is required in order for Product Managers to be able to review your pull request:

  • Explanation of the problem being solved
  • Description of how users will be impacted, and which users will be impacted
  • Screenshots or video showing the functionality or fix, before and after
  • Reproduction steps and/or testing steps

Only if necessary:

  • If necessary, links to corresponding configuration changes
  • If necessary, links to corresponding enablement changes, particularly waffle/toggle status details

Related PRs

For Product Manager doing the review:

What criteria should be analyzed from Product to approve a PR?

  • The problem being solved by the feature or fix is clear.
  • There is clarity on how the change or fix will impact the end user.
  • It is clear that the change will not negatively impact users or other areas of the platform.
  • The change is implemented comprehensively.
  • Any changes to UI use the current, standard Paragon Design System: https://paragon-openedx.netlify.app/
@github-actions
Copy link

Thanks for your submission, @openedx/open-edx-project-managers will review shortly.

@jmakowski1123
Copy link
Author

Original PR:

Resolves openedx/xblock-drag-and-drop-v2#312. Probably it was introduced in openedx/frontend-app-learning#27.

Consider how the block interface behaves in the legacy courseware (Lilac):

2023-04-02.16-46-58.mp4
On the video you can see that when the viewport reaches 480px, the block resets content width and makes it scrollable. This was implemented this way intentionally in this PR: openedx/xblock-drag-and-drop-v2#135.

Here is how it behaves in this MFE:

2023-04-02.16-49-45.mp4
Something weird happens when the viewport width reaches 574px. The iframe shrinks, making XBlock very hard to use.

With changes from this PR:

2023-04-02.16-54-47.mp4
It basically removes / compensates padding from the iframe's parent containers and sets 100% width for the iframe container itself. You can see that the block now behaves as in the legacy courseware.

Testing instructions
Switch $(DEVSTACK_ROOT)/frontend-app-learning to this branch.
Verify that xblock-drag-and-drop-v2's content behaves exactly as on the third video in different browsers.
Misc notes
You may notice this bug on the videos:
image

It's not related to this PR's changes, but possibly to this: openedx/frontend-app-learning#414

private-ref

@jmakowski1123
Copy link
Author

@cablaa77 This one is for product review. For some reason I can't move the screenshots over from the original PR, so you can see them here. openedx/frontend-app-learning#1094

@itsjeyd
Copy link

itsjeyd commented Jun 7, 2023

Hi @cablaa77, could you provide a rough estimate on when we can expect product feedback for this feature?

CC @jmakowski1123

@itsjeyd
Copy link

itsjeyd commented Jun 27, 2023

Hi @jmakowski1123 @cablaa77 @Daniel-hershel, what can we do to get product review started for this feature?

CC:

@0x29a for openedx/frontend-app-learning#1094
@xitij2000 @mphilbrick211 for openedx/edx-platform#31715

@ali-hugo
Copy link

ali-hugo commented Jun 27, 2023

@itsjeyd I came across this PR and decided to look into it.

I noticed something on the final video posted on 1094. At 0:00, the course navigation fills the whole viewport width:

0:00

But, at 0:29 the navigation is narrower than the viewport width:

0:29

Is this expected behaviour? Would it be possible for the navigation to fill the entire wrap?

Other than that, the update looks great to me!

@0x29a
Copy link

0x29a commented Jun 28, 2023

@ali-hugo, this is not expected, but I think it's a separate bug. I mentioned it in the "Misc notes" section of the PR, but perhaps should have added more details:
image

@itsjeyd
Copy link

itsjeyd commented Jun 28, 2023

I came across this PR and decided to look into it.

Thanks a lot @ali-hugo!

@ali-hugo
Copy link

@ali-hugo, this is not expected, but I think it's a separate bug. I mentioned it in the "Misc notes" section of the PR, but perhaps should have added more details:

@0x29a Oh, I see. I didn't realise the icon was supposed to appear next to the navigation. Got it! Thanks for the diagram.

@antoviaque
Copy link

@ali-hugo Thank you for the review here! 👍

@jmakowski1123 Will @ali-hugo 's review be binding, ie will be sufficient to complete the product review, and allow the PR to merge once the issues fixed? Or will it still require a product review?

@itsjeyd
Copy link

itsjeyd commented Jul 7, 2023

(Side note for additional context: openedx/edx-platform#31715 hasn't gone through engineering review yet. So regardless of who gets to provide final/binding approval from product perspective, there will be one more step to complete before we can merge it.)

@itsjeyd
Copy link

itsjeyd commented Jul 11, 2023

@ali-hugo Is this good from your side now and if so, would you mind leaving an explicit approval?

Depending on @jmakowski1123's input on @antoviaque's question above, we might still need another 👍 from product, but it would be good to know if you have any additional feedback for @0x29a to address.

@itsjeyd
Copy link

itsjeyd commented Jul 11, 2023

@jmakowski1123 I just noticed that the info about related PRs in the issue description might need updating? In particular, the following parts seem to be referencing a different feature and PR than openedx/frontend-app-learning#1094:

For Contributing Author:

This is the Primary Product Ticket for the following community contribution: Add a toggle to allow redirecting to courseware after enrollment
Checklist prior to undergoing Product Review:

...

Related PRs

openedx/edx-platform#31715

@ali-hugo
Copy link

@ali-hugo Is this good from your side now and if so, would you mind leaving an explicit approval?

@itsjeyd @0x29a

I took another look at the videos on #1094 and everything looks good to me. You can consider this my official approval! ✅

@itsjeyd
Copy link

itsjeyd commented Jul 12, 2023

Great, thanks for the quick reply @ali-hugo 🎉

@itsjeyd
Copy link

itsjeyd commented Jul 18, 2023

@Agrendalath
Copy link
Member

@itsjeyd, the PR is merged now. Should we change the label and close this issue?

@itsjeyd
Copy link

itsjeyd commented Aug 1, 2023

@Agrendalath Updating feature tickets on the Open edX Roadmap board is currently out-of-scope for OSPR management, so I'll let @jmakowski1123 handle this part.

@jmakowski1123 Happy to ping someone else from the product team if that's what you'd prefer; just let me know.

(In the meantime I did change the label from ready for product review to product review done to avoid unnecessary churn for product reviewers looking for PRs to review.)

@jmakowski1123 jmakowski1123 added product review complete PR has gone through product review and removed product review done labels Mar 28, 2024
@sarina
Copy link
Contributor

sarina commented Jun 4, 2024

Closing as this is marked "Shipped" on the PR board 🎉

@sarina sarina closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product review complete PR has gone through product review
Projects
Archived in project
Status: Shipped
Status: Review done
Development

No branches or pull requests

8 participants