Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Mar 5, 2024
1 parent 5741006 commit 715e5ab
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/inbox-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function InboxStatus({ item }) {
<TooltipProvider delayDuration={0}>
<Tooltip>
<TooltipTrigger asChild>
<div className="flex space-x-1 items-center border rounded-md text-xs py-1 px-2 h-[26px]">
<div className="flex space-x-1 items-center border rounded-md text-xs py-1 px-2 h-[26px] text-[#878787]">
<span>Pending</span>
</div>
</TooltipTrigger>
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/tables/transactions/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export const columns: ColumnDef<Payment>[] = [
<div className="flex space-x-2 items-center">
<span>{row.original.name}</span>
{row.original.status === "pending" && (
<div className="border rounded-md text-xs py-0.5 px-2 text-[#878787]">
Pending
<div className="flex space-x-1 items-center border rounded-md text-xs py-1 px-2 h-[26px] text-[#878787]">
<span>Pending</span>
</div>
)}
</div>
Expand Down
4 changes: 4 additions & 0 deletions apps/dashboard/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default {
card_atm: "Card ATM",
transfer: "Transfer",
other: "Other",
ach: "Ach",
deposit: "Deposit",
wire: "Wire",
fee: "Fee",
},
language: {
title: "Languages",
Expand Down
4 changes: 4 additions & 0 deletions apps/dashboard/src/locales/sv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default {
card_atm: "Kort bankomat",
transfer: "Överföring",
other: "Annan",
ach: "Ach",
deposit: "Deposition",
wire: "Wire",
fee: "Avgift",
},
language: {
title: "Språk",
Expand Down
7 changes: 0 additions & 7 deletions packages/jobs/src/v2/transactions/initial-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ client.defineJob({
provider: account.bank_connection.provider,
});

console.log({
teamId: account.team_id,
accountId: account.account_id,
accessToken: account.bank_connection?.access_token,
bankAccountId: account.id,
});

const transactions = await provider.getTransactions({
teamId: account.team_id,
accountId: account.account_id,
Expand Down
4 changes: 4 additions & 0 deletions packages/providers/src/teller/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export const mapTransactionCategory = (transaction: Transaction) => {
return "transfer";
}

if (transaction.type === "fee") {
return "fees";
}

switch (transaction?.details.category) {
case "bar":
case "dining":
Expand Down

0 comments on commit 715e5ab

Please sign in to comment.