mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
refactor(folio-spec): export login as setup, remove from action pool
Login is deterministic and yields no actions once the app is past the login screen; sitting at weight 50 in the action pool wasted half of step picks on a no-op. Promote it to setup so the runner only consults it while it has work to do, and rebalance remaining weights to round numbers (addAccount 50, addTxn 40, back 10).
This commit is contained in:
1 parent
ddb0dc3158
commit
e6be1beb22
1 file changed
+7
-5
@@ -175,12 +175,14 @@ export const properties = {
|
|||||||
newTxnChangesBalance,
|
newTxnChangesBalance,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const setup = login;
|
||||||
|
|
||||||
export const actionsRoot = weighted(
|
export const actionsRoot = weighted(
|
||||||
[50, login],
|
[50, addAccount],
|
||||||
[30, addAccount],
|
[40, addTxn],
|
||||||
[30, addTxn],
|
[10, back],
|
||||||
[5, back],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
(globalThis as { actions?: unknown; properties?: unknown }).actions = actionsRoot;
|
(globalThis as { actions?: unknown; properties?: unknown; setup?: unknown }).actions = actionsRoot;
|
||||||
(globalThis as { properties?: unknown }).properties = properties;
|
(globalThis as { properties?: unknown }).properties = properties;
|
||||||
|
(globalThis as { setup?: unknown }).setup = setup;
|
||||||
Reference in new issue
Block a user