Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: lightning channel flows #1000

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

pavanjoshi914
Copy link
Contributor

@pavanjoshi914 pavanjoshi914 commented Jan 16, 2025

lightning channel flow using stepper component

@pavanjoshi914 pavanjoshi914 marked this pull request as draft January 16, 2025 12:33
@pavanjoshi914 pavanjoshi914 marked this pull request as ready for review January 17, 2025 12:08
};

export function PayLightningInvoice({ invoice }: PayLightningInvoiceProps) {
export function PayLightningInvoice({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a general "Pay Lightning Invoice" component and now it is coupled with the LSP order. This doesn't seem to make sense to me, can you double-check your changes?

@@ -29,7 +29,11 @@ function SidebarHint() {
title="New Channel"
description="You're currently opening a new channel"
buttonText="View Channel"
buttonLink="/channels/order"
buttonLink={`${
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this work?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does the outgoing flow work?

And when I click this link when I'm currently opening an incoming channel, what I see on the page is wrong.

</TooltipContent>
</Tooltip>
</TooltipProvider>
<MempoolAlert />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is shown in the wrong place compared to in master

) && <ChannelPublicPrivateAlert />}
{selectedPeer?.note && <ChannelPeerNote peer={selectedPeer} />}

<DuplicateChannelAlert
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is shown when it should not be.

>
<div className="flex items-center gap-3 justify-between">
<div className="flex items-center gap-3">
{peer.name !== "Custom" && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no custom any more. If you make big changes to these flows can you consider what needs to be removed and what needs to be kept?

: ""
}`}
onClick={() =>
setSelectedPeer(peer)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also close the sheet?

onClick={prevStep}
variant="secondary"
>
Back
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do when you are currently opening a channel?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants