refactor: align frontend ownership boundaries

Close audit gaps across API drift, query policy, UI, and tests.
This commit is contained in:
2026-09-06 18:20:05 +03:00
parent 175727bc93
commit c97f62bd98
118 changed files with 2190 additions and 2254 deletions
@@ -16,12 +16,6 @@ function accountTypeKey(type: BrokerageAccount["type"]) {
return `accounts.types.${type}` as const;
}
function errorCode(error: unknown): string | undefined {
return typeof error === "object" && error !== null && "code" in error
? String(error.code)
: undefined;
}
function brokerageAccountCards(
accounts: BrokerageAccount[],
): BrokerageAccountCard[] {
@@ -44,9 +38,4 @@ function brokerageAccountCards(
});
}
export {
accountTypeKey,
type BrokerageAccountCard,
brokerageAccountCards,
errorCode,
};
export { accountTypeKey, type BrokerageAccountCard, brokerageAccountCards };