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

Add pagination to document collections search via title results page . #8359

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

farahTW
Copy link
Contributor

@farahTW farahTW commented Oct 11, 2023

This PR adds pagination functionality to search via title results page to add document.
It does the following:

  • Added pagination logic for results page when searched via title.
  • Updated controller tests
  • Removed word slug from search via title views ,controller,controller_test-and routes files.

Trello:
https://trello.com/c/Idbzgryr/571-add-pagination-to-results-page-for-document-collections

Screen shots:

image

When no results found:
Screenshot 2023-10-09 at 15 32 19

@farahTW farahTW force-pushed the 571-add-pagination-to-document-collections-results-page branch from bed106b to a20d30c Compare October 11, 2023 17:10
@nnagewad
Copy link
Contributor

From screenshots it looks good. Lets setup a session today to go over the spacing :)

@nnagewad
Copy link
Contributor

What happens when there is only 1 to 15 search results returned?

@farahTW farahTW force-pushed the 571-add-pagination-to-document-collections-results-page branch 2 times, most recently from 1e59178 to 182ed7d Compare October 12, 2023 10:30
@farahTW
Copy link
Contributor Author

farahTW commented Oct 12, 2023

What happens when there is only 1 to 15 search results returned?

It will not render pagination component as it is handled to show pagination when records > 15

@farahTW
Copy link
Contributor Author

farahTW commented Oct 17, 2023

@nnagewad I have updated the message for no results found.Could you please check and let me know if it needs to be changed.
image

@farahTW farahTW force-pushed the 571-add-pagination-to-document-collections-results-page branch from 182ed7d to adea239 Compare October 17, 2023 14:50
@nnagewad
Copy link
Contributor

nnagewad commented Oct 17, 2023

@nnagewad I have updated the message for no results found.Could you please check and let me know if it needs to be changed. image

@farahTW just wondering why the content has changed?

@farahTW
Copy link
Contributor Author

farahTW commented Oct 18, 2023

@nnagewad I have updated the message for no results found.Could you please check and let me know if it needs to be changed. image

@farahTW just wondering why the content has changed?

@nnagewad As discussed reverted back the message.
image

@farahTW farahTW force-pushed the 571-add-pagination-to-document-collections-results-page branch 2 times, most recently from eaabd3a to a4f6429 Compare October 19, 2023 14:03
@minhngocd
Copy link
Contributor

LGTM

@farahTW farahTW force-pushed the 571-add-pagination-to-document-collections-results-page branch from a4f6429 to 35dc760 Compare October 20, 2023 15:19
@farahTW farahTW merged commit cb832b8 into main Oct 20, 2023
15 checks passed
@farahTW farahTW deleted the 571-add-pagination-to-document-collections-results-page branch October 20, 2023 16:56
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.

3 participants