Show only the name and email, not who the account books for
CI / Tests (PHP 8.2) (pull_request) Successful in 42s
CI / PHPStan (pull_request) Successful in 2m56s
CI / Coding Standards (pull_request) Successful in 2m57s
CI / Tests (PHP 8.3) (pull_request) Successful in 2m44s
CI / Tests (PHP 8.1) (pull_request) Successful in 53s
CI / No Debug Code (pull_request) Successful in 2s
CI / Build Plugin Zip (pull_request) Skipped

The block reports who is signed in and nothing more. Dropping the "Booking
for …" line takes GuardianService with it — it was the only reason the page
had a dependency at all, so AccountPage now constructs with no arguments.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
2026-07-29 22:35:04 -03:00
co-authored by Claude Opus 5
parent 46cee7a454
commit 4c92d19d2e
9 changed files with 7 additions and 84 deletions
+1 -2
View File
@@ -538,8 +538,7 @@
font-weight: 600;
}
.us-account-email,
.us-account-students {
.us-account-email {
display: block;
font-size: 0.9em;
opacity: 0.75;
+1 -1
View File
@@ -310,7 +310,7 @@
{
name: 'us-scheduler/account',
title: __('Account', 'unsupervised-schedular'),
description: __('Shows who is signed in, who they book for, and a sign out link. Renders nothing for signed-out visitors unless a login page is chosen.', 'unsupervised-schedular'),
description: __('Shows the name and email of whoever is signed in, with a sign out link. Renders nothing for signed-out visitors unless a login page is chosen.', 'unsupervised-schedular'),
icon: 'admin-users',
keywords: ['account', 'sign out', 'log out', 'signed in', 'profile'],
shortcode: 'us_account',