Commit graph

1350 commits

Author SHA1 Message Date
Christoph Atteneder
b5f871b8ed
Merge pull request #3165 from chimp1984/trade-chat
Traders chat
2019-08-30 19:00:03 +02:00
chimp1984
50baa9b023
Close chat window if dispute gets closed 2019-08-30 18:44:43 +02:00
chimp1984
57ec0dbc7e
Persist chat position. Improve listener handling.
- Store last position of the chat window so if it gets closed and opened
again it opens at the last position.

- Fix issues with the listener for new messages.
The handler was called multiple times before. Now its is called only
once. Tested with multiple trades and scrolling.

We use maps for each trade to avoid multiple listener registrations
when switching views. With current implementation we avoid that but we
do not remove listeners when a trade is removed (completed) but that
has no consequences as we will not receive any message anyway from a
closed trade. Supporting it more correctly would require more effort
and managing listener deactivation at screen switches (currently we
get the update called if we have selected another view.

This part can be improved if any dev feels motivated but its not
trivial...
2019-08-30 18:08:12 +02:00
Christoph Atteneder
8edd2611db
Use button instead of label to fix tooltip font size, use material design icon and add additional cleanup code 2019-08-30 12:42:17 +02:00
Christoph Atteneder
964ca648b8
Fix positioning of badge 2019-08-30 12:04:55 +02:00
wiz
efe1b47b88
Additional CSS fixes/tweaks for Dark Mode theme 2019-08-30 10:13:12 +09:00
chimp1984
663d8591c4
Add chat rules system msg; cleanups 2019-08-30 00:58:06 +02:00
chimp1984
6304c9ec84
Add badge for num new chat msg 2019-08-30 00:07:51 +02:00
chimp1984
e0c1a85406
Add wasDisplayed field to chatMsg
- Fix logger
- Manage display state off trade chat msg (wip)
2019-08-29 22:29:36 +02:00
battleofwizards
3f1b188e21
Add dropdown autocomplete on Market, Buy, Sell tabs; fix #2226
Basic autocomplete feature for all dropdowns on the major tabs:

* Market / Offer Book
* Market / Trades
* Buy BTC
* Sell BTC

Known limitations:

* Autocomplete still missing from Settings, Account, DAO tabs
* Minor UX glitches remain despite lots of debugging and polishing

Related issues:

* fix #2226
* partially addressed #2712
* superseded #112
2019-08-29 20:33:34 +02:00
chimp1984
29e957a7ca
Apply changes from master 2019-08-29 19:11:09 +02:00
chimp1984
fa43f03151
Merge branch 'master_upstream' into sq-add-trader-chat
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/disputes/trader/TraderDisputeView.java
2019-08-29 19:09:49 +02:00
chimp1984
bfb111da67
Add close handler to popup
- Close already open chat if new one opens
2019-08-29 18:56:11 +02:00
wiz
d308491d7f
Minor CSS fixes for light/dark themes 2019-08-30 01:42:09 +09:00
chimp1984
2189cba41b
Show chat in popup instead of tab (WIP) 2019-08-29 17:50:14 +02:00
chimp1984
329572cc5d
Merge branch 'master_upstream' into sq-add-trader-chat
# Conflicts:
#	core/src/main/java/bisq/core/arbitration/DisputeManager.java
#	core/src/main/java/bisq/core/arbitration/messages/DisputeCommunicationMessage.java
#	core/src/main/java/bisq/core/trade/Trade.java
2019-08-29 16:50:32 +02:00
wiz
fd0c8652bd
Rename colors in bisq.css, add theme-light.css and theme-dark.css
Co-authored-by: Peter Banik <peter@froggle.org>
2019-08-29 20:48:01 +09:00
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