pkp / pkp-lib

The library used by PKP's applications OJS, OMP and OPS, open source software for scholarly publishing.
https://pkp.sfu.ca
GNU General Public License v3.0
307 stars 448 forks source link

Add a form field in the profile section that allows users to customize the initials displayed in their profile avatars. #10489

Open Devika008 opened 2 months ago

Devika008 commented 2 months ago

Describe the problem you would like to solve Using initials as avatars adds a personal touch to user profiles, giving them a unique identity without the need for personal photos. This also addresses privacy concerns related to using images. However, some users may prefer to adjust the automatically generated initials to better suit their preferences.

Describe the solution you'd like Add a form field under User Profile > Identity that lets users customize their initials. They should be able to enter only 2 characters, no more.

taslangraham commented 4 days ago

I've added a PR for this @ewhanson. Please take a look. pkp-lib - https://github.com/pkp/pkp-lib/pull/10639

submodule updates ojs - https://github.com/pkp/ojs/pull/4533 ops - https://github.com/pkp/ops/pull/818 omp - https://github.com/pkp/omp/pull/1776

There's an avatar component in the UI library currently used to display initials based on the user's name. This would need to be updated, in a separate issue, to accept custom initials

ewhanson commented 3 days ago

Looks good, @taslangraham. Just a few questions in pkp-lib. Once this is merged, feel free to create the issue you mentioned above and update the avatar component as well.

taslangraham commented 3 days ago

@ewhanson Thanks for the review