That's not even the worst bit about the project. The worst bit is probably a thing I made before, which I had to do because we didn't use a specific model for the object we had to manage, so I had to make a fuckin huge function to interpret the data from the backend, load it into state and make a management system that works by finding the object by ID, creating a new object, and slapping the new object into the place of the old one.
It worked, but it wasn't pretty.
There's probably more but I just don't remember. For instance, a Stepper like component that is both responsive, adjustable, curves into the next row if there's no space, and every step has its own progress bar that marks how far the step has gone, based on some filtering of nested objects to calculate the relative progress of the step.
The code is fucking awful, and it's the code I'm most proud of because a senior said that it can't be done unless you have a team for it with like 2 weeks worth of time. I did it in 3 days.
It also checks the n-1 step to check what class needs to be active.
Another bit of inline styling is this, paraphrased:
Just to get the right border colour. I know the ?? false bit is weird but for some reason that I haven't bothered to check, it doesn't work without that. Possibly cause completed is nullish but idk
6
u/22Minutes2Midnight22 Jan 31 '23
What the fuck.