add site quality audits and pagebuilder viewport selection
Add published-page accessibility and link checks with localized reports, and add responsive viewport controls to the page builder. Detect schema drift beyond matching hashes and apply lowercase definitions when creating or updating tables. Refresh generated admin, page-builder, and website-manager assets, and add coverage for quality checks, viewport selection, and schema migrations.
This commit is contained in:
@@ -26,6 +26,16 @@ class WebsiteManager implements WebsiteManagerContract
|
||||
exit();
|
||||
}
|
||||
|
||||
if ($route === 'quality' && $action === 'scan' && ($_SERVER['REQUEST_METHOD'] ?? '') === 'POST') {
|
||||
if (! function_exists('phpb_validate_csrf') || ! phpb_validate_csrf()) {
|
||||
http_response_code(403);
|
||||
die('Invalid CSRF token. Please refresh the page and try again.');
|
||||
}
|
||||
$_GET['tab'] = 'quality';
|
||||
$this->renderQualityChecks((new SiteQualityCheckService())->run());
|
||||
exit();
|
||||
}
|
||||
|
||||
if ($route === 'settings') {
|
||||
if ($action === 'renderBlockThumbs') {
|
||||
$this->renderBlockThumbs();
|
||||
@@ -223,6 +233,15 @@ class WebsiteManager implements WebsiteManagerContract
|
||||
require __DIR__ . '/resources/layouts/master.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the quality-check tab with an optional transient report.
|
||||
*/
|
||||
public function renderQualityChecks(?array $qualityReport = null)
|
||||
{
|
||||
$viewFile = 'overview';
|
||||
require __DIR__ . '/resources/layouts/master.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the website manager page settings (add/edit page form).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user