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

[Admin] Fix ui/table/toolbar & restore clearSearch & Streamline feedback rendering #5449

Merged

Conversation

rainerdema
Copy link
Contributor

@rainerdema rainerdema commented Oct 23, 2023

Summary

This PR addresses three fixes:

  1. Updated the ui/table/toolbar component to support additional parameters correctly.
  2. Restored the previously removed clearSearch function, ensuring the search functionality works as expected.
  3. Removed a redundant rendering of the feedback component in the Orders and Products tables, leveraging the page_header_actions helper: SolidusAdmin: Extract page layout helpers #5445.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@rainerdema rainerdema requested a review from elia October 23, 2023 16:16
@rainerdema rainerdema self-assigned this Oct 23, 2023
@rainerdema rainerdema requested a review from a team as a code owner October 23, 2023 16:16
@rainerdema rainerdema changed the title [Admin] Fix ui/table/toolbar component params & restore clearSearch [Admin] Fix ui/table/toolbar & restore clearSearch & Streamline feedback rendering Oct 23, 2023
Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

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

🙌 thanks for catching and fixing all this stuff!

Updated the `SolidusAdmin::UI::Table::Toolbar::Component` to accept
and render additional parameters.
The `clearSearch` function was previously removed, causing search
clearing issues.
This commit re-introduces the function, restoring its functionality.
Eliminated an unnecessary double rendering of the feedback component in both
the Orders and Products tables.
This change leverages the `page_header_actions` helper, aligning with the
updates in solidusio#5445.
@rainerdema rainerdema force-pushed the rainerd/fix-toolbar-component-params branch from 3f18f81 to 44c41c5 Compare October 24, 2023 09:36
@rainerdema rainerdema merged commit d71c222 into solidusio:main Oct 24, 2023
9 checks passed
@rainerdema rainerdema deleted the rainerd/fix-toolbar-component-params branch October 24, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants