Commit graph

219 commits

Author SHA1 Message Date
Jonathan Zernik
a3cd29f430
Run codeformat (#184) 2020-07-31 16:47:17 -07:00
Jonathan Zernik
9a7d034771
Use dialog for create profile (#183)
* Use dialog for create signing profile

* Create signing profile dialog working

* Add create contact profile dialog

* Delete create signing profile page and create contact profile page
2020-07-31 04:12:40 -07:00
Jonathan Zernik
80713c94ea
Use network config from config file to set paramas (#182) 2020-07-31 03:06:10 -07:00
Jonathan Zernik
5976623f74
Add itest for lookup method (#181) 2020-07-31 01:57:02 -07:00
Jonathan Zernik
6390f5d8ad
Fix squeak server get method (#180) 2020-07-31 00:59:30 -07:00
Jonathan Zernik
10b93dd03b
Add server table (#179)
* Add server table

* Add server rpc method

* Add method to get server by id
2020-07-30 05:25:45 -07:00
Jonathan Zernik
7c4b84056b
Use created time for rate limiter (#178)
* Use created time to rate limit based on last hour

* Delete commented lines in rate limiter
2020-07-30 03:05:21 -07:00
Jonathan Zernik
6ce7723c35
Remove print line from itest (#177) 2020-07-30 02:19:20 -07:00
Jonathan Zernik
fa81721d5c
Fix delete squeak dialog title (#176) 2020-07-30 02:16:01 -07:00
Jonathan Zernik
0264fe7f9c
Add delete squeak dialog (#175) 2020-07-30 01:35:44 -07:00
Jonathan Zernik
1438b96de4
Add delete squeak method (#174) 2020-07-30 00:42:44 -07:00
Jonathan Zernik
fd23d38fa3
Rename sell itest (#173) 2020-07-29 23:23:48 -07:00
Jonathan Zernik
2c170c3c2d
Add frontend switch for whitelisted (#172) 2020-07-29 22:41:09 -07:00
Jonathan Zernik
c172bfe142
Add set sharing method (#171)
* Add rpc method to set sharing in profile

* Fix rpc request for set sharing
2020-07-29 22:36:31 -07:00
Jonathan Zernik
cdca52b7e2
Rename followed to following (#170)
* Rename followed field to following in profile

* Rename shared field to sharing in profile

* Revert changes to icons.js

* Rename following squeaks to followed squeaks

* Fix frontend for renamed get followed request
2020-07-29 21:48:42 -07:00
Jonathan Zernik
bb97f8a515
Add switch to profile frontend to follow or unfollow (#169) 2020-07-29 20:22:06 -07:00
yzernik
cd5a009a14 Fix frontend shared and followed fields 2020-07-29 17:26:37 -07:00
Jonathan Zernik
3543f498cc
Fix set followed method (#168)
* Fix set followed rpc method

* Fix get followed squeaks method
2020-07-29 16:53:52 -07:00
Jonathan Zernik
b39bb94a92
Use fixtures for testmakesqueak itest (#167) 2020-07-29 15:55:22 -07:00
yzernik
ba1e12f302 Remove printlns from itest 2020-07-29 04:55:09 -07:00
yzernik
8d25d9485d Use fixture in make reply itest 2020-07-29 04:44:43 -07:00
yzernik
06eb835103 Add fixture for contact profile 2020-07-29 04:33:05 -07:00
Jonathan Zernik
bda3afcbd8
Add itests for post squeak (#166)
* Add itests cases for post squeak for success and failutre from non whitelisted key

* Use fixture for saved squeak hash in buy squeak est

* Clean up buy squeak test
2020-07-29 04:16:09 -07:00
Jonathan Zernik
5f734ff142
Fix whitelist refresh (#165)
* Fix refreshing whitelist when it changes, and fix the itest

* Use fixture to get whitelisted signing key.
2020-07-29 02:57:23 -07:00
Jonathan Zernik
cbe0d4014a
Add whitelist (#164)
* Add whitelist class

* Add itest for setting whitelisted field of a profile
2020-07-29 01:09:23 -07:00
Jonathan Zernik
14a09754e0
Change itest file name (#163) 2020-07-28 23:15:29 -07:00
yzernik
d3baa6de86 Rename fixture to set network params in itest 2020-07-28 23:05:48 -07:00
yzernik
2f206d5c96 Set network params in itest in setup fixture 2020-07-28 23:00:05 -07:00
Jonathan Zernik
f10816df4a
Split itests (#162)
* Factor out util functions from itest

* Split up itest into two tests

* Create separate itest for rate limit

* Add itest for reply squeaks and ancestors request

* Add separate itest for create profiles

* Make separate itest for create contact profile

* Use fixtures for stubs in itest

* Use fixtures for all itests

* Use fixture for lightning client
2020-07-28 22:43:30 -07:00
Jonathan Zernik
3c13fa01af
Use pytest for itest (#161)
* Use pytest for itest

* Use pytest for itests
2020-07-28 19:49:44 -07:00
yzernik
e01b4de121 Add todo to get followed squeaks query 2020-07-28 15:25:26 -07:00
Jonathan Zernik
06e642b19c
Add profile whitelist (#160)
* Add whitelisted field to profile table

* Fix adding whitelisted field to profile, itest passes now
2020-07-28 02:05:33 -07:00
Jonathan Zernik
b207469046
Add max squeak per block config (#159)
* Add max squeaks per block per address config

* Add rate limiter class

* Check rate limiter in squeaknode before saving squeak

* Got working itest with rate-limited requests
2020-07-28 01:10:04 -07:00
Jonathan Zernik
52d1f59de0
Fix squeak list item padding (#158)
* Fix padding and margin for squeak list item

* Fix padding and margin for squeak detail page and ancestor thread
2020-07-27 15:12:03 -07:00
yzernik
d8e3d3ffc6 Use larger font size for squeak detail component 2020-07-27 04:17:58 -07:00
yzernik
6770d3f571 Fix docstring for get ancestors method of proto 2020-07-27 04:09:58 -07:00
Jonathan Zernik
dffa88de45
Remove logging in handling of ancestor request (#157) 2020-07-27 03:47:39 -07:00
Jonathan Zernik
35de989e14
Fix order of ancestor thread squeaks (#156) 2020-07-27 03:36:47 -07:00
yzernik
2425387ac8 Show thread ancestors in squeak detail page 2020-07-27 03:08:54 -07:00
Jonathan Zernik
a2a80ca576
Fix padding of squeak detail action icons (#155) 2020-07-27 02:17:58 -07:00
Jonathan Zernik
c22674f3a7
Fix spacing of timeline squeak items (#154)
* Use box instead of widget for squeak components

* Use box instead of widget for squeak detail item component
2020-07-27 02:14:48 -07:00
Jonathan Zernik
a37296565c
Thread ancestors db query (#153)
* Add replyto field to squeak display response in rpc method

* Got thread ancestors query working mostyly

* Got thread ancestors query working

* Fix docstring for ancestor query

* Add check for ancestor query to itest
2020-07-27 00:55:58 -07:00
Jonathan Zernik
e5fd3cd066
Rename frontend code folder to squeak-node-frontend (#152) 2020-07-26 15:50:06 -07:00
Jonathan Zernik
343a66d5cb
Add make squeak reply dialog (#151)
* Make squeak reply action on reply click.

* Successfully open makesqueak dialog from reply button click

* Use repeat and favorite icons

* Able to create makesqueak dialog for reply with the correct reply hash in the dialog

* Show replyto squeak in dialog box for make squeak reply

* Fix conversion of replyto hash string in server

* Close makesqueak dialog after submit

* Fix handling of reply when null
2020-07-26 02:20:25 -07:00
Jonathan Zernik
69eed6e3da
Add reply icon to bottom of squeak detail component (#150) 2020-07-26 01:10:49 -07:00
Jonathan Zernik
a35cb1304c
Fix buttons on create profile pages (#149) 2020-07-25 23:16:16 -07:00
Jonathan Zernik
044aec2caf
Remove ui elements from sidebar (#148) 2020-07-25 23:13:33 -07:00
Jonathan Zernik
a5deeb590e
Add dialog for makesqueak (#147)
* Add makesqueak dialog component

* Got dialog to open on fab click

* Add handleclose for makesqueak dialog

* Got makesqueak dialog working

* Simplify html for make squeak dialog

* Fix width of signing profile select formcontrol

* Remove makesqueak pagep
2020-07-25 23:11:47 -07:00
Jonathan Zernik
9946e4f4a1
Fix squeak detail text newlines (#146)
* Fix newlines in squeak detail component

* Rename component to squeakdetailitem
2020-07-25 20:51:51 -07:00
Jonathan Zernik
7450d08e63
Fix squeak click actions (#145) 2020-07-25 20:34:46 -07:00