Commit graph

145 commits

Author SHA1 Message Date
Jonathan Zernik
38a7a1af87
Got itest working for text search (#1287)
* Got itest working for text search

* Use util function to get search results in itest
2021-09-14 20:47:11 -07:00
Jonathan Zernik
5e561e6ec2
Implemented get external address rpc method (#1236)
* Implemented get external address rpc method

* Display external address on peers page in frontend

* Update frontend build
2021-09-08 20:15:32 -07:00
Jonathan Zernik
b2858d714b
Paginate received payments (#1234)
* Add pagination to get received payments rpc

* Add pagination to received payments frontend page

* Comment unused method used for streaming in timeline page

* Run frontend lint

* Update frontend build
2021-09-08 17:54:49 -07:00
Jonathan Zernik
dc524f80ec
Change create time sent payment to integer (#1221)
* Change created time in sent payment to milliseconds integer

* Change time field of sent payment rpc message to ms

* Update frontend for sent payment to get new milliseconds field

* Update frontend build

* Use milliseconds for received offer created time in database

* Use milliseconds for sent offer created time in database

* Change created time to milliseconds for received payment

* Update frontend to use milliseconds for received payment

* Update frontend to use milliseconds for peer and profile in database

* Change created time and liked time to milliseconds for squeak

* Remove use of datetime module from squeak db

* Fix get liked time in milliseconds in frontend

* Update frontend build

* Simplify squeak retention query
2021-09-07 21:14:17 -07:00
Jonathan Zernik
4b76ad832d
Add pagination for sent payments (#1220)
* Add pagination to get sent payments rpc method

* Got frontend mostly working for paginating sent payments

* Fix warning for missing arg in load sent payments effect

* Update frontend build
2021-09-07 09:26:34 -07:00
Jonathan Zernik
3402527f26
Add input for set custom price (#1214)
* Add rpc method for set profile custom sell price

* Got change profile custom price in frontend working

* Run frontend lint

* Update frontend build

* Got send offers with correct custom price working
2021-09-06 19:28:40 -07:00
Jonathan Zernik
76ad744936
Updrage squeaklib to 0.7.1 (#1194)
* Updrage squeaklib to 0.7.1

* Add case to handle secret key msg in peer msg handler

* Add fields for custom price and use custom price to profile table

* Got itest working with new profile fields

* Use default values for profile struct constructor

* Fix db migration to use use profile columns

* Got itest passing for set use custom price

* Show custom price or default price in profile page

* Change wording of selling with price in profile page

* Got set use custom price toggle working in configure profile dialog
2021-09-05 12:30:58 -07:00
Jonathan Zernik
038a19856e
Add pagination for likes (#1179)
* Add pagination for get liked entries rpc

* Update rpc proto for pagination for get liked entries

* Got pagination working for likes page

* Update frontend build
2021-09-04 09:27:50 -07:00
Jonathan Zernik
47be5c96f9
Use last squeak entry as field in pagination rpc (#1177)
* Update timeline to use more efficient pagination rpc with last entry

* Update address squeaks to use more efficient pagination rpc with last entry

* Update reply squeaks to use more efficient pagination rpc with last entry

* Use last_entry as param in get_timeline db query function

* Use last_entry as param in get address squeaks db query function

* Use last_entry as param in get reply squeaks db query function
2021-09-04 08:31:24 -07:00
Jonathan Zernik
cb10b2f6c4
Add pagination for replies (#1174)
* Implement pagination for get reply squeaks

* Got replies pagination working

* Remove log lines from requests js

* Update frontend build
2021-09-03 18:56:14 -07:00
Jonathan Zernik
fd9a75b417
Add pagination to get address squeaks rpc (#1173)
* Add pagination to get address squeaks rpc

* Implement frontend pagination for address squeaks page

* Got pagination working on address squeaks page

* Update frontend build

* Run frontend lint

* Update frontend build
2021-09-03 17:00:38 -07:00
Jonathan Zernik
13e7dd0226
Only show followed squeaks in timeline (#1171)
* Only show followed squeaks in timeline

* Add rpc method to subscribe timeline squeaks

* Use subscribe new timeline squeaks rpc method in frontend
2021-09-03 14:45:44 -07:00
Jonathan Zernik
408ec42340
Implement download squeaks rpc (#1168)
* Implement download squeaks rpc

* Handle replyto hash in download squeaks method
2021-09-03 10:45:00 -07:00
Jonathan Zernik
ae65ff9320
Add new squeaks available button to timeline (#1137)
* Add rpc method to subscribe to new squeaks

* Got floating action button showing for refresh

* Change spacing of refresh button

* Load new squeaks in timeline from rpc subscription

* Got refresh button correctly showing new squeaks from peer

* Got refresh button action working correctly

* Update frontend build
2021-08-31 23:40:26 -07:00
Jonathan Zernik
e2933784ac
Use only ancestors rpc for squeak page (#1118)
* Got squeak page working without get squeak entry rpc, no streaming yet

* Implement subscribe ancestors

* Got subscribe ancestors working in frontend with download squeak click

* Delete old comments

* Update frontend build

* Remove old log lines
2021-08-30 20:08:37 -07:00
Jonathan Zernik
c801060d35
Add subscribe address display squeaks (#1112)
* Implement rpc command for subscribe address squeak entires

* Got subscription working for address squeaks

* Implemented download squeaks for address rpc

* Fix handling new squeak items from subscription appending to state array

* Update frontend build
2021-08-30 02:43:44 -07:00
Jonathan Zernik
d589b0a4a7
Fix download replies (#1111)
* Fix add temporary interest when downloading replies

* Add subscribe replies rpc

* Got reply squeaks subscription working in frontend

* Update frontend build
2021-08-29 23:49:42 -07:00
Jonathan Zernik
a0d78844da
Download squeaks with custom params (#1108)
* Add rpc method for subscribe squeak entry

* Download squeak without reloading page using squeak entry subscription

* Fix stream termination of component unmount for subscribe squeak entry

* Update frontend build
2021-08-29 22:39:10 -07:00
Jonathan Zernik
97778d9cf2
Subscribe received offers (#1094)
* Add subscribe received offers rpc

* Change return type for subscribe received offers

* Load received offers in buy dialog without reloading page

* Remove download button from buy offer dialog

* Update frontend build
2021-08-28 04:48:57 -07:00
Jonathan Zernik
4c6391c586
Add peer state subscription (#1085)
* Add peer changed listener to peer class

* Add rpc for subscribe peer state

* Got basic connected peer subscription working

* Got basic connected peer subscription working

* Fix multiple yields in single peer subscription handler

* Got subscribe connect peer working pretty well

* Remove old comments from frontend peer address page

* Update frontend build

* Include last msg recv time in connected peer subscription

* Got num sent and received msgs and bytes in peer subscription

* Show peer connection details from subscription

* Update frontend build
2021-08-28 00:37:48 -07:00
Jonathan Zernik
620cdae96c
Add license headers (#1080)
* Add pre-commit hook for license headers

* Configure pre-commit hook for license headers only for python

* Add license headers to python files
2021-08-27 18:31:53 -07:00
Jonathan Zernik
7058fb074d
Combine contact profiles and signing profiles (#1078)
* Include key icon in profile list item when signing profile

* Fix event propagation in avatar click

* Show contact and signing profiles in same list

* Update frontend build
2021-08-27 18:11:58 -07:00
Jonathan Zernik
0a8d30d5fc
Add pagination (#1073)
* Got tuple comparison for timeline pagination query working

* Include limit parameter in get timeline rpc

* Got view more squeaks frontend button working

* Got basic pagination working

* Include squeak time in display rpc struct

* Got pagination working

* Fix sql query to break ties manually in comparison

* Update frontend build
2021-08-27 05:31:37 -07:00
Jonathan Zernik
21246dd151
Rename sync squeaks to download squeaks (#1036)
* Rename download_squeaks rpc

* Fix proto definition comment

* Rename download_squeak rpc

* Fix proto definition comment
2021-08-23 00:16:36 -07:00
Jonathan Zernik
81d79cc7ce
Update connected peer proto struct (#1005)
* Update connected peer proto struct

* Use new connected peers struct in frontend

* Update frontend build
2021-08-21 01:37:14 -07:00
Jonathan Zernik
b9ac4b86b4
Use peer address struct in requests (#1004)
* Update connect peer and disconnect peer rpc to use peer addrss struct

* Update get connected peer rpc to use peer addrss struct

* Use peer address struct in create saved peer rpc

* Use peer address struct in squeak peer struct

* Use peer address for requests functions in frontend

* Update frontend build
2021-08-21 00:54:48 -07:00
Jonathan Zernik
4f2f6107fe
Replace host port with peer address object (#1002)
* Delete old offer with peer and sent payment with peer structs

* Use peer_address as field name for all structs

* Use peer address object in proto responses

* Update frontend to use new peer address struct

* Undo change to navigate to peer address page params

* Update frontend build
2021-08-20 22:03:32 -07:00
Jonathan Zernik
8e30af2f2a
Use peer host and peer port for received payment messag (#1000)
* Use peer host and peer port for received payment messag

* Update frontend build
2021-08-20 20:20:19 -07:00
Jonathan Zernik
7e0a6ed21e
Show peer address for sent payment (#999)
* Remove peer from sent payment response in backeng

* Got peer address showing in sent payment display in frontend

* Fix display of available offers dropdown in buy dialog

* Update frontend build
2021-08-20 19:56:39 -07:00
Jonathan Zernik
b1489e45ed
Show peer info for buy offer (#998)
* Show peer host and port in offer detail component

* Remove peer field from offer display entry
2021-08-20 19:07:59 -07:00
Jonathan Zernik
f9197f7035
Remove uploading and downloading fields and add autoconnect field in … (#993)
* Remove uploading and downloading fields and add autoconnect field in all backend code

* Remove uploading and downloading fields and add autoconnect in frontend

* Update frontend build
2021-08-20 15:46:54 -07:00
Jonathan Zernik
deb8b1b99b
Remove sharing field profile (#990)
* Remove sharing field from all backend code

* Add db migration to remove sharing field

* Remove profile sharing field from frontend

* Update frontend build
2021-08-20 14:18:04 -07:00
Jonathan Zernik
d9150be433
Delete old peer rpc proto (#986) 2021-08-20 00:30:50 -07:00
Jonathan Zernik
99f3ff24c4
Add connected peers subscription (#970)
* Add connected peers subscription rpc command

* Got rpc streaming command for subscribe connected peers working
2021-08-19 19:59:14 -07:00
Jonathan Zernik
bf6fbc0ab7
Add download replies button (#965)
* Add download replies rpc command

* Add download replies button to squeak page

* Use reply to hash in lookup query

* Update frontend build
2021-08-17 23:00:58 -07:00
Jonathan Zernik
32bb960f6a
Only download offers on click (#941)
* Only download offers for squeak when rpc method called

* Only download offers after explicit click in frontend

* Update frontend build
2021-08-14 22:14:14 -07:00
Jonathan Zernik
aab50fa287
Add peer address page (#927)
* Go to peer address page on connected peer item click

* Added disconnect button to peer address page

* Add get connected peer rpc method

* Add disconnect button to peer address page

* Add both connect and disconnect button to peer address page

* Update frontend build
2021-08-12 21:59:26 -07:00
Jonathan Zernik
e64289be7d
Use host port to connect peer (#926)
* Use host and port for connect_peer rpc command

* Use host and port for disconnect peer command

* Got connect peer dialog frontend working

* Add disconnect peer request frontend function

* Update frontend build
2021-08-12 19:53:25 -07:00
Jonathan Zernik
f652915355
Use tcp peer connection (#900)
* Got basic tcp connection working

* Got passing itest for open tcp connection

* Got most of protocol working. still need to send offer correctly

* Got offer from peer over tcp connectrion

* Got single squeak download working on tcp connection

* Remove rpc peer client

* Remove old rpc clients

* Remove old squeak client modules

* Got sharesqueaks peer message working

* Remove peer rpc server

* Remove server rpc fixtures

* Remove old itests

* Remove old sync modules

* Run worker background task to keep peers synced

* Add peer connection worker

* Add test for disconnect peer

* Remove old itest util

* Delete old peer rpc client helpers.

* Handle insert duplicate received offer

* Use more specific exception handling for duplicate offer insert
2021-07-09 21:07:46 -07:00
Jonathan Zernik
b935785469
Use timestamp for like field (#896)
* Use a timestamp for like field in database

* Use query to get liked squeaks in order of like
2021-06-04 18:28:42 -07:00
Jonathan Zernik
c4477a9168
Add liked page (#879)
* Add query filter for getting only liked squeak displays

* Got liked page working

* Fix showing action bar for squeak page with null squeak
2021-02-22 20:17:45 -08:00
Jonathan Zernik
6a71bf5129
Add liked column (#878)
* Add liked column to squeak table

* Add rpc methods for like and unlike

* Fix migration to add liked column

* Got like squeak working

* Set squeak liked without reloading page

* Download squeak button reloads squeak without reloading page

* Use inconbutton for actions in squeak detail component

* Update static build
2021-02-22 18:54:20 -08:00
Jonathan Zernik
a93025a026
Save host and port of buyer client (#868)
* Save host and port of buyer client

* Show buyer port in frontend for received payments
2021-02-21 20:01:02 -08:00
Jonathan Zernik
bd617f18c1
Remove sync result message (#845)
* Remove sync result from protocol

* Update static build after proto change for sync result
2021-02-13 09:31:27 -08:00
Jonathan Zernik
9e15962d1a
Allow reprocess invoice without duplicate (#816)
* Allow reprocessing the same invoice without duplicate insert of received payment

* Use stopped event to stop processing invoices

* Got itest working with payment processor class

* Use payment processor class in squeak controller constructor

* Add rpc method for reprocess received payments

* Add reprocess received payments button

* Add reprocess received payments to admin web app

* Handle processing received payments subscription rpc better

* Add frontend button to reprocess received payments

* Clear settle indices in reprocess received payments

* Update static build
2021-02-12 00:14:45 -08:00
yzernik
aaf6ae975d Revert changes to use natural primary keys 2021-02-04 03:15:02 -08:00
Jonathan Zernik
64cf97dfe9
Try changing peer primary key to hash, not done (#782)
* Try changing peer primary key to hash, not done

* Got backend working with peer hash as primary key

* Got frontend working with peer hash as primary key for peer
2021-02-04 00:09:58 -08:00
yzernik
ebd61823aa Revert back the revert to use address for profile primary key 2021-02-03 20:53:00 -08:00
Jonathan Zernik
855d357ca4
Revert to using integer primary key for profile table (#783) 2021-02-03 01:42:47 -08:00
Jonathan Zernik
7c5734bd86
Use addresss for profile primary key (#779)
* Use address as primary key for profile table

* Delete old sql query comments

* Update frontend to use address for profile primary key

* Fix profiles page data table goto action

* Fix usage of get profile by address in remaining frontend
2021-02-02 20:54:11 -08:00