Skip to content

view_components not working with packs #2445

@Angel-Garcia-Fernandez

Description

@Angel-Garcia-Fernandez

Feature Request:

Enable view_components to support loading components from multiple configurable directories, including packs/*/app/components, to better integrate with modular Rails applications using packs (ruby-at-scale)..

Motivation:

Currently, view_components only loads from app/components. With packs, components may reside in app/components or in any packs/*/app/components. Supporting multiple component paths would allow for better modularization and organization, aligning with the packwerk approach.

Suggested Solution:

Add configuration to specify additional component directories.
Ensure autoloading and lookup work seamlessly across all specified paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions