Commit Graph

4679 Commits

Author SHA1 Message Date
Dennis Reimann
3a59e2a5c4 Cache resolved store items in HTTP context 2021-12-21 09:24:09 +01:00
Dennis Reimann
38ff3e5e89 Fix footer position on large breakpoints 2021-12-21 09:24:09 +01:00
Dennis Reimann
1f0653985a Apply permission tag helpers to main navigation 2021-12-21 09:24:09 +01:00
Dennis Reimann
a4fa61e5f6 Authorize invoice refund route
The customer gets a pull payment route to initiate the refund, so this one is only for merchants and needs to be authorized.
2021-12-21 09:24:09 +01:00
Dennis Reimann
b68eae6f7d Re-add status messages to pull payments and payout views 2021-12-21 09:24:09 +01:00
Dennis Reimann
2d7c5cabab Refactor page titles and active page functionality 2021-12-21 09:24:09 +01:00
Dennis Reimann
42e731369e Remove section nav for pull payments and payouts 2021-12-21 09:24:09 +01:00
Dennis Reimann
7d2627551b Store Settings nav update 2021-12-21 09:24:09 +01:00
Wouter Samaey
f4bde164bf
Changed API policy for calculating feeRate (#3217) 2021-12-20 11:16:23 +01:00
d11n
bb751793c8
Various minor UI fixes and cleanups (#3208)
* Copy to clipboard fix

* Improve invoice status change wording and JS

* Re-add ability to delete apps

Now that the list view is gone, we need to move this option to the edit view

* Clean up app and payment request bundles

* Fix for invoice status change when dismissed
2021-12-19 13:05:10 +09:00
Nicolas Dorier
c68141119c
[Greenfield] Send forbid 403 rather than empty results on /api/v1/stores (#3215) 2021-12-19 01:01:54 +09:00
Nicolas Dorier
163d1a195d
Fix: DateTime passed to bitpay API weren't assumed UTC, remove DateTime.Now references (#3206) 2021-12-17 15:31:06 +09:00
Wouter Samaey
6de4f6a3ac
Mention the missing API permission in the response of a Greenfield request (#3195)
* Mention the missing API permission in the response header or body

* Fixes + Added a unit test. 1 TODO remains.

* Added MissingPermissionDescription to the error

* Update BTCPayServer.Tests/GreenfieldAPITests.cs

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

* Fix tests

* [GreenField]: Make sure we are sending fully typed errors

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2021-12-16 23:04:06 +09:00
nicolas.dorier
4f7eeea14e
Greenfield: Improve error message, do not use internal lightning node on store's lightning API 2021-12-16 14:27:34 +09:00
nicolas.dorier
bbddd72780
Fix permissions required for store's lightning node in doc 2021-12-16 12:31:24 +09:00
Nicolas Dorier
ac099aa513
Change implementation of the Smtp server (#3202)
* Change implementation of the Smtp server

* Update BTCPayServer/Services/Mails/EmailSettings.cs

Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>

Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
2021-12-15 21:30:46 +09:00
Kukks
ece5401121 Bump QR and LNURL libs 2021-12-15 10:14:20 +01:00
nicolas.dorier
9a70b4487c
Fix: serverinfo 'available' wasn't set for BTC 2021-12-14 00:05:41 +09:00
Trigger
19af02e71b
Fix issue in invoice - changing the payment method (#3169) 2021-12-12 15:04:43 +09:00
d11n
619aa05e14
Update invoice state hint display (#3188) 2021-12-12 00:26:45 +09:00
d11n
cc60958b30
Upgrade Lightning lib (#3187) 2021-12-11 14:32:28 +09:00
Nicolas Dorier
bd2f35a241
Remove Ethereum support (#3182) 2021-12-11 14:31:41 +09:00
d11n
cf78987fab
Fix LN Node availability check (#3189) 2021-12-11 14:31:25 +09:00
d11n
f8e6b51e9d
Store-centric UI (#3091)
* Update layout structure and header

* Implement store selector

* Simplify homepage

* Update layout

* Use dropdown for store selector

* Hide global nav in store context

* Horizontal section nav

* Remove outer section and container from content views

* Update nav

* Set store context for invoice and payment request lists

* Test fixes

* Persist menu collapse state on client-side

* MainNav as view component

* Update app routes to incorporate store context

* Test fixes

* Display ticker for altcoins build only

* Plugins nav

* Incorporate category for active page as well

* Update invoice icon

* Add apps list to nav

* Add store context to app type controllers

* Incorporate id for active page as well

* Test fixes

* AppsController cleanup

* Nav: Display only apps for the current store

* Remove leftover from merge

* Nav styles optimization

* Left-align content container

* Increase sidebar padding on desktop

* Use min-width for store selector menu

* Store settings nav update

* Update app and payment request routes

* Test fixes

* Refactor MainNav component to use StoresController

* Set store context for invoice actions

* Cleanups

* Remove CurrentStore checks

The response will be "Access denied" in case the CookieAuthorizationHandler cannot resolve the store.

* Remove unnecessary store context setters

* Test fix
2021-12-11 12:32:23 +09:00
d11n
2b1436e303
Fix build warning in Invoice Testing Controller (#3191) 2021-12-10 12:31:04 +01:00
Umar Bolatov
cf772bb9e0
Improvements for disabled plugins status indicators (#3168)
* Improvements for disabled plugins status indicators

close #3150

* Improve spacing

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-12-08 13:47:35 +09:00
Andrew Camilleri
fd75008499
Allow pull payments for store guests (#3128) 2021-12-08 00:40:24 +09:00
d11n
e113c12768
Fix copy pay button code (#3175) 2021-12-04 21:12:15 +01:00
d11n
3acda5b342
Fix code display (#3172) 2021-12-04 09:20:35 +01:00
Wouter Samaey
bbea9d7a27
Swagger fixes (#3170) 2021-12-04 09:20:23 +01:00
Ms Floofie
d3b28a98be
Fixed spelling mistake
Changed a misspelling from "synch" to "sync" ;)
2021-11-29 16:17:38 -05:00
Wouter Samaey
c679654ada
Send block reward to a random address instead of the invoice address. Default mine 1 block. (#3164)
* Send block reward to a random address instead of the invoice address. Default mine 1 block.

* Using a random address for the block reward
2021-11-29 19:44:56 +09:00
Umar Bolatov
26f3cffe5c
Fix possible null reference exception when creating a pull payment (#3162)
Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
2021-11-29 07:26:30 +01:00
Wouter Samaey
8f0d82d219
Cheat mode to mine blocks (#3163) 2021-11-29 07:23:56 +01:00
Samuel Adams
ec68d2a0e6
Remove Confirmed state in UI (#3090)
* Remove Confirmed state in UI

Closes #1789.

* Add infobox & improve refund tooltip

* Update BTCPayServer/Views/Invoice/ListInvoices.cshtml

Add @dennisreimann suggestion

Co-authored-by: d11n <mail@dennisreimann.de>

* Add "don't show again" button

Adds a "Don't Show Again" button to the infobox. Also a bugfix that was preventing the new status from showing in the invoice details page.

* Add User blob and move invoice status notice to it

Co-authored-by: d11n <mail@dennisreimann.de>
Co-authored-by: Kukks <evilkukka@gmail.com>
2021-11-26 23:13:41 +09:00
nicolas.dorier
f6afb9a3f0
CheatMode should use NBXplorer RPC proxy rather than hardcoded client 2021-11-26 18:34:40 +09:00
d11n
e9074a8ec1
Test improvement exposing failing test (#3120)
* Test improvement exposing failing test

* Test fixes

* Fix test

* update alt compose

* Fix test CanUsePullPaymentsViaUI

* Fix CanChangeUserMail

Co-authored-by: Kukks <evilkukka@gmail.com>
Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2021-11-26 15:02:30 +09:00
Samuel Adams
9b730e784f
Add pagination for API GetNotifications (#3145) 2021-11-26 11:55:59 +09:00
Umar Bolatov
57852821f5
Remove sync modal from "Forgot password" page (#3159)
* Update "Forgot password" page layout

* Fix null reference error
2021-11-26 11:54:33 +09:00
Andrew Camilleri
87061ecfc0
Support BC-UR v1 wallet import (#3080)
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-25 10:25:22 +01:00
Dennis Reimann
3b3fac98ad Improve Lightning settings display 2021-11-25 10:24:14 +01:00
Dennis Reimann
285a30f67a Plugins: Provide extension points for Lightning setup 2021-11-25 10:24:14 +01:00
Dennis Reimann
e42ef4b2f8 Plugins: Update startup for plugin compatibility 2021-11-25 10:24:14 +01:00
d11n
cc3908cdb3
Checkout: Fix UI flickering on payment method change (#3158) 2021-11-25 10:22:45 +01:00
Umar Bolatov
4fe4cdb7bf
Redirect to payment requests page instead of edit page on archive action (#3142)
* Redirect to payment requests page instead of edit page on archive action

* Remove unused "using" directive
2021-11-24 20:27:56 +09:00
dstrukt
11a9b10a54
Minor visual improvements to various Server Settings views (#3152) 2021-11-24 09:59:19 +01:00
nicolas.dorier
35aad4ebf9
Remove Logs static singletons 2021-11-23 13:55:34 +09:00
dstrukt
ead0f284f2
Simple Invoice Detail View Cleanup (#3100)
* changes copy to "unarchive", more clear

* adds semibold custom class

* adds class to TH elements & uppercases labels

* whitespace and padding patches

* uppercase patches

* removes class in site.css + updates class name

* Fix test

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-22 13:57:20 +09:00
dstrukt
6ff659fb99
Simple Payment Request and Pull Payment Views Improvements (#3127)
* adds border radius to payment request view

* adds border radius to pull payments view

* spacings + font weights

* paddings + font weights

* updates text color

* updates font weights + text colors

* padding consistency

* switches padding to empty state

* update

* another padding fix

* Add "no details provided" when empty description

Co-authored-by: Samuel Adams <samuel.atwood@gmail.com>
2021-11-22 13:56:43 +09:00
Umar Bolatov
194c0f14cb
Format perk value correctly in crowdfund app (#3141)
close #3109
2021-11-22 13:55:07 +09:00
dstrukt
7ab78fff3f
Invoice View Improvements (#3092)
* view improvements

* improves label, adds section headers, re-orders

* Available payment methods as checkboxes

* adds required label

* Update default payment method label

Thanks @woutersamaey for the suggestion.

* Move POS data and notifications to additional options

* Update display names

* adds checkbox to pull payments

* updates label

* Revert "updates label"

This reverts commit 9ed320e863.

* Revert "adds checkbox to pull payments"

This reverts commit 28ea6bfb6e.

* removes required label

* Select all supported tx currencies by default

Slight modification to the checkbox list.

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
Co-authored-by: Samuel Adams <samuel.atwood@gmail.com>
2021-11-22 13:54:42 +09:00
Nicolas Dorier
c01fae5fcd
Bump LND (#3130) 2021-11-20 22:41:35 +09:00
Kukks
c088e0fd55 add extension point in ui 2021-11-18 16:07:54 +01:00
Dennis Reimann
cb1dbe7662 Improve invoice warning for no payment method configured
Closes #3085.
2021-11-18 10:05:37 +01:00
dstrukt
03f8d6693d
Improve Access Tokens View (#3118)
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-18 10:04:20 +01:00
Dennis Reimann
6813a6ea63 Refactoring: Invoice UI Controller cleanups
Simple and IDE proposed changes and cleanups I came across while working on #3092.
2021-11-18 10:02:24 +01:00
dstrukt
4cd18a1b28
Improve Pay Button View (#3112)
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-18 09:58:29 +01:00
dstrukt
90907c6306
Improve Store User View (#3117) 2021-11-18 09:56:25 +01:00
Dennis Reimann
c67b2be9d2 Fix Taproot checks after code removal
Necessary additions to 8d6c5dcd65
2021-11-17 13:40:55 +01:00
nicolas.dorier
8d6c5dcd65
Remove useless code 2021-11-16 21:02:25 +09:00
dstrukt
e5fa6fa55a
Updates Pull Payment Payment Method (#3107)
* adds checkbox to pull payment

* adds label improvement

* removes "back to list"

* Remove superfluous style block

Seems to be a copy and paste remainder

* Make custom CSS additional options

* Fix input name and test

* Improve display for case with only one payment method

* Fix test

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-16 12:58:17 +09:00
dstrukt
748c92436f
Improve Rates View (#3105)
* updates headers + changes copy

* type improvement

* updated copy

* updates copy

* updates copy

* Advanced rate rule scripting toggle

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-16 12:50:35 +09:00
Dennis Reimann
e98c6e69d4 Update POS accordion 2021-11-15 16:43:59 +01:00
Dennis Reimann
c389aa0b99 Apply form styles to rich text editor 2021-11-15 16:43:59 +01:00
Dennis Reimann
8696710ad1 Update app accordions 2021-11-15 16:43:59 +01:00
Dennis Reimann
ce3bf91b29 Move custom CSS into additional options 2021-11-15 16:43:59 +01:00
nicolas.dorier
2f5f397d33
Remove taproot activation code 2021-11-15 23:03:10 +09:00
Kukks
31cf2671f5 Optimize admin user list 2021-11-15 10:28:45 +01:00
dstrukt
d7dc70c679 adds required label dot 2021-11-15 09:35:56 +01:00
dstrukt
ed0d7b75b5 updates left nav 2021-11-15 09:35:56 +01:00
dstrukt
7649f88173 updates title 2021-11-15 09:35:56 +01:00
dstrukt
e9b8035eae adds title and exposes delete 2021-11-15 09:35:56 +01:00
dstrukt
46486704ab notification updates 2021-11-15 09:35:56 +01:00
dstrukt
a6cee23591 2FA updates 2021-11-15 09:35:56 +01:00
dstrukt
33b5ade2b1 padding 2021-11-15 09:35:09 +01:00
dstrukt
0299eb1d24 whitespace 2021-11-15 09:35:09 +01:00
dstrukt
4f9ea39554 updates title 2021-11-15 09:35:09 +01:00
dstrukt
a2a49636e0 cleans up api key list view 2021-11-15 09:35:09 +01:00
Umar Bolatov
d5c38ef336
Add crypto code for invoice and pull payment payout API response (#3099)
* Add "cryptoCode" for invoice payment method API endpoint response

* Add "cryptoCode" for pull payment payout API endpoint response

* Add "#nullable enable" to GreenFieldInvoiceController

* Add "#nullable enable" to GreenfieldPullPaymentController
2021-11-15 14:25:59 +09:00
nicolas.dorier
03d2b6eabe
Checkout page of 0 amount invoices shouldn't crash, but 404 2021-11-15 13:51:36 +09:00
Samuel Adams
cbcd59c996
Prevent creation of on-chain invoices below the dust limit (#3082)
* Prevent creation of on-chain invoices below the dust limit

Fixes #3071.

* Apply suggestions from code review

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

* small fix

* Fix selenium test

0.000000012 BTC (whether rounded or not) is below the dust threshold, causing this test to fail.

* fix CanCreateTopupInvoices test

Don't apply dust threshold conditional for topup invoices.

* Fix test, and minor changes

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2021-11-15 13:48:07 +09:00
Andreas Tasch
c5dc7475a6
Fix type of property cryptoCode (#3088) 2021-11-15 13:15:48 +09:00
Umar Bolatov
40dff0381b
Fix bug with fraction amount display in crowdfund app (#3098)
* Update formatting

* Adjust formatting

* Adjust formatting

* Fix bug with BTC fraction amount display
2021-11-15 13:14:55 +09:00
Nicolas Dorier
39a1834a75
Merge pull request #3093 from satwo/fix-pull-payout-bug
Fix payout/pull payment crash when no payment method bug
2021-11-15 13:13:40 +09:00
Nicolas Dorier
84694d55ad
Merge pull request #3101 from bolatovumar/fix/crowdfund-public-display-text
Show correct note when crowdfund is publicly visible
2021-11-15 13:10:07 +09:00
Nicolas Dorier
605920b421
Merge pull request #3102 from bolatovumar/fix-transaction-row-display-issues
Fix transaction row display issues
2021-11-15 13:09:32 +09:00
Umar Bolatov
037a77a573
Update Swagger docs for webhook event types (#3104)
close #2999
2021-11-15 13:08:54 +09:00
Umar Bolatov
b366e5dbf7
Fix issue with too much padding in comment input box 2021-11-14 16:18:59 -08:00
Umar Bolatov
a277072968
Fix issue with weird label buttons 2021-11-14 16:17:16 -08:00
Umar Bolatov
5523b554f1
Fix issue with giant label input group button 2021-11-14 16:07:27 -08:00
Umar Bolatov
6ae9dee982
Fix giant "Save comment" button issue 2021-11-14 16:02:32 -08:00
Umar Bolatov
dae4577b43
Fix label display issue 2021-11-14 16:02:11 -08:00
Umar Bolatov
6ac9c74028
Show correct note when crowdfund is publicly visible
See discussion here: https://github.com/btcpayserver/btcpayserver/discussions/2968
2021-11-14 15:34:18 -08:00
Samuel Adams
a7ef9c7c27 Fix payout/pull payment crash when no payment method bug
Fixes #3084.
2021-11-12 20:09:32 -05:00
d11n
08f57558da
Fake payment fixes (#3058)
Fixes and various minor improvements for the fake payment form.
2021-11-11 18:31:15 +09:00
d11n
28694859c9
Wallet settings merge (#3072)
* Wallet settings merge

Merges both wallet settings screen from the wallets and the store section. Closes #2626.

* Improve wallet transactions view

* Remove unnecessary row/col construct
2021-11-11 14:30:19 +09:00
Samuel Adams
be7cef29d8 UI changes
Removes the separate column for view style and instead appends it to the App Type column.
2021-11-10 10:52:14 +01:00
Samuel Adams
e914c84ad3 Adds View Style to Apps list 2021-11-10 10:52:14 +01:00
Umar Bolatov
193b209c92
Add setup links for LN URL integration (#3046) 2021-11-10 10:50:39 +01:00
Samuel Adams
d5b25dde3d
Add admin badge to user list (#3033)
Co-authored-by: d11n <mail@dennisreimann.de>
2021-11-10 10:49:16 +01:00