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

SP-63 Feature/improve admin actions extensibility #276

Merged
merged 74 commits into from
Nov 1, 2023

Conversation

tomdonarski
Copy link
Contributor

What?

SP-63
Provide builder classes to configure actions in a couple of resources (e.g order, product, user), administered in the admin panel.

Why?

In order for the extensions to be able to configure/extend via code, instead of using deface (external gem).

How?

Based on the approach implemented in #274

@tomdonarski tomdonarski marked this pull request as draft October 2, 2023 16:28
target: action.target,
data: action.data
) %>
<% end %>
<%= button_link_to (@deleted == '1' ? Spree.t(:show_active) : Spree.t(:show_deleted)), spree.admin_product_variants_url(@product, { q: { deleted_at_null: @deleted == '1' ? "0" : "1" } }), { class: 'btn-light', icon: 'filter.svg' } %>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the last one standing. I haven't figured out how to tackle it yet.

{
icon_name: 'add.svg',
key: :add_product_properties,
url: 'javascript:;',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This isn't working on main. I'll take a look what the proper path would be.

@tomdonarski tomdonarski force-pushed the feature/admin-panel-buttons-extensibility branch from aa83818 to e78cd51 Compare October 30, 2023 06:43
@rafalcymerys rafalcymerys force-pushed the feature/admin-panel-buttons-extensibility branch from 97ed558 to c1d8aeb Compare November 1, 2023 07:09
@rafalcymerys rafalcymerys merged commit c55c013 into main Nov 1, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feature/admin-panel-buttons-extensibility branch November 1, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants