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/`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feedback
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: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
src/Auth/(e.g.AccountPage.php), template undertemplates/frontend/src/BlockRegistrar.php(the block map at lines 87-142)src/BlockPreview.phpsrc/ShortcodeRegistrar.phpdocs/features/tests/Unit/Auth/