Forem

Matt Layman
Matt Layman

Posted on • Originally published at mattlayman.com

Refactoring Enrollment - Building SaaS #84

In this episode, I decided to redesign a portion of the application flow. I wasn't pleased with how users would enroll students for their grades so I refactored the school year page into a flow that worked better.

Note: My internet connection was not good during this stream. Thankfully, the audio is fine and reading code is very possible because the background doesn't need to change much. My apologies for the low quality.

I started by deleting an "Enroll Student" button on the school year detail page. This involved removing some view context data and associated tests as well.

After I deleted the old method, I added some new context that added a boolean of has_students to the grades that display on the school year page. I used this context to control whether to show a call to action to let user's enroll for a grade level.

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay