buddypond icon indicating copy to clipboard operation
buddypond copied to clipboard

Migrate re-usable UI components to Web Components API

Open Marak opened this issue 2 months ago • 0 comments

The UI has begun to mature to the point where we can start implementing stand-alone Web Components for certain UI elements. This will enable us to easily re-use certain components while also reducing the code foot-print of several apps.

see: https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements

This task should be easy to start. Most of the UI components are already in separate classes, some are not.

First Component

A good first web component would be creating <bp-ui-odometer>. The current code exists in the menu-bar and buddylist app.

Image

We'll want to be able to easily re-use the bp-ui-odometer web component in several places, such as the portfolio and coin apps.

Marak avatar Oct 07 '25 02:10 Marak