Problem/Motivation
Varbase Users Base now renders a "Profile details" card on a user's own profile page (#3630123), through the active theme's user-profile-details component. Vartheme BS5 has no such component, and its user page prints its own Edit profile / Log out buttons, the picture and "Member for", which the card already carries, so the owner would see them twice.
Steps to reproduce
- Install Varbase 11.0.x with Vartheme BS5 and the Varbase Users Base change.
- Log in as a user with no extra role and visit
/user.
Environment: Drupal 11.4.9, Varbase 11.0.x-dev, Vartheme BS5 5.0.x-dev, PHP 8.4 (DDEV).
Before:

After:

Proposed resolution
- Add the
organisms/user-profile-details SDC (noUi: true): a Bootstrap card with the picture (a bootstrap-icon person icon when there is none), a description list of the account details, and quick action buttons. Rows with no value are left out. Props: heading, username, full_name, email, timezone, status, created, member_for, last_login, picture_url, picture_alt, actions.
- In
vartheme_bs5_preprocess_user(), when the owner views their own profile and the card is present, skip the theme's own action buttons and drop the picture and "Member for" from the content. Administrators viewing someone else's profile are unchanged.
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support
- ➖ User Guide Documentation support
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ✅ Reviewed by a human
- ✅ Code review by maintainers
- ✅ Full testing and approval
- ✅ Credit contributors
- ❌ Review with the product owner
- ✅ Update Release Notes
- ✅ Release vartheme_bs5-5.0.6
User interface changes
- The user's own profile page shows one Profile details card instead of separate buttons, picture and Member for.
API changes
- New SDC:
vartheme_bs5:user-profile-details.
Data model changes
Release notes snippet
- Add the User Profile Details component for the Varbase user profile page.
AI-Generated: Yes
Comments
Comment #4
rajab natshahComment #6
rajab natshahMerged in MR !217; reviewed and merged by the maintainer.
Comment #7
rajab natshahReviewed by the maintainer. The fresh-install functional tests passed on Varbase 11.0.x.
Comment #8
rajab natshah✅ Released vartheme_bs5-5.0.6
Comment #10
rajab natshah