GithubHelp home page GithubHelp logo

User profile block about bp-blocks HOT 6 CLOSED

buddypress avatar buddypress commented on July 21, 2024 1
User profile block

from bp-blocks.

Comments (6)

imath avatar imath commented on July 21, 2024 4

Hi!

In the above commit, I've made a first step in building the block. Here's how the placeholder looks:
placeholder

Then, once the member is selected, here's how the rendered block look:
rendered

There are some other steps to achieve:

  • Make the Autocomplete control more generic so it can be used by any BP Block.
  • Add an edit button and alignments buttons to the block toolbar.
  • Add settings to disable the avatar, etc.. (Sidebar secondary in the sketch)
  • Improve the rendered block style and implement the Cover image feature.

from bp-blocks.

imath avatar imath commented on July 21, 2024 1

The commit above is adding a sidebar for the block settings. Here's a screen capture:
sidebar

from bp-blocks.

imath avatar imath commented on July 21, 2024 1

In 6f01bca I've added the cover image. Here are some screen captures of it:

avatar-full

**With a full size avatar.**

avatar-thumb

**With a thumb size avatar.**

avatar-none

**With no avatar.**

from bp-blocks.

imath avatar imath commented on July 21, 2024

Hi @karmatosed

Thanks a lot for your work on the sketches. I agree it could be super helpful 😊. This block could be used to display our profiles.wordpress.org « card » in the future.

To start with local profiles, I really like it. Some thoughts:

  • I think we could use a custom autocomplete component extending the one provide by Gutenberg. I believe some communities might have a lot of members and the dropdown might not suit these communities.
  • I imagine the settings sidebar of the block would include options to show hide the avatar/cover image.
  • I can imagine some users might want to include some xprofile fields.. Let’s keep it simple for 1st version. Having cover, avatar, username linked to the profile page, and the display name is nice.
  • Should we include some actions button like : View profile, Mention, Send à private message ?

from bp-blocks.

renatonascalves avatar renatonascalves commented on July 21, 2024

This looks great!

The only suggestion I'd add for future blocks is to add via a PR.

from bp-blocks.

imath avatar imath commented on July 21, 2024

Closing this as the block has been merged into BP Core

https://buddypress.trac.wordpress.org/ticket/8048

from bp-blocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.