It's been a while since I've written an update on development, so here we go!
I've been working on a couple of PRs (only very recently) to add extra functionality to the Users List on the admin dashboard.
Coming in 1.7, we have:
- display name column
- better pagination (first/last page buttons, text box to go direct to a page, permalinks to pages)
- user creation (not merged yet)
@OrdinaryJellyfish also worked on implementing user searching for 1.7, too, and it works brilliantly! 😃
I've also decided to pull my finger out and get my huge JS clean-up PR ready for review and merging ahead of 1.7. I left this sitting dormant as a draft for too long, and it needed to be merged or closed at this point.
This PR makes our JS more consistent, avoiding the use of ternaries for conditional rendering (
condition ? <Component /> : '') preferring a simple
&& condition instead. It also removed uses of the older-style
.component() calls to render components, preferring the more modern and cleaner (imo) JSX syntax.
I've also replaced uses of the
class attribute with
className instead. Originally, I was pushing for the use of
className is what's used in every other JSX library, and we should realistically stick with using one and not a mix of both.