+
+
- {t("bank.summary")}
+
+ -
+ {formatMoney(props.data.expenses, { withZeroCents: true })}
+
+
+
+
+
- {t("bank.refunds")}
+
+ -
+ {formatMoney(props.data.refunds, { withZeroCents: true })}
+
+
+
+
+
- {t("bank.net")}
+
+ -
+ {formatMoney(props.data.net, { withZeroCents: true })}
+
+
+
)}
diff --git a/src/entities/brokerage-account/api/useBrokerageAccounts.ts b/src/entities/brokerage-account/api/useBrokerageAccounts.ts
index 2b8cb87..d54ea76 100644
--- a/src/entities/brokerage-account/api/useBrokerageAccounts.ts
+++ b/src/entities/brokerage-account/api/useBrokerageAccounts.ts
@@ -10,8 +10,6 @@ type BrokerageAccount = NonNullable<
paths["/api/v1/brokerage-accounts"]["get"]["responses"][200]["content"]["application/json"]["data"]
>[number];
-type BrokerageAccountsResponse = paths["/api/v1/brokerage-accounts"]["get"]["responses"][200]["content"]["application/json"];
-
function useBrokerageAccounts() {
const query = useResourceQuery({
meta: { accessGroup: "brokerage" },
@@ -21,7 +19,6 @@ function useBrokerageAccounts() {
return {
...query,
- sync: query.sync as BrokerageAccountsResponse["sync"] | null,
};
}
diff --git a/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.stories.tsx b/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.stories.tsx
index 3e7dc7e..255e46c 100644
--- a/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.stories.tsx
+++ b/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.stories.tsx
@@ -205,24 +205,32 @@ export const IndependentFreshness: Story
],
[
{
- availability: "complete",
+ availability: "available",
+ completeness: "complete",
dataRevision: "1",
freshness: "stale",
- lastSuccessfulAt: "2026-09-24T10:30:00Z",
- resourceKey: "portfolio/storybook-account",
- sync: {
- errorCode: "TBANK_UNAVAILABLE",
- id: "failed",
+ lastAttempt: {
+ finishedAt: "2026-09-24T10:31:00Z",
+ problems: [],
+ startedAt: "2026-09-24T10:30:00Z",
state: "failed",
},
+ lastSuccessfulAt: "2026-09-24T10:30:00Z",
+ resourceKey: "portfolio/storybook-account",
},
{
- availability: "missing",
+ availability: "initial-loading",
+ completeness: "incomplete",
dataRevision: "0",
freshness: "unknown",
+ lastAttempt: {
+ finishedAt: null,
+ problems: [],
+ startedAt: "2026-09-24T10:30:00Z",
+ state: "running",
+ },
lastSuccessfulAt: null,
resourceKey: "portfolio/waiting",
- sync: { errorCode: null, id: "waiting", state: "running" },
},
],
),
diff --git a/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.tsx b/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.tsx
index a706ea1..dd8dd3b 100644
--- a/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.tsx
+++ b/src/entities/brokerage-account/ui/BrokerageAccountList/BrokerageAccountList.tsx
@@ -64,15 +64,16 @@ const BrokerageAccountSourceStatus: FC