Problem/Motivation
Varbase 10.1.x now renders a "Profile details" card on a user's own profile page through the active theme's user-profile-details component (the Varbase Core issue linked from the merge request). Vartheme BS5 4.1.x has no such component, and its user page still prints the picture and "Member for", which the card already carries.
This is the 4.1.x (Varbase 10.1.x) counterpart of #3630124. Unlike 5.0.x, the card has no action buttons here: the user page keeps Drupal core's View / Edit tabs.
Steps to reproduce
- Install Varbase 10.1.x with Vartheme BS5 4.1.x and the Varbase Core change.
- Log in as a user with no extra role and visit
/user.
Environment: Drupal 11.4.9, Varbase 10.1.x-dev, Vartheme BS5 4.1.x-dev, PHP 8.4 (DDEV).
Before:
After:
Proposed resolution
- Add the
organisms/user-profile-detailsSDC (noUi: true), the same as on 5.0.x, using the 4.1.xiconatom (bi-person-circle) when there is no picture. - In
templates/user/user.html.twig, when the card's field has content (the owner's own profile), pass the content to the user component withoutuser_pictureandmember_for. Other viewers 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-4.1.2
User interface changes
- The user's own profile page shows a Profile details card instead of the separate picture and Member for.
API changes
- New SDC:
vartheme_bs5:user-profile-details.
Data model changes
- N/A
Release notes snippet
- Add the User Profile Details component for the Varbase user profile page.
AI-Generated: Yes
| Comment | File | Size | Author |
|---|---|---|---|
| varbase-10.1.x-after.png | 107.77 KB | rajab natshah | |
| varbase-10.1.x-before.png | 70.91 KB | rajab natshah |
Issue fork vartheme_bs5-3630125
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
rajab natshahComment #6
rajab natshahMerged in MR !218; reviewed and merged by the maintainer.
Comment #7
rajab natshahReviewed by the maintainer. The functional tests passed on a fresh Varbase 10.1.x build from the merged code.
Comment #8
rajab natshah✅ Released vartheme_bs5-4.1.2
Comment #10
rajab natshah