TenDRILLL / Argos

2 stars 0 forks source link

Clean Utils #8

Closed TenDRILLL closed 1 year ago

TenDRILLL commented 1 year ago

Utils file started out as a storage for a few commonly referenced functions, and has definitely grown too large. It has to be re-evaluated and possibly modularized.

Ugi0 commented 1 year ago

Changes so far. Broke utils.ts into multiple files which each contain functions that belong together or call each other. Moved css files to html/styles Changed some function names to be more intuitive e.g. updateStatRoles, updateStatRolesUser -> updateAllUserRoles, updateUserRoles. Moved these 2 functions to dbUserUpdater handler. Tested that the frontend works, discord related functions are harder to test -> Automatic tests?

TenDRILLL commented 1 year ago

Sounds like some work overlaps with #9, please check out if it can be closed.