From 23254071cedd2611c5229b37078b781744c8a174 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 12 May 2023 17:28:50 -0500 Subject: [PATCH 1/4] clear button for send screen #98 --- src/routes/Send.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/Send.tsx b/src/routes/Send.tsx index c6a306d..63ae9b7 100644 --- a/src/routes/Send.tsx +++ b/src/routes/Send.tsx @@ -20,6 +20,7 @@ import { TagEditor } from "~/components/TagEditor"; import { StringShower } from "~/components/ShareCard"; import { AmountCard } from "~/components/AmountCard"; import { MutinyTagItem, UNKNOWN_TAG, sortByLastUsed, tagsToIds } from "~/utils/tags"; +import { BackButton } from "~/components/layout/BackButton"; type SendSource = "lightning" | "onchain"; @@ -273,7 +274,9 @@ export default function Send() { - + }> + clearAll()} title="Start Over" /> + Send Bitcoin Date: Fri, 12 May 2023 17:31:09 -0500 Subject: [PATCH 2/4] clarify create button isn't just for invoice #99 --- src/routes/Receive.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Receive.tsx b/src/routes/Receive.tsx index f8c6270..6c3e612 100644 --- a/src/routes/Receive.tsx +++ b/src/routes/Receive.tsx @@ -182,7 +182,7 @@ export default function Receive() {
- +
From f64ab76c63eff4bd6a8ab4188ac63e11030e11e8 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 12 May 2023 17:34:21 -0500 Subject: [PATCH 3/4] add email type to email field so it doesn't autocap #115 --- src/components/waitlist/WaitlistForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/waitlist/WaitlistForm.tsx b/src/components/waitlist/WaitlistForm.tsx index c6f184e..e74f2f0 100644 --- a/src/components/waitlist/WaitlistForm.tsx +++ b/src/components/waitlist/WaitlistForm.tsx @@ -93,7 +93,7 @@ export default function WaitlistForm() { validate={[required("We need some way to contact you"), email("That doesn't look like an email address to me")]} > {(field, props) => ( - + )} From a169c2fbab7d53c0a7e8eecf7b69ae404bccfcd2 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 12 May 2023 17:50:08 -0500 Subject: [PATCH 4/4] refresh activity after each sync #108 --- src/components/Activity.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/Activity.tsx b/src/components/Activity.tsx index 670e655..0ba7dd1 100644 --- a/src/components/Activity.tsx +++ b/src/components/Activity.tsx @@ -1,5 +1,5 @@ import { LoadingSpinner, NiceP, SmallAmount, SmallHeader } from './layout'; -import { For, Match, ParentComponent, Show, Switch, createMemo, createResource, createSignal } from 'solid-js'; +import { For, Match, ParentComponent, Show, Switch, createEffect, createMemo, createResource, createSignal } from 'solid-js'; import { useMegaStore } from '~/state/megaStore'; import { MutinyInvoice } from '@mutinywallet/mutiny-wasm'; import { JsonModal } from '~/components/JsonModal'; @@ -156,7 +156,14 @@ export function CombinedActivity(props: { limit?: number }) { return activity; } - const [activity] = createResource(getAllActivity); + const [activity, { refetch }] = createResource(getAllActivity); + + createEffect(() => { + // After every sync we should refetch the activity + if (!state.is_syncing) { + refetch(); + } + }) return ( @@ -167,7 +174,7 @@ export function CombinedActivity(props: { limit?: number }) { No activity to show = 0}> - + {(activityItem) =>