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

Instant Results feature #2481

Merged
merged 22 commits into from
Dec 6, 2021
Merged

Instant Results feature #2481

merged 22 commits into from
Dec 6, 2021

Conversation

JakePT
Copy link
Contributor

@JakePT JakePT commented Dec 2, 2021

Description of the Change

WIP

Alternate Designs

WIP

Benefits

WIP

Possible Drawbacks

WIP

Verification Process

WIP

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

WIP

Changelog Entry

WIP

* @param {number} props.total Total number of items.
* @return {WPElement} Element.
*/
export default ({ offset, onNext, onPrevious, perPage, total }) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@felipeelia On ES7 the total prop here might not be a number, it might be an object.

@JakePT JakePT changed the base branch from develop to 4.x.x December 2, 2021 13:34
@felipeelia felipeelia changed the base branch from 4.x.x to develop December 2, 2021 13:52
@felipeelia felipeelia changed the base branch from develop to 4.x.x December 2, 2021 13:53
Comment on lines +2 to +3
import jQuery from 'jquery';

Copy link
Member

Choose a reason for hiding this comment

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

@JakePT Currently we use WP's jQuery version (and the final goal would be to get rid of it entirely). Any reason why we simply don't define this as global instead of importing it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@felipeelia This is the only way I've been able to get jquery in the asset dependencies. Do you know the proper way to define jQuery as a global so that it's picked up?

'facets' => $this->get_facets_for_frontend(),
'highlightTag' => 'mark',
'isWooCommerce' => $this->is_woocommerce,
'matchType' => 'all',
Copy link
Member

Choose a reason for hiding this comment

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

Didn't we already have a field for this, @JakePT?

includes/classes/Feature/InstantResults/InstantResults.php Outdated Show resolved Hide resolved
includes/classes/Feature/InstantResults/InstantResults.php Outdated Show resolved Hide resolved
@felipeelia felipeelia merged commit 6b3dd26 into 4.x.x Dec 6, 2021
@felipeelia felipeelia deleted the feature/instant-results branch December 6, 2021 15:40
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.

2 participants