AdminBro v1.6 released with bulk actions and custom pages

Wojciech Krysiak
2 min readJan 2, 2020

At SoftwareBrothers we started this year with a new release of AdminBro — an OpenSource, automated admin panel for Node.js apps.

Let’s cut to the chase and pinpoint what has been released in the latest version:

Bulk actions

Bulk actions are actions which can be invoked on a list of records. This is how they are implemented in AdminBro:

By default, we added one “bulk delete” action but you can create your own. The best thing about them is that they follow the same rules as other actions. So you can:

  • add guard messages like “do you really want to publish these articles?”,
  • define which records can be added to a particular bulk action by using isAccessible() method,
  • use before and after hooks.

Everything with a tiny bit of code. To get to know more about the bulk actions in AdminBro see the documentation of the Action interface.

Custom pages

Another feature we implemented is Custom Pages. Basically, they are links in the sidebar which don’t lead to any particular resource but, like a dashboard, open a totally customizable page.

Each page can have its own React Component so that you can fully control its look and feel. Furthermore, you can define a handler function which, on the backend, fetches the data you need and passes it to the Component.

To learn more, take a look at the options, where you can define your Custom Pages.

withNotice() High Order Component

Next thing is the withNotice() High Order Component. It allows you to trigger messages like this (the red one):

Simply wrap your React Component with withNotice and it will pass addNotice(noticeMessage) to your props.

And much more

Apart from those 3 things, there are a couple of other features and lots of tiny improvements. To see all the changes we have made visit the Changelog page.

Summary

I hope you’ll enjoy these features as much as we do. Try them out and give us feedback via Github/issues page. We aim to build the best admin panel out there, so every idea matters.

And don’t forget to star the repo.

--

--

Wojciech Krysiak

Co-founder and CTO at SoftwareBrothers, giving keynotes, providing open source solutions on GitHub and running a jscasts.tv youtube channel.