Fix pager behavior and style in Media Library widget with or without AJAX issues in deep level 4 or 5 AJAxing

Created on 15 November 2023, about 1 year ago
Updated 12 December 2023, 12 months ago

Problem/Motivation

Steps to reproduce

Given a Landing Page was configured to work with the Varbase Layout Builder
And a Block type has a media reference field in it to assign a media
And a the field widget is using the media library widget
When the user click on "Add block" in a section
And choose to Create a new inline block
And choose the block with media reference in it
Then the modal block will open
When the user click "Add media"
Then the "Add or select media" media library will open
When the user click or filter for media items
Then some AJAX + 414 errors
And the look of the pager is not styled in the right way.

Proposed resolution

  • Re-set Media Library view to default Drupal 10 config
  • Add custom fields and view modes after the rest to make sure that default AJAX settings are matching with Drupal 10
  • Manage a working update hook to fix site
  • Manage the style for the pager to work in all Layout Editing UX/UI .. in the 4th or 5th AJAX level ( Allow for more AJAX levels to work )
  • A media entity could be referenced in a paragraph then the paragraph is referenced in the inline block type
  • 🐛 Fix Request-URI Too Long 414 for deep level 4 or 5+ AJAX requests Fixed
  • 📌 Add compress ajax page state to Drupal ~10.1.0 Fixed

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ✅ UX/UI designer responsibilities
  • ✅ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.0.17 , varbase_media-9.0.35 , varbase-10.0.0-rc1 , varbase_media-10.0.0-beta8

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

After the fix:

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3401833 by Ahmad Abbad : Fixed pager behavior and style in Media Library widget with or without AJAX issues in deep level 4 or 5 AJAxing
🐛 Bug report
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan ahmad abbad Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024