Skip to main content

Refactoring and maintenance

Keeping a codebase lean and its history clean.

Refactor and consolidate​

Move a report's summary calculations to the backend​

On the report UI, when the Long Value option is selected, the Starting Value, Ending Value and Net Change are calculated on the frontend by adding up the values of all 3 buckets. Refactor this to use values from the backend. All 3 values must be taken as of the start of the selected period. If a bucket didn't exist on the start date, its starting value is 0.

Size: TaskStart to finish: 1 h 40 minAgent work: 46 minQuestions asked: 6Tokens: 67.5MCost, list price: $39.36Lines added / deleted: +621 −87Pull requests: 1

refactorfrontendbackend

Unify New Task and Edit Task​

Add Out of Scope and Definition of Done to the New Task page. Better yet, remove every difference between New Task and Edit Task. The result should be less code, in both the code and the tests.

Size: TaskStart to finish: 16 minAgent work: 13 minQuestions asked: 2Tokens: 9.0MCost, list price: $6.90Lines added / deleted: +90 −146Pull requests: 1

refactorfrontend

Refactor the oversized report page component​

The portfolio report page component has 3,358 lines, 73 state hooks and about 1,300 lines of comments about task history. Refactor it: pull out reusable code, and improve its quality, readability and efficiency. Keep the comments, because they are useful. Be very careful, because this page is very important. Don't introduce new bugs.

(see attached file)

Size: TaskStart to finish: 35 minAgent work: 34 minQuestions asked: 4Tokens: 33.4MCost, list price: $27.04Lines added / deleted: +4,686 −3,207Pull requests: 1

refactorfrontendrobust

Git housekeeping​

Sync two long-lived branches and resolve conflicts​

I want to sync our team branch with develop and resolve the conflicts. Both branches contain implemented features I want in the result, so ask me whenever you need to choose between one solution and the other.

Size: TaskStart to finish: 1 h 45 minAgent work: 1 h 19 minQuestions asked: 5Tokens: 139.3MCost, list price: $93.38Lines added / deleted: +3,885 −17,562Pull requests: 1

refactorcirobust