EasyCorp / EasyCorp/EasyAdminBundle

Allow sorting the datagrid on small screens

Open
#7,788 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
4.3k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
11

Description

Short description of what this feature will allow to do:

On screens below 768px, the EasyAdmin theme hides the datagrid header
(assets/css/easyadmin-theme/datagrids.css, @media (max-width: 767px)).
The column sort links live only in that header, so on phones there is no way
to sort the listing: the only options are changing the default sort in the CRUD
controller or editing the URL by hand. A "Sort" button next to the other index
page actions, visible only on small screens, could open a modal listing the
sortable columns and toggling their sort direction, reusing the same URLs as the
header links.

Example of how to use this feature

Nothing to configure: the button shows up on the index page of any CRUD
controller that has sortable fields, and only below 768px.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with assets/css/easyadmin-theme/datagrids.css and the @media rule that hides the datagrid header below 768px. Then trace the index page actions and existing header sort links to determine how the proposed small-screen Sort control can reuse their URLs; it is done when sortable CRUD listings expose sorting below 768px without changing larger-screen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, symfony
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.