Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: resource custom components #3176

Merged
merged 14 commits into from
Aug 23, 2024
Merged

Conversation

Paul-Bob
Copy link
Contributor

@Paul-Bob Paul-Bob commented Aug 22, 2024

Description

Fixes #3155

More components can be replaced. Keys must be strings that match the original component with the exception of the pre-existing ones.

Here is a list of all the supported customizable components:

self.components = {
  "Avo::Views::ResourceIndexComponent": Avo::Custom::ResourceIndexComponent,
  "Avo::Views::ResourceShowComponent": "Avo::Custom::ResourceShowComponent",
  "Avo::Views::ResourceEditComponent": "Avo::Custom::ResourceEditComponent",
  "Avo::Index::GridItemComponent": "Avo::Custom::GridItemComponent",
  "Avo::Index::ResourceMapComponent": "Avo::Custom::ResourceMapComponent",
  "Avo::Index::ResourceTableComponent": "Avo::Custom::ResourceTableComponent",
  "Avo::Index::TableRowComponent": "Avo::Custom::TableRowComponent"
}

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@Paul-Bob Paul-Bob self-assigned this Aug 22, 2024
@Paul-Bob Paul-Bob marked this pull request as draft August 22, 2024 14:36
Copy link

codeclimate bot commented Aug 22, 2024

Code Climate has analyzed commit 4b714fd and detected 0 issues on this pull request.

View more on Code Climate.

@Paul-Bob Paul-Bob marked this pull request as ready for review August 22, 2024 21:34
@Paul-Bob Paul-Bob changed the title feature: grid view component feature: resource custom components Aug 23, 2024
@Paul-Bob Paul-Bob merged commit 3b706ce into main Aug 23, 2024
21 of 22 checks passed
@Paul-Bob Paul-Bob deleted the feature/grid_view_component branch August 23, 2024 11:35
Copy link
Contributor

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to specify what component to use on grid_view
2 participants