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

[BootstrapAdminUi] Remove pagination selector is there are no other limits #163

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Dec 12, 2024

Before
image

After
image

And still ok with several available pagination limits.
image

@loic425 loic425 added the bug Something isn't working label Dec 12, 2024
@loic425 loic425 merged commit b0656e8 into Sylius:main Dec 12, 2024
6 checks passed
@loic425 loic425 deleted the fix/remove-paginator-selector-if-there-are-no-other-limits branch December 12, 2024 15:15
NoResponseMate added a commit to Sylius/Sylius that referenced this pull request Dec 13, 2024
| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

More explanation on Sylius stack side
Sylius/Stack#163

We can reproduce here easily
```yaml
sylius_grid:
    grids:
        sylius_admin_zone:
            limits: [10]
```
Wojdylak added a commit to Sylius/Sylius that referenced this pull request Dec 20, 2024
Hide filters box if none are present
<img width="1431" alt="image"
src="https://github.com/user-attachments/assets/38d0a58b-8452-44e8-b4b5-c3c03c769bda"
/>

Display disabled limit button if there are no other limits - related to
Sylius/Stack#163
<img width="1474" alt="image"
src="https://github.com/user-attachments/assets/7d82a366-7e83-4bbd-961a-6b64d02591f2"
/>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Improved rendering logic for filters, ensuring the filter section only
displays when filters are available.
- Updated pagination interface to show a disabled button when no other
pagination limits are available, enhancing user experience.

- **Bug Fixes**
- Fixed potential display issues by preventing unnecessary HTML
generation for filters.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
GSadee pushed a commit to Sylius/SyliusAdminBundle that referenced this pull request Jan 13, 2025
Hide filters box if none are present
<img width="1431" alt="image"
src="https://github.com/user-attachments/assets/38d0a58b-8452-44e8-b4b5-c3c03c769bda"
/>

Display disabled limit button if there are no other limits - related to
Sylius/Stack#163
<img width="1474" alt="image"
src="https://github.com/user-attachments/assets/7d82a366-7e83-4bbd-961a-6b64d02591f2"
/>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Improved rendering logic for filters, ensuring the filter section only
displays when filters are available.
- Updated pagination interface to show a disabled button when no other
pagination limits are available, enhancing user experience.

- **Bug Fixes**
- Fixed potential display issues by preventing unnecessary HTML
generation for filters.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants