From 489aa88c4b584153d007c0e2fbf4105a06d3d9a9 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 2 Mar 2022 20:06:06 +0000 Subject: [PATCH 1/4] Add custom checkbox component --- web/src/components/Checkbox.vue | 11 +++++++++++ web/src/components/TransactionRow.vue | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 web/src/components/Checkbox.vue diff --git a/web/src/components/Checkbox.vue b/web/src/components/Checkbox.vue new file mode 100644 index 0000000..544ec52 --- /dev/null +++ b/web/src/components/Checkbox.vue @@ -0,0 +1,11 @@ + + + \ No newline at end of file diff --git a/web/src/components/TransactionRow.vue b/web/src/components/TransactionRow.vue index 9472156..0d87765 100644 --- a/web/src/components/TransactionRow.vue +++ b/web/src/components/TransactionRow.vue @@ -7,6 +7,7 @@ import TransactionEditRow from "./TransactionEditRow.vue"; import { formatDate } from "../date"; import { useAccountStore } from "../stores/budget-account"; import Input from "./Input.vue"; +import Checkbox from "./Checkbox.vue"; const props = defineProps<{ transactionid: string, @@ -70,7 +71,7 @@ function getStatusSymbol() { {{ TX.GroupID ? "☀" : "" }} {{ getStatusSymbol() }} - + -- 2.47.2 From a73f7c29345e22a603e648185285487b6ba7f2c6 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 2 Mar 2022 20:06:16 +0000 Subject: [PATCH 2/4] Bind to value instead of using v-model --- web/src/components/Input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Input.vue b/web/src/components/Input.vue index 47c8871..831cbe1 100644 --- a/web/src/components/Input.vue +++ b/web/src/components/Input.vue @@ -4,7 +4,7 @@ const props = defineProps(["modelValue"]); \ No newline at end of file -- 2.47.2 From 1ca95f8768a2eae7d6dc0fd55900386d86160732 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 2 Mar 2022 20:06:33 +0000 Subject: [PATCH 3/4] Remove old logging calls --- web/src/pages/BudgetSidebar.vue | 1 - web/src/pages/Budgeting.vue | 1 - web/src/stores/transactions.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/web/src/pages/BudgetSidebar.vue b/web/src/pages/BudgetSidebar.vue index db6fd09..69698a5 100644 --- a/web/src/pages/BudgetSidebar.vue +++ b/web/src/pages/BudgetSidebar.vue @@ -20,7 +20,6 @@ const OffBudgetAccountsBalance = computed(() => accountStore.OffBudgetAccountsBa function isRecentlyReconciled(account : Account) { const now = new Date().getTime(); const recently = 7 * 24 * 60 * 60 * 1000; - console.log(account.Name, account.LastReconciled, now, recently, new Date(now-recently)); return new Date(now - recently).getTime() < account.LastReconciled.getTime(); } diff --git a/web/src/pages/Budgeting.vue b/web/src/pages/Budgeting.vue index 0203b8a..ef235fe 100644 --- a/web/src/pages/Budgeting.vue +++ b/web/src/pages/Budgeting.vue @@ -57,7 +57,6 @@ onMounted(() => { const expandedGroups = ref>(new Map()) function toggleGroup(group: { Name: string, Expand: boolean }) { - console.log(expandedGroups.value); expandedGroups.value.set(group.Name, !(expandedGroups.value.get(group.Name) ?? group.Expand)) } diff --git a/web/src/stores/transactions.ts b/web/src/stores/transactions.ts index b1935c0..121cebb 100644 --- a/web/src/stores/transactions.ts +++ b/web/src/stores/transactions.ts @@ -84,7 +84,6 @@ export const useTransactionsStore = defineStore("budget/transactions", { this.AddTransactions([recTrans]); account.Transactions.unshift(recTrans.ID); } - console.log("Reconcile: " + response.message); }, logout() { this.$reset() -- 2.47.2 From 42dc51fe9a2a473782a7c1f672ed9962bb18c4a8 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 2 Mar 2022 20:33:01 +0000 Subject: [PATCH 4/4] Improve layout of Reconcilation --- web/src/pages/Account.vue | 57 ++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/web/src/pages/Account.vue b/web/src/pages/Account.vue index 0762885..d75da82 100644 --- a/web/src/pages/Account.vue +++ b/web/src/pages/Account.vue @@ -49,41 +49,48 @@ function createReconcilationTransaction() {
- + Working: - + Cleared: Reconciled: -
- - Is - your current balance? - -
No, it's: - - Difference: - - - -
+ + + + + + + @@ -97,7 +104,11 @@ function createReconcilationTransaction() { -