Commit graph

205 commits

Author SHA1 Message Date
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
Jonathan Zernik
48158803a6
Fix multiline text content in squeak thread item component (#144) 2020-07-25 20:25:14 -07:00
yzernik
9764cc5208 Validate form input on makesqueak submit 2020-07-25 19:59:03 -07:00
Jonathan Zernik
baea5f8cdf
Remove extra log lines from admin servicer (#143) 2020-07-25 19:45:18 -07:00
Jonathan Zernik
2db282c897
Add squeak thread item component (#142)
* Add SqueakThreadItem componentn and use it in timeline and squeakaddress page

* Use multiline input form for squeak content in makesqueak

* Use character limit maxLength in textfield

* Fix button style in makesqueak page

* Make input text full width in make squeak page

* Add select signing profile to make squeak page

* Fix submit makesqueak button
2020-07-25 19:34:28 -07:00
Jonathan Zernik
ad3d7bbb8c
Fix warnings about html p element caused by typography (#141) 2020-07-25 17:32:12 -07:00
Jonathan Zernik
5ab01107e4
Fix squeak page hash (#140)
* Use bytes for all squeak hashes in admin proto

* Use string for squeak_hash grpc fields in admin rpc

* Fix redirect to squeak page from make squeak

* Verfiy block synchronously before returning response in make_squeak
2020-07-25 17:19:54 -07:00
Jonathan Zernik
96c72f640e
Add squeak page (#139)
* Create squeak page

* Fix click address on squeak item handler

* Add handle squeak click handler

* Fix handle squeak click in timeline page
2020-07-25 00:11:35 -07:00
Jonathan Zernik
b8f321f78d
Fix missing dependency in squeak address page (#138)
* Fix missing dependency in squeakaddress page

* Fix missing dependency in profile page
2020-07-24 23:13:46 -07:00
Jonathan Zernik
441aecd148
Create tabls in profiles page (#137)
* Create tab for signing profiles in profiles page

* Add rpc methods to create and get contact profiles

* Create tab for contact profiles

* Create page for create profile

* Fix submit create contact profile form

* Fix get contact profiles request in profiles page

* Fix validation of squeak address in create contact method

* Validate squeak address in create contact profile frontend
2020-07-24 22:43:39 -07:00
Jonathan Zernik
e1ff407598
Fix link to address page from squeak component (#136)
* Fix link to address page from squeak component

* Include squeaks in address page
2020-07-24 00:26:42 -07:00
Jonathan Zernik
93fff0e3da
Fix 'has a missing dependency' in squeakaddress page (#135) 2020-07-23 23:55:36 -07:00
yzernik
378073b97a Use unique key using hash for squeak timeline list 2020-07-23 23:21:29 -07:00
Jonathan Zernik
d4ce7fbf29
Change squeak layout (#134)
* Change squeak layout

* Show squeaks for address in address page

* Use new squeak layout
2020-07-23 18:49:52 -07:00
Jonathan Zernik
1ddd70ab92
Remove sample notifications (#133) 2020-07-23 17:30:39 -07:00