Commit Graph

1233 Commits

Author SHA1 Message Date
wiz
e2b47c8a37
Load different CSS file depending on dark mode setting 2019-08-29 20:28:04 +09:00
wiz
4eb85b955e
Add toggle switch UI preference for Dark Mode on/off
* Store preference for Dark Mode as int32 css_theme
2019-08-29 20:20:25 +09:00
Christoph Atteneder
d701d2f37a
Merge pull request #3157 from ripcurlx/change-burned-bsq-to-grouped-by-day
Group burned BSQ by day
2019-08-28 12:45:10 +02:00
Christoph Atteneder
41774bda48
Group burned BSQ by day 2019-08-28 11:18:01 +02:00
ghubstan
39d823a6fb
Validate phone numbers
Created new PhoneNumberValidator + Test. Validator hides
no arg constructor; public constructor requires two letter
ISO country code for validating inputs.

After successful validation, inputs are transformed into E.164
format and cached in a field, accessible via a getter method.
However, area and region codes are not checked for correctness.
End users are responsible for correctness of area/region codes.

Four i18n properties (validation.phone.*) were added to
displayStrings.properties

This is a partial fix for Issue #3042. The validator
will be integrated into the GUI if PR is approved & patch is
merged.

Question for Bisq devs:
Another new pkg protected class, CountryCallingCodes, contains
an immutable map of ISO country codes -> country calling codes;
it is the only non-validator class in its package. The map
declaration is too large to live in the PhoneNumberValidator class,
even after tweaking idea.properties in an attempt to prevent
the IDE from freezing. Is it OK to leave CountryCallingCodes
where it is, or is there a more appropriate home for it?
2019-08-27 12:19:52 -03:00
sqrrm
ace881cc04
Fix test, add singleton check for ChargeBackRisk 2019-08-27 12:47:02 +02:00
wiz
5bef161c6b
Tweak class names for navigation button text size for Japanese locale 2019-08-24 14:05:07 +09:00
wiz
d32f390809
Increase top navigation button text size for Japanese locale 2019-08-24 02:17:43 +09:00
Christoph Atteneder
0d9d1bdd8c
Merge pull request #3124 from battleofwizards/fix-dropdown-autocomplete-bugs
Fix bugs in SearchComboBox (improve autocomplete)
2019-08-23 11:10:35 +02:00
Christoph Atteneder
b43a006832
Merge pull request #3127 from devinbileck/activate-dao-preferences
Fix incorrect DAO full node check when loading PreferencesView
2019-08-22 19:35:25 +02:00
Devin Bileck
1780090558
Fix incorrect DAO full node check when loading PreferencesView
When loading the preferences view, it would always log a warning
indicating that DAO full node is selected without providing required
parameters even though it wasn't selected.
2019-08-22 01:28:11 -07:00
battleofwizards
fed956f63f
Fix bugs in SearchComboBox (improve autocomplete)
Bisq's SearchComboBox implements a simple autocomplete. It is used
on the "add new altcoin account" form.

This fixes the following bugs in the SearchComboBox:

* no more dropdown flickering (fixed hide+show hack)
* space key no longer resets the text input
* unconfirmed changes no longer affect the form
* empty list no longer renders empty dropdown

This is a preparation step for using SearchComboBox more widely
in the project.
2019-08-21 22:19:31 +02:00
Devin Bileck
b095086204
Prevent NullPointerException in ProposalsView
When activating the ProposalsView, the table height is updated on the
user thread. Sometimes the scene is unavailable and causes a
NullPointerException. This should at least prevent the exception.

Fixes #2883 and #3116
2019-08-21 00:59:30 -07:00
sqrrm
f2f62c7033
Merge pull request #3112 from freimair/optimizations
Various optimizations
2019-08-20 22:08:19 +02:00
Christoph Atteneder
85a93ba261
Merge pull request #3107 from christophsturm/christoph-more-tests
inject CorruptedDataFilesHandler instead of making it static
2019-08-20 11:34:14 +02:00
Florian Reimair
0501412d8e
Fix performance issue with DaoResultView 2019-08-20 11:18:17 +02:00
Christoph Sturm
7694d4e7d1 change some storage creations to injection. ensure its not a singleton 2019-08-19 17:19:45 +02:00
Christoph Sturm
b77cff9e26 inject CorruptedDataFilesHandler instead of making it static 2019-08-19 16:54:46 +02:00
battleofwizards
becfdc6819
Auto remove whitespace in the IBAN input field
When adding a payment account Bisq requires IBAN to be whitespace free.

It is annoying for the user to manually clean pasted IBAN of spaces.
In online banking IBAN-s are usually displayed *with* spaces for
better readability.

This commit auto-removes whitespace when user is leaving the input
field, right before validation, effectively allowing to paste
real world IBAN-s.
2019-08-17 22:36:26 +02:00
sqrrm
56037f0a08
Merge pull request #3077 from freimair/gui_tweaks
Gui layout tweaks
2019-08-16 18:23:55 +02:00
sqrrm
4381eea242
Merge pull request #3086 from christophsturm/p2ptest
inject publickeyring
2019-08-16 18:22:38 +02:00
Florian Reimair
9763753553
Merge pull request #3090 from battleofwizards/render-column-headers-in-csv-export
Render proper column headers and values for CSV exports; fix #3075
2019-08-14 18:46:41 +02:00
Florian Reimair
cb774176b7
Add minheight to prevent truncation 2019-08-14 18:34:43 +02:00
Christoph Sturm
5579c3019e rename MakerFeeMaker => MakerFeeProvider 2019-08-14 17:58:04 +02:00
Christoph Sturm
9eb174bc88 provide PubKeyRing and use it where appropriate instead of keyring 2019-08-14 17:58:04 +02:00
battleofwizards
72a6b784dc
Render proper column headers and values for CSV exports; fix #3075
When exporting to CSV, both portfolio/trades and funds/transactions
were lacking the column headers.

Additionally, portfolio/trades colum values were outdated and
not matching the intended export.

Both issues are fixed.
2019-08-14 16:35:40 +02:00
Christoph Sturm
d5af6e5260 avoid acronyms 2019-08-14 10:45:05 +02:00
Christoph Sturm
bd06d2a7df document what this is for 2019-08-14 10:42:38 +02:00
Christoph Sturm
17221cbed8 remove more powermock and jmockit tests.
ignore 2 or 3 tests that are not possible to convert now
2019-08-13 19:30:57 +02:00
Christoph Sturm
a8494a993a fix missing annotation 2019-08-13 15:58:14 +02:00
Christoph Sturm
c6f07ed945 singletonify the rest of the core module 2019-08-13 15:58:14 +02:00
Christoph Sturm
7500887484 even more singletoning 2019-08-13 15:58:14 +02:00
Christoph Sturm
3f097ebf63 more singletoning 2019-08-13 15:58:13 +02:00
Christoph Sturm
a4e8ec5ebf convert some of the core config 2019-08-13 15:58:13 +02:00
sqrrm
e52c255446
Merge pull request #3058 from christophsturm/bump-guice
use singleton annotation instead of binding as singleton
2019-08-13 15:19:41 +02:00
Florian Reimair
8821cdccf7
Dynamic list view sizes for DAO bonding tab 2019-08-13 12:43:40 +02:00
Florian Reimair
3018417d9b
Dynamic list view size for asset listing fee 2019-08-13 12:07:39 +02:00
Florian Reimair
637071c956
Dynamic list view size in Dao network monitor view 2019-08-13 11:44:47 +02:00
Florian Reimair
7e7d956f05
Dynamic list view size in accounts view 2019-08-13 11:22:08 +02:00
Florian Reimair
6ea0c50752
Update trading amount to prevent popup loop 2019-08-12 19:16:42 +02:00
sqrrm
fb1c96d24c
Merge pull request #2976 from niyid/master
Fixes for issues #2741, #2944, #2955
2019-08-09 15:35:21 +02:00
sqrrm
b92b4becfb
Merge pull request #3040 from bisq-2106-2/master
Fix for #2106
2019-08-09 15:32:50 +02:00
Christoph Atteneder
89073316c9
Merge branch 'master' of github.com:bisq-network/bisq into hotfix-v1.1.5
# Conflicts:
#	build.gradle
#	desktop/package/linux/Dockerfile
#	desktop/package/linux/package.sh
#	desktop/package/linux/release.sh
#	desktop/package/macosx/create_app.sh
#	desktop/package/macosx/finalize.sh
#	desktop/package/macosx/insert_snapshot_version.sh
#	desktop/package/windows/package.bat
#	desktop/package/windows/release.bat
#	relay/src/main/resources/version.txt
2019-08-08 11:19:51 +02:00
Christoph Atteneder
a56b367476
Revert to SNAPSHOT version 2019-08-08 10:34:06 +02:00
Christoph Atteneder
3bf3ff83b9
Bump version number 2019-08-08 09:54:54 +02:00
sqrrm
08a34e6cf8
Don't force close on checkpoint fail 2019-08-08 09:41:03 +02:00
sqrrm
398f173981
Don't force close on checkpoint fail 2019-08-07 23:19:21 +02:00
Christoph Sturm
643c0daef0 use singleton annotation instead of binding as singleton.
this is the correct way to do it. the way it is currently done means
that if a component is not declared in a module, guice still finds it
but does not use the singleton lifecycle

binding as singleton in the module is meant to be used for classes that
we don't have the sourcecode for (i.e. jdk classes)
2019-08-06 17:44:47 +02:00
Christoph Sturm
aa4813d7b1 don't fail if there is no shutdown hook. 2019-08-06 17:44:47 +02:00
Christoph Sturm
20e011178e bump guice version and start testing desktop guice setup 2019-08-06 17:44:47 +02:00
Niyi Dada
b4f79f2e73 Fixed column indexing. 2019-08-06 11:35:59 +01:00
Niyi Dada
d12a6c2e0f Reformatting completed. 2019-08-01 13:11:38 +01:00
Niyi Dada
09369c6043 Reformatting. 2019-08-01 12:29:05 +01:00
Niyi Dada
0fffbe670e Columns added to export but hidden from view table.
- Transaction Fee
 - Maker Fee
 - Buyer Deposit
 - Seller Deposit
2019-07-31 22:55:22 +01:00
Christoph Atteneder
fdf5364c47 Add domain layer for signed account age witnesses (credits ManfredKarrer and oscarguindzberg) 2019-07-30 11:38:57 +02:00
Christoph Atteneder
db25293d62
Merge branch 'master' of github.com:bisq-network/bisq into hotfix-for-v1.1.3
# Conflicts:
#	build.gradle
#	desktop/package/linux/Dockerfile
#	desktop/package/linux/package.sh
#	desktop/package/linux/release.sh
#	desktop/package/macosx/create_app.sh
#	desktop/package/macosx/finalize.sh
#	desktop/package/macosx/insert_snapshot_version.sh
#	desktop/package/windows/package.bat
#	desktop/package/windows/release.bat
#	relay/src/main/resources/version.txt
2019-07-29 19:00:37 +02:00
Christoph Atteneder
d7cdd4be5c
Revert to SNAPSHOT version 2019-07-29 15:41:41 +02:00
sqrrm
50f350445c
Add checkpoint at block 586920
A checkpoint at block 586920 with hash
523aaad4e760f6ac6196fec1b3ec9a2f42e5b272 to avoid that clients in
a corrupt state continue running.

Ignore checkpointing if ignoreDevMsg is set
2019-07-28 20:32:19 +02:00
Christoph Atteneder
d498e43415
Bump version number 2019-07-26 10:41:47 +02:00
Christoph Sturm
c3d21806c4 rename Clock to ClockWatcher
* this class is not a clock but it watches the clock, detects standby
and runs periodic tasks.
* there is already a jdk method called clock
First i thought it should be called PeriodicTaskManager, now i find
ClockWatcher more fitting.
2019-07-24 16:39:03 +02:00
Niyi Dada
36002dbbcc Added test for median statistics 2019-07-18 19:11:54 +01:00
Niyi Dada
36b462be27 Fix for issue 2955 2019-07-18 19:09:39 +01:00
Niyi Dada
58ce6af3eb Fix for issue 2955 2019-07-18 19:07:15 +01:00
Niyi Dada
91c3337c37 Fixes for issues 2944 and 2955 2019-07-18 18:58:55 +01:00
Christoph Atteneder
a2c19fa785
Revert to SNAPSHOT version 2019-07-15 16:35:49 +02:00
Christoph Atteneder
59be5bc94e
Bump version number 2019-07-15 16:33:55 +02:00
Christoph Atteneder
3b915a3131
Merge pull request #2884 from sqrrm/hide-extremes
Add checkbox to hide extreme offers in chart
2019-07-12 10:33:48 +02:00
a123b
0ee23c7b4f Fix missing payment info on SEPA Instant trades 2019-07-02 16:57:22 +02:00
a123b
2b171e4831 Fix offer editing for low volume offers
For very low volume offers, it can happen that the minimum buyer security
deposit by coin value is bigger than the maximum security deposit by
percentage of trade amount.
This caused the security deposit validity check in the offer editor to fail,
making it impossible to edit these offers.
This commit fixes the problem by setting the default percentage value to
the model instead of the calculated one in this specific case.
2019-06-29 17:03:19 +02:00
sqrrm
664c7c6f87
Remove extra UI element and text string 2019-06-21 11:20:45 +02:00
sqrrm
7a66febd52
Remove checkbox for hiding extremes 2019-06-20 12:07:58 +02:00
Christoph Atteneder
d53c3b387c
Merge pull request #2890 from sqrrm/display-param-change-value
Display changed param value at proposal time, fix #2692
2019-06-19 18:06:27 +02:00
sqrrm
386209bd99
Merge pull request #2888 from sqrrm/late-vote-reveal-handling
Late vote reveal handling
2019-06-19 12:54:51 +02:00
sqrrm
8c278a650a
Fix check for vote inclusion 2019-06-18 15:02:41 +02:00
sqrrm
212b779203
Use genesis height as fallback 2019-06-17 10:58:29 +02:00
sqrrm
29c48e9548
Display changed param value at proposal time, fix #2692 2019-06-16 15:49:30 +02:00
sqrrm
ba002b5207
Limit BSQ validator to 10M BSQ, fix #2727 2019-06-16 14:49:37 +02:00
sqrrm
12e46f027a
Indicate when vote wasn't included in result in proposalDisplay 2019-06-16 00:34:49 +02:00
sqrrm
98b4fe0d91
Show failed ballots as failed, fix #2704 2019-06-16 00:08:27 +02:00
sqrrm
fcfd302f62
Use proper vertical alignment for checkbox 2019-06-15 11:29:47 +02:00
sqrrm
23927af6a7
Add checkbox to hide extreme offers in chart 2019-06-14 14:08:49 +02:00
sqrrm
13f265122b
Add basic chat UI
Very basic switch between chat and overview per trade, improvements
needed on the UI.
2019-06-06 00:34:53 +02:00
Christoph Atteneder
5b841709d4
Revert to SNAPSHOT version 2019-06-04 10:53:42 +02:00
Christoph Atteneder
ca24ce0217
Bump version number 2019-06-04 10:49:00 +02:00
sqrrm
fb71c3245f
Test trade chat UI 2019-06-03 13:12:49 +02:00
sqrrm
3b87045133
Make attachments optional 2019-06-03 13:12:12 +02:00
agb19
9970571979
Fix "useless use of IPv6" in Tor socket
Implements the "possible fix" described in issue #2840 by appending the directive `java.net.preferIPv4Stack=true` to the JVM options. 
Tested successfully on Debian 9 and Tails 3.14, using platform Tor and onion-grater.
2019-06-03 10:08:46 +00:00
sqrrm
b93e7bac56
Add trader chat
- Add communication messages to Trade protobuf message to be able to
save chat messages per trade
- Add Type enum and field to DisputeCommunicationMessage protobuf to
be able to dispatch Dispute and Trade chat messages properly
- Rename some function as isClient instead of isTrader to make it easier
to understand who is who when two traders are communicating with each
other
2019-06-02 15:40:50 +02:00
sqrrm
1b1dce1012
Add ChatManager
Move session classes to core. Break out DisputeCommunicationMessage
handling from DisputeManager and put in ChatMananger prepare for other
uses of ChatManager.

Renaming of DisputeCommunicationMessage would be nice but it's
representing the protobuf messages so the name has to stay.
2019-05-30 18:49:54 +02:00
sqrrm
dcfb5faf1e
Show peer address properly 2019-05-28 17:01:40 +02:00
sqrrm
2d77f32598
Handle Chat message subscription inside Chat 2019-05-25 18:15:46 +02:00
sqrrm
1a25678080
Move close ticket button creation to arbitration
Add extra button for generically added button in chat
2019-05-25 16:39:18 +02:00
sqrrm
b1362a9a36
Separate most of Chat and arbitration
The naming of DisputeCommunicationMessage has to stay but they otherwise
fit what would be more aptly named ChatCommunicationMessage or something
in that spririt.
2019-05-25 16:22:15 +02:00
sqrrm
b5b126ceb4
Refactor Chat out of TraderDisputeView
On the way to adding chat for traders this is a first step. Mainly just
moving functionality out of TraderDisputeView to Chat class. There are
still remaining dispute functionality that needs to be factored away.
2019-05-24 00:33:50 +02:00
Devin Bileck
13cec4a877
Add more tests for formatDurationAsWords 2019-05-17 14:37:37 -07:00
Manfred Karrer
a730cc5300
Merge pull request #2705 from devinbileck/proposal-url-validation
Add specific URL validation for proposal links
2019-05-16 14:01:45 +02:00
Devin Bileck
f0fc83619c
Fix DAO synchronization text after restore from seed
After restoring from seed, the text shown under DAO /
BSQ Wallet / Transactions displays an incorrect progress - the numbers
are swapped. For example:
"Awaiting blocks... Verified 575,868 blocks out of 554,857"

Normally we get the latest block height from BitcoinJ as the
target height, and we request BSQ blocks from seed nodes up to latest
block.

But when restoring from seed, we receive the latest block height
from the seed nodes while BitcoinJ has not received all blocks yet and
is still syncing.

Fixes https://github.com/bisq-network/bisq/issues/2825
2019-05-15 23:14:55 -07:00
Manfred Karrer
cf9dc0df50
Merge pull request #2830 from ManfredKarrer/improve-dispute-ui
Fix issue with label width, add deposits
2019-05-15 01:23:40 +02:00
Manfred Karrer
4f7558b899
Fix issue with label width, add deposits 2019-05-14 15:18:13 +02:00
Manfred Karrer
25ee98dbce
Fixes https://github.com/bisq-network/bisq/issues/2804 and https://github.com/bisq-network/bisq/issues/2826 2019-05-14 15:05:12 +02:00