You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Engine.ts file is a large ~2500 LOC file that holds the logic for controller initialization and is used in many places in the app. The goal here is to establish a pattern for splitting out the file so that it is:
Easier to manage
Better testability
Reduce non-relevant codeowner reviews (saves time on PRs)
More scalable solution
Scenario
No response
Design
No response
Technical Details
Since controllers tend to be dependent on one another, the imports from abstracted files can be functions that take dependent controllers as args to ensure initialization order is respected. For example, if TokenListController is dependent on NetworkController, the abstracted TokenListController file could look like initializeTokenListController(networkController: NetworkController)
Threat Modeling Framework
No response
Acceptance Criteria
App behavior should remain the same
Abstract at least one area as POV that can be applied to other pieces later on
Stakeholder review needed before the work gets merged
Engineering (needed in most cases)
Design
Product
QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
What is this about?
The
Engine.ts
file is a large ~2500 LOC file that holds the logic for controller initialization and is used in many places in the app. The goal here is to establish a pattern for splitting out the file so that it is:Scenario
No response
Design
No response
Technical Details
TokenListController
is dependent onNetworkController
, the abstracted TokenListController file could look likeinitializeTokenListController(networkController: NetworkController)
Threat Modeling Framework
No response
Acceptance Criteria
Stakeholder review needed before the work gets merged
References
The text was updated successfully, but these errors were encountered: