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
Operations page became bloated with different operation types handling and specific code for each of them. Our new approach address this problem by decoupling core logic (unwrapping batch and proxy) and render of feature-specific details about extrinsic.
Main idea is to create DI slot for injecting details and pass unwrapped extrinsic as prop.
DI handler in every feature should check if it's known extrinsic and if yes - render details. Pseudo-code:
Same way we should inject operation name, operation icon and details on confirm screen.
After this changes, operations page should become yet-another-feature with self contained logic. When new operation type appear, feature related to it should inject handlers and it should be enough.
The text was updated successfully, but these errors were encountered:
Operations page became bloated with different operation types handling and specific code for each of them. Our new approach address this problem by decoupling core logic (unwrapping batch and proxy) and render of feature-specific details about extrinsic.
Main idea is to create DI slot for injecting details and pass unwrapped extrinsic as prop.
DI handler in every feature should check if it's known extrinsic and if yes - render details. Pseudo-code:
Same way we should inject operation name, operation icon and details on confirm screen.
After this changes, operations page should become yet-another-feature with self contained logic. When new operation type appear, feature related to it should inject handlers and it should be enough.
The text was updated successfully, but these errors were encountered: