If any errors happen during activation, automatically scroll to the messages area

Created on 25 February 2025, about 1 month ago

Problem/Motivation

As of 📌 Turn ActivationManager::getActivationInfo() into a dedicated normalizer Active , if an error occurs while activating a project, the message is logged and returned to the frontend as a normal message in the messages area. However, you don't get automatically scrolled to the messages area, so you might not even know there were errors. If you then navigate away from the page, you'll never know.

Steps to reproduce

Alter ModuleActivator::activate() to unconditionally throw an exception, then try to install a module with Project Browser. The error message will appear in the messages area but you won't know unless you scroll there.

Proposed resolution

If we add an error messages to the response returned from InstallerController::activate(), also add a ScrollTopCommand that ensures you are scrolled to the messages area. We'll also want a test for this.

🐛 Bug report
Status

Active

Version

2.0

Component

User experience

Created by

🇺🇸United States phenaproxima Massachusetts

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024