Problem/Motivation

There is a big layout shift on views page. There is a momentary flash of the no-javascript buttons before they are processed into the familiar Views UI.

Steps to reproduce

1. go to admin/structure/views/view/content page
2. See the Displays block
3. See the screenshot for reference.

Page's view page

Proposed resolution

These should probably just be hidden and exposed with a no-js stylesheet.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3444740

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Gauravvvv created an issue. See original summary.

gauravvvv’s picture

Issue summary: View changes
gauravvvv’s picture

Issue summary: View changes
StatusFileSize
new45.35 KB
gauravvvv’s picture

Issue summary: View changes
gauravvvv’s picture

Issue summary: View changes

ahsannazir made their first commit to this issue’s fork.

ahsannazir’s picture

Status: Active » Needs review
StatusFileSize
new490.92 KB
new199.93 KB

Not able to reproduce the issue. I have added screenshots for reference.
Can you please add more details

smustgrave’s picture

Status: Needs review » Needs work

Believe I can see the issue when the page refreshes. On the "Page" tab. Some weird janky shift.

bnjmnm’s picture

What @smustgrave spotted in #8 should probably be addressed - there is a momentary flash of the no-javascript buttons before they are processed into the familiar Views UI. These should probably just be hidden and exposed with a no-js stylesheet. Claro is already adding one here so you can build from that.

The gif in the original issue summary looks like there are additional JavaScript errors as that gif shows clicking the "Add" button reloads the page. If JS is executing properly, that should not happen as the click event is prevented. If there is a JS error, however, the event handler that does this might not be getting added

ahsannazir’s picture

Status: Needs work » Needs review
StatusFileSize
new232.01 KB

Thanks @bnjmnm for the suggestions. I have added the the no-script css and attached screen capture for reference

kanchan bhogade’s picture

StatusFileSize
new223.12 KB
new125.38 KB

Hi
I've tested MR !8082 on Drupal 11
MR is applied successfully...

The View Page is loading smoothly, without shifting the layout

RTBC+1

Adding recording for reference

Keeping "needs review" for more reviews and code verification

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update

Issue summary is still incomplete. Proposed solution is blank and should be filled in.

As a UI change there should be a before/after screenshot or gif in this case if possible.

ahsannazir’s picture

Issue summary: View changes
ahsannazir’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs issue summary update +Needs Review Queue Initiative

Tested out the solution and appears to not be there anymore. Not going to upload another set of screenshots :)

nod_’s picture

Status: Reviewed & tested by the community » Needs work

few minor things

gauravvvv’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Added some additional comments.

ahsannazir’s picture

Status: Needs work » Needs review
bnjmnm’s picture

Status: Needs review » Needs work

See MR

Utkarsh_33 made their first commit to this issue’s fork.

utkarsh_33’s picture

Status: Needs work » Needs review

Rebased and also marking it needs review as all the feedbacks seems to be addressed.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Verified changes to MR still address the "shift" when reloading a view page. Believe all feedback has been addressed.

bnjmnm’s picture

Status: Reviewed & tested by the community » Needs work
utkarsh_33’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Believe comment is better now, going to take the risk and mark it

  • nod_ committed e700aa81 on 11.x
    Issue #3444740 by ahsannazir, Utkarsh_33, Gauravvvv, Kanchan Bhogade,...
nod_’s picture

Status: Reviewed & tested by the community » Fixed

Committed e700aa8 and pushed to 11.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.