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

Various updates #28

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

bblaisATcoveo
Copy link
Contributor

Review each individual commit for details

Add Pipeline as parameter to let specific implementation use a different pipeline instead of letting normal query pipeline routing.
Fix for issue #384306. variable documentAuthor should not be more than 128 char on an analytics call to avoid errors in the analytics console
Fix for issue #381226. Labels in the result list should be displayed as list labels and not a single list item separated by semicolon (;)
Fix for issue #373500. Display simple breadcrumb in green following the latest indexing fix, using the format [hostname] > [1st element of breadcrumb]. Default to printableuri if not available.
Enable Query Suggestions in the main search box of the search results page.
@bblaisATcoveo
Copy link
Contributor Author

@GormFrank @igkislev @ipaksc Here's the latest PR, feel free to review.

src/connector.js Outdated
@@ -31,11 +31,13 @@ const defaults = {
"searchBoxQuery": "#sch-inp-ac",
"lang": "en",
"numberOfSuggestions": 0,
"minimumCharsForSuggestions": 1,
"unsupportedSuggestions": false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove this line

Suggested change
"unsupportedSuggestions": false,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in latest commit

src/connector.js Outdated
@@ -356,47 +367,19 @@ function initTpl() {
if ( !suggestionsElement && searchBoxElement && params.unsupportedSuggestions && params.numberOfSuggestions > 0 ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove params.unsupportedSuggestions as part of the condition.

Suggested change
if ( !suggestionsElement && searchBoxElement && params.unsupportedSuggestions && params.numberOfSuggestions > 0 ) {
if ( !suggestionsElement && searchBoxElement && params.numberOfSuggestions > 0 ) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in latest commit

src/connector.js Outdated
activeSuggestion = index + 1;
updateSuggestionSelection();
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add semicolon for readability purposes (as flagged by our build script):

Suggested change
}
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in latest commit

src/connector.js Outdated
searchBoxArrowKeyDown();
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add semicolon for readability purposes (as flagged by our build script):

Suggested change
}
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in latest commit

src/connector.js Outdated
}
node.onmousemove = ( e ) => {
activeSuggestionWaitMouseMove = false;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add semicolon for readability purposes (as flagged by our build script):

Suggested change
}
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in latest commit

Removed unsupportedSuggestions flag from default params and implementation
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