Problem/Motivation

When the chat saves or opens a page, the preview pane shows an empty white frame until that page has loaded. On a cold cache this takes several seconds, and the pane looks broken.

Steps to reproduce

  1. Clear the caches.
  2. In the chat, ask for a new Basic page and approve it.
  3. Watch the preview pane after the page is saved: it stays white until the page loads.

Proposed resolution

While the frame loads a different page, show Drupal's progress throbber over it with "Loading the page…", and hide it when the frame has loaded.

Remaining tasks

  • Review the issue fork's branch.
  • Open a merge request.

User interface changes

A loading indicator in the preview pane.

API changes

None. The preview library now depends on core/drupal.ajax for the throbber.

Data model changes

None.

This comment was drafted by an LLM before it was reviewed by me.

Issue fork site_agent-3636070

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

tbcs created an issue. See original summary.

tbcs’s picture

Status: Active » Needs review

  • tbcs committed 55dbed76 on 1.0.x
    #3636070: Show that the preview is loading, rather than an empty white...
tbcs’s picture

Status: Needs review » Fixed

Merged into 1.0.x as 55dbed7.

This comment was drafted by an LLM before it was reviewed by me.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.