question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] Remove the List button

See original GitHub issue

Sometimes making a UI better means removing things. I feel that the ActionBar is usually too cluttered, and I’m thinking about how to make it smaller, or even how to remove it completely.

My first suspect is the List button.

2018-07-24_1406

Whenever a user is in a Show, Edit, or Create view, the List button gives a way to go back to the list. But there are already two other such ways:

  • clicking on the back button (if coming from the list)
  • clicking on the resource name in the menu (unless it’s a resource without menu entry)

So I think this List button is useless 90% of the time.

I suggest we remove it from the default ShowActions, EditActions, and CreateActions. React-admin can still export the ListButton component for people who actually need it for a good purpose.

Thoughts?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
fzaninottocommented, Jul 24, 2018

@ashim-k-saha You don’t need to store a configuration: just create your own version of the List component with all the actions and bulkActions you use by default, like so:

const MyList = ({ children, ...props }) => (
   <List actions={<MyActions />} bulkActions={<MyBulkActions />}> {...props}>
        {children}
    </List>
)

then use it instead of react-admin’s List component in your List views:

const PostList = props => (
    <MyList {...props}>
        ...
    </MyList>
)
0reactions
fzaninottocommented, Aug 1, 2018

Thanks for your comments, we’ll remove the List Button. See #2115 for details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to define/remove RFC's from "RFC Destinations for SAP ...
Hello, I have a Solman 7.1 SP13 system. During the System preparation step and step 3 - Specify Connectivity Data, there is a...
Read more >
RFC 2369 - IETF
The List-Unsubscribe field describes the command (preferably using mail) to directly unsubscribe the user (removing them from the list). Examples: List- ...
Read more >
M-'s type="remove" button - DEV Community ‍ ‍
A remove button is a real HTML button, but looks like this: ... Read about M-'s bullet-less type="none" list and learn more out...
Read more >
RFC 3261: SIP: Session Initiation Protocol
The complete list of SIP response codes is in Section 21. ... stimulus (the user clicking a button, or a signal on a...
Read more >
Remove standard delete button from list view page and add ...
Remove standard delete button from list view page and add custom button there · apex · lightning-aura-components · custom-object · list-view.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found