bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

RFC - change raw components to built/minified (web components) #10725

Open severinbeauvais opened 2 years ago

severinbeauvais commented 2 years ago

The BCRS Shared Components project contains many components that are used by several UI projects (Filings UI, FAS, etc). The problem is that these shared components are raw source code, and as such:

There is a better way. In a nutshell, it means going a bit further with the BCRS Shared Components project and Lerna (which manages individual component versioning), to build production-ready components that are standalone and can be imported into any host project, any time.

This change should start as a RFC / prototype (same as we did for original BCRS Shared Components) to figure out exactly how to do this. The next step depends on the changes needed. It might require updating all host projects to use new shared components; this would all come out in the RFC, including a possible phased approach. The RFC could also estimate effort.

@shabeeb-aot (Faiz) created a similar ticket in the Relationships team space. Faiz knows a bit about this already and would therefore be a key resource in designing/ implementing this. I don't know how we would allocate the work as this change crosses over several teams and will benefit all.

I have added the Tech Debt label, which isn't totally correct since this is not incomplete development. Rather, it's a much-improved way to build and serve shared components that will make their use much easier to manage/maintain as time goes by.

Web Components

ref: https://vuejs.org/guide/extras/web-components.html

severinbeauvais commented 2 years ago

See also #9874.

jdyck-fw commented 2 years ago

Make this an RFC ticket when we pull it in, ideally involving Faiz.

lmcclung commented 2 years ago

At Jan 21 PO sync @jyoti3286 @lmcclung @Kaineatthelab decided to pull this into PI12; with the RFC to be worked on by @shabeeb-aot @severinbeauvais

severinbeauvais commented 1 year ago

@jonathan-longe FYI