Motivation

With lupus decoupled, we have everything in place to auto-register components. The users should not be required re-type the frontend base url and component-index.json path.

Proposed resolution

- Make preview provider plugins optionally provide the path to nuxt component index json
- During module installation and when loading the components overview page, check auto preview-provider for component-index. If found during install, auto-register it. If found at the page-load, simply list as available source! So the user can simply press "Update components".

Remaining tasks

Allow preview provider plugins to announce component-index files.

Command icon 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

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review

implemented and add tests. Also added a new drush command to trigger the same logic.

  • fago committed eed98a06 on 1.x
    feat: #3573058 Auto-register components for Lupus Decoupled
    
    By: fago
    
fago’s picture

Status: Needs review » Fixed

works good and comes with test coverage, merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • fago committed eed98a06 on 1.0.x
    feat: #3573058 Auto-register components for Lupus Decoupled
    
    By: fago
    
fago’s picture

Note: this needs to change from https://www.drupal.org/project/custom_elements/issues/3573064 to work.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.