Add an account block showing who is signed in, with a sign out button #142

Closed
opened 2026-07-29 23:07:53 +00:00 by thatguygriff · 0 comments
Owner

Feedback

Add a block that shows details of who is signed in with a sign out button

What's needed

A new editor block (alongside us-scheduler/student-login, us-scheduler/booking, us-scheduler/family) that renders, for a signed-in visitor:

  • their name and email
  • a Sign out button (wp_logout_url() with a redirect back to a page chosen in block attributes)

Signed-out state should either render nothing or a link to the login page — decide and document.

Places to touch

  • New domain class under src/Auth/ (e.g. AccountPage.php), template under templates/frontend/
  • Register the block in src/BlockRegistrar.php (the block map at lines 87-142)
  • Editor preview in src/BlockPreview.php
  • Shortcode equivalent in src/ShortcodeRegistrar.php
  • Feature doc in docs/features/
  • Tests under tests/Unit/Auth/
## Feedback > Add a block that shows details of who is signed in with a sign out button ## What's needed A new editor block (alongside `us-scheduler/student-login`, `us-scheduler/booking`, `us-scheduler/family`) that renders, for a signed-in visitor: - their name and email - a **Sign out** button (`wp_logout_url()` with a redirect back to a page chosen in block attributes) Signed-out state should either render nothing or a link to the login page — decide and document. ## Places to touch - New domain class under `src/Auth/` (e.g. `AccountPage.php`), template under `templates/frontend/` - Register the block in `src/BlockRegistrar.php` (the block map at lines 87-142) - Editor preview in `src/BlockPreview.php` - Shortcode equivalent in `src/ShortcodeRegistrar.php` - Feature doc in `docs/features/` - Tests under `tests/Unit/Auth/`
thatguygriff added the feature label 2026-07-29 23:07:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#142