Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(pay): ui improvements #4048

Merged
merged 14 commits into from
Feb 28, 2024
Merged

feat(pay): ui improvements #4048

merged 14 commits into from
Feb 28, 2024

Conversation

siddhart1o1
Copy link
Member

@siddhart1o1 siddhart1o1 commented Feb 22, 2024

  • improvements in UI

    • remove SATs and unit notion, now it's completely fiat only.
    image image
    • shifted currency toggle to sidebar
    • added a context for invoice
    • some changes in CSS.

    In future PRs

    • add BTC currency to pay in sats
    • move memo to sidebar.

@siddhart1o1 siddhart1o1 force-pushed the feat--galoy-pay-ui-improvements branch from a674432 to ae70226 Compare February 22, 2024 06:44
@siddhart1o1 siddhart1o1 changed the title feat(pay): ui improvement feat(pay): ui improvements Feb 22, 2024
@siddhart1o1 siddhart1o1 force-pushed the feat--galoy-pay-ui-improvements branch 4 times, most recently from ecfe853 to d7c8da1 Compare February 22, 2024 18:42
@siddhart1o1 siddhart1o1 force-pushed the feat--galoy-pay-ui-improvements branch from d7c8da1 to 27a15e0 Compare February 23, 2024 21:06
@siddhart1o1 siddhart1o1 marked this pull request as ready for review February 24, 2024 05:20
@siddhart1o1 siddhart1o1 force-pushed the feat--galoy-pay-ui-improvements branch from b9358bf to afe3e97 Compare February 24, 2024 15:34
@@ -2,10 +2,10 @@ import type { Metadata } from "next"
import { Inter_Tight } from "next/font/google"

// eslint-disable-next-line import/no-unassigned-import
import "./globals.css"
import "bootstrap/dist/css/bootstrap.css"

// eslint-disable-next-line import/no-unassigned-import
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// eslint-disable-next-line import/no-unassigned-import
// eslint-disable-next-line import/no-unassigned-import

is this still necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, these comments work for next line only. We can add comment to ignore in entire file, but not sure if that is better approach.

@@ -17,26 +16,28 @@ export default function CurrencyDropdown({
showOnlyFlag?: boolean
}) {
const searchParams = useSearchParams()
const display = searchParams?.get("display")
const display = searchParams?.get("displayCurrency")
Copy link
Member

Choose a reason for hiding this comment

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

I would keep display for now. keep the breaking changes / higher risk element for a smaller PR. so we can isolate the effect of it and decide later if that makes sense or not to do it.

Copy link
Member Author

@siddhart1o1 siddhart1o1 Feb 25, 2024

Choose a reason for hiding this comment

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

I added support for display as well, and it was working with URLs with display parameter. However, I am reverting this to make a smaller PR later.

Comment on lines +71 to +80
<div className="link-wrapper">
<a
className={styles.link}
href="https://galoy.io"
target="_blank"
rel="noreferrer"
>
Powered by <GaloyIcon />
</a>
</div>
Copy link
Member

Choose a reason for hiding this comment

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

we can remove that. at least as it is currently, it's taking too much real estate for a POS screen (we should not have the ability to scroll on such a screen really, the focus should be on inputing an amount with a keyboard and we should not distract from this action by making the page longer)

Copy link
Member Author

@siddhart1o1 siddhart1o1 Feb 25, 2024

Choose a reason for hiding this comment

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

This is part for receipt PDF. Not for webpage.

@nicolasburtey
Copy link
Member

Also, this PR is pretty big. If it's possible to break in down in smaller one, that would ease and probably speed up the review process

@siddhart1o1 siddhart1o1 force-pushed the feat--galoy-pay-ui-improvements branch from afe3e97 to 80a7ed8 Compare February 25, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants