How to restrict link posting by user role in buddyPress
When running a BuddyPress-powered community, you might want to give different privileges to different user roles. For example, you might want to restrict…
22 Oct 20242 min read
BLOG
Older, developer-facing write-ups on React, Gatsby, WordPress and running a UI team.
When running a BuddyPress-powered community, you might want to give different privileges to different user roles. For example, you might want to restrict…
22 Oct 20242 min read
I was recently asked to look at a javascript function that would do something different for each user role. However it was quite apparent it would get out of…
2 Oct 20244 min read
If you have ever run Storybook successfully but got "Cannot GET /” display in the browser? There is a simple fix for this problem.
1 Feb 20221 min read
Where I currently work, the UI team had no formal documentation. There was no list of tools, guidelines or resources to be found in a single place. We had…
27 Jan 20224 min read
The peak of summer and the peak of winter are when most people are focusing on their holidays and the work slows down. It doesn't have to be a time to sit there twiddling your thumbs, there is always plenty to do.
16 Apr 20212 min read
Since recreating my website using Gatsby, I've been on a quest to improve and squeeze out as much optimisation as I can. One of the last things that flagged up in Google Lighthouse was slow font loading.
16 Feb 20213 min read
AppContainer should be patched is a common issue in React 17, here's how to fit it.
25 Oct 20201 min read
Structured data describes precisely what the content of your website is, and are complementary to meta tags. You can, for example, describe anything you like,…
12 Oct 20201 min read
When adding items to local storage you might accidentally pass some information that gets stored as [object Object]. When you try and retrieve the information…
5 Oct 20201 min read
Have you been stuck trying to understand why your React Router doesn't do what you want it to?
25 Sept 20201 min read
Have you ever tried to get a good understanding of a project but found it was completely lacking any sort of meaningful documentation?
19 Aug 20202 min read
Meta tags are used by bots to understand the content of your site better. They are special tags to add in the <head specially designed for bots.
17 Aug 20201 min read
In one of my ReactJS applications I encountered an error during build with a Yarn/Babel setup: Babel 7 - ReferenceError: regeneratorRuntime is not defined.
4 Aug 20201 min read
Maybe you’re stuck with data in one component and want to pass that data through react-router’s <Link component just like I was. As of react-route v4 you can…
29 Jul 20201 min read
It only seems like five minutes since we were excited for the release of the WebP image format which helps web developers create smaller, richer images that…
27 Jul 20202 min read
Adding elements to an array in JavaScript is easy. If you're creating a checklist for example, the user can add new items via an input on the frontend and we…
12 Jul 20202 min read
Not many people know you can request JSON from the MailChimp API in order to show different status messages on your own site, rather than being redirected to…
10 Jul 20202 min read
Recently I've been working on a web-based tool for finding suitable products based on answers from a 4 step questionnaire. It's built with ReactJs using…
22 Jun 20203 min read
In order to keep components organised across this website I added Storybook, an open source tool for developing UI components in isolation. Previously I had…
20 Jun 20202 min read
I discovered each member of the UI team was building their own to do list of things they wanted to make better. Improving our boilerplate to make setup quicker, building more reusable components or fixing that bug the plagues every new project. Whatever the issue was, they were being collected by individuals with nobody having an overview of what anyone else wanted to change.
19 Jun 20202 min read
I recently lead a team discussion on how we can get better at estimating how long it would take to build new or edit existing components of a website. Most people's thinking was clearly focused on the tasks at hand, forgetting a lot of additional considerations.
15 Jan 20205 min read
This short post is mainly for projects which involve working with a 'core' theme or components.
2 Jan 20201 min read
It's no secret that naming things is one of the hardest parts of a UI developers job. To make things a little easier, here is a list of potential…
22 Dec 20191 min read
Here are a few ideas for games you can try that each offer a unique learning opportunity for your team.
12 Nov 20193 min read
Use Facebook, Twitter, Google+, Pinterest, Linkedin and Instagram to your advantage. These are some of the key social networks you need to be on. While you…
20 May 201911 min read
In this post I'll show you how to set up conditional form fields with Javascript. The very first time I needed this was around 6 years ago when I first built…
25 Feb 20182 min read