Closed Bentheburrito closed 2 years ago
Nice consolidation! But I do have a question about weapons_not_found.html.heex. When would this end up being used? I am just wondering because we do have unknown weapon images that we could use.
Nice consolidation! But I do have a question about weapons_not_found.html.heex. When would this end up being used? I am just wondering because we do have unknown weapon images that we could use.
Good question - I thought about having an error page that displays when loading the weapon stats failed for some reason (e.g. Census is down and we don't have it cached). I just made that page on a whim, so since it doesn't really belong in this PR (and doesn't actually have any content), I can create an actual issue for it. Thanks for asking!
Ah, okay, that makes sense.
I moved all the helper fns in CharacterControllers to new helper/context modules,
SacaStats.{Characters, Conversions, Weapons}
and optimized some of them (lmk if you have questions!). I made a bunch of other changes, like consolidating our twomaybe_to_int
fns into one underUtils
.To Test
Visit all pages (especially the character ones), make sure all content looks correct