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] Use ui/button for the pagination component #5286

Merged
merged 4 commits into from
Jul 28, 2023

Conversation

elia
Copy link
Member

@elia elia commented Jul 27, 2023

Summary

Depends on:

Please review only the last 4 commits 👀.

The implementation was simplified and now the responsibility of generating the links has been moved outside of the component. Generating the link turned out to be much simpler if don within the products/index component. The pagination component won't render if both links are blank.

image

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.

@elia elia self-assigned this Jul 27, 2023
@github-actions github-actions bot added changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus Changes to the solidus meta-gem changelog:repository Changes to the repository not within any gem changelog:solidus_admin labels Jul 27, 2023
@elia elia changed the base branch from main to nebulab/admin July 27, 2023 10:57
@elia elia force-pushed the elia/admin/pagination-buttons branch from c8fd963 to 9415b75 Compare July 27, 2023 11:14
@github-actions github-actions bot removed changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus Changes to the solidus meta-gem changelog:repository Changes to the repository not within any gem labels Jul 27, 2023
@elia elia force-pushed the elia/admin/pagination-buttons branch from 9415b75 to 50e4c84 Compare July 27, 2023 11:43
@elia elia marked this pull request as ready for review July 27, 2023 12:53
@elia elia requested a review from a team as a code owner July 27, 2023 12:53
Copy link
Contributor

@rainerdema rainerdema left a comment

Choose a reason for hiding this comment

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

This aligns perfectly with the changes we're making for the search bar 👍

@elia elia force-pushed the elia/admin/pagination-buttons branch 2 times, most recently from 5cecc98 to 89f3638 Compare July 27, 2023 16:09
@kennyadsl
Copy link
Member

@elia can you please rebase now?

elia added 4 commits July 28, 2023 09:24
This is a preparatory to refactoring pagination component.
- Switch some ARIA attributes to semantic HTML
  - added `rel="prev"` and `rel="next"`
  - added text visible only to screen-readers
  - use aria-disabled
@elia elia force-pushed the elia/admin/pagination-buttons branch from 89f3638 to 5271787 Compare July 28, 2023 07:24
@elia elia merged commit 00b7aab into nebulab/admin Jul 28, 2023
4 checks passed
@elia elia deleted the elia/admin/pagination-buttons branch July 28, 2023 07:44
@elia elia restored the elia/admin/pagination-buttons branch July 28, 2023 07:52
@elia elia deleted the elia/admin/pagination-buttons branch July 31, 2023 15:30
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.

3 participants