Commit graph

492 commits

Author SHA1 Message Date
Jonathan Zernik
fd3d4229fb
Show modal for delete squeak (#2125)
* Got delete modal working for squeak card

* Got delete squeak modal working in squeak page

* Update frontend build
2022-04-12 00:26:05 -07:00
Jonathan Zernik
78275176d4
Remove old requests javascript file (#2122) 2022-04-11 22:56:25 -07:00
Jonathan Zernik
1f602ea44e
Fix warnings frontend 3 (#2121)
* Remove dotenv javascript lib

* Run npm audit fix

* Run npm audit fix --force

* Update frontend build
2022-04-11 21:46:01 -07:00
dependabot[bot]
b8384e33cf
Bump moment from 2.26.0 to 2.29.2 in /frontend (#2115)
Bumps [moment](https://github.com/moment/moment) from 2.26.0 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.26.0...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 10:18:40 -07:00
Jonathan Zernik
ff79efda35
Improve login page 2 (#2103)
* Got basic login page format working

* Use different login css template

* Got login form partially working

* Remove old form fields

* Got login page working with image

* Load css and js assets locally
2022-03-31 01:01:46 -07:00
Jonathan Zernik
a1981cc846
Show sent payments and received payments for pubkey (#2101)
* Got sent payments working for profile page

* Show received payments in profile page

* Fix infinite scroll of received payments for profile page

* Update frontend build
2022-03-30 21:19:22 -07:00
Jonathan Zernik
f7fec3b8a3
Show sent payments for profile (#2100)
* Add db methods to get sent and received payments for pubkey

* Add flask endpoints for payments per pubkey

* Got amount earned summary working in profile page.

* Update frontend build
2022-03-30 19:58:49 -07:00
Jonathan Zernik
b1ac20cd4a
Fix tab header text for sent payments and received payments in squeak… (#2095)
* Fix tab header text for sent payments and received payments in squeak page

* Update frontend build
2022-03-30 15:22:44 -07:00
Jonathan Zernik
aa48310f01
Fetch signing profiles after creating new profile (#2091)
* Fetch signing profiles after creating new profile

* Update frontend build
2022-03-30 14:18:27 -07:00
Jonathan Zernik
343fdd43e6
Fix close spending modal on profile page (#2089) 2022-03-30 13:45:39 -07:00
Jonathan Zernik
65f53bc938
Show sent and received payments for squeak (#2081)
* Add backend endpoint for get sent payments for squeak and get received payments for squeak.

* Improved look of sats spent and sats earned text in squeak page

* Got spending modal working on squeak page

* Got sent payments working for squeak page

* Got received payments working for squeak page

* Update frontend build
2022-03-30 01:58:11 -07:00
Jonathan Zernik
dff40ef55e
Refactor sent payment into card component (#2080)
* Refactored sent payment into card component

* Refactored received payment into card component

* Update frontend build
2022-03-29 23:45:49 -07:00
Jonathan Zernik
b251263394
Show payments for squeak (#2078)
* Add get received payment summary for squeak and get sent payment summary for squeak.

* Add get sent payments for squeak.

* Add get received payments for squeak.

* Add RPC and flask endpoint for get payment summary for squeak.

* Got payment summary fields working in squeak page.

* Refetch payment summary from backend after buy completes successfully

* Update frontend build
2022-03-29 23:20:38 -07:00
Jonathan Zernik
26dc0c73c2
Include link to peer page in sent payments (#2077)
* Show link to peer page in sent payments

* Change spacing in received offers

* Update frontend build
2022-03-29 21:12:40 -07:00
Jonathan Zernik
349121bee1
Show link to lightning node in sent payment (#2076)
* Show link to lightning network explorer for sent payment node pubkey

* Update frontend build
2022-03-29 20:57:21 -07:00
Jonathan Zernik
5997d16031
Fix spacing in buy offer display css. (#2072)
* Fix spacing in buy offer display css.

* Update frontend build
2022-03-29 18:46:13 -07:00
Jonathan Zernik
ff1a6208e2
Name and pubkey in squeak page are links (#2071)
* Make name and pubkey links in squeak page

* Update frontend build
2022-03-29 18:35:48 -07:00
Jonathan Zernik
34af9008bf
Fix height of more menu in nav page (#2070)
* Fix height of more menu in nav page

* Update frontend build
2022-03-29 18:29:22 -07:00
Jonathan Zernik
ad47244d7a
Fix toggle change image modal (#2066)
* Fix toggle change image modal on click

* Fix header text for delete peer modal

* Update frontend build
2022-03-29 17:43:45 -07:00
Jonathan Zernik
b738004093
Use tesla informed for sell price form (#2059)
* Got update sell price form on nav page working with tesla informed library

* Update frontend build
2022-03-29 00:46:55 -07:00
Jonathan Zernik
ee9d68d3e2
Got delete peer and save peer form on peer page working with tesla in… (#2057)
* Got delete peer and save peer form on peer page working with tesla informed library

* Got edit peer form on peer page working with tesla informed library

* Update frontend build
2022-03-29 00:26:04 -07:00
Jonathan Zernik
aca6069c1c
Validate numeric type of peer port (#2056)
* Validate port is a number in add peer form.

* Update frontend build
2022-03-28 23:41:44 -07:00
Jonathan Zernik
7280061b01
Use tesla informed for peers (#2055)
* Got add peer form on peers page working with tesla informed library

* Remove unused state from peers page

* Remove unused functions from peers page

* Got show external address form on peers page working with tesla informed library

* Update frontend build
2022-03-28 23:32:55 -07:00
Jonathan Zernik
12b583efa7
Remove old comment in search page (#2053)
* Remove old comment in search results component

* Update frontend build
2022-03-28 22:49:10 -07:00
Jonathan Zernik
31a5d05247
Use tesla informed for profile forms (#2052)
* Got change profile name form working with tesla informed library

* Got add contact profile form on unknown pubkey page working with tesla informed library

* Got export private key form on profile page working with tesla informed library

* Got export delete profile form on profile page working with tesla informed library

* Got change profile image form on profile page working with tesla informed library

* Remove unused saved state var in profile page

* Update frontend build
2022-03-28 22:39:11 -07:00
Jonathan Zernik
451de52a59
Use informed lib for create profile (#2051)
* Got create signing profile form working with tesla informed

* Got create contact profile form working with tesla informed

* Got add twitter account form working with tesla informed

* Update frontend build
2022-03-28 20:49:57 -07:00
Jonathan Zernik
c3c1c14071
Use tesla informed lib for make squeak form (#2050)
* Improved make squeak form using tesla informed library

* Fix validation of empty content in make squeak form

* Remove inner input box div

* Use css for tesla informed classes

* Update frontend build
2022-03-28 19:23:04 -07:00
Jonathan Zernik
1105746603
Fix header on twitter accounts page (#2049)
* Fix header on twitter accounts page

* Update frontend build
2022-03-28 17:33:38 -07:00
Jonathan Zernik
115520f6dc
Remove media tab (#2046)
* Remove media tab

* Fix liked tab in profile page

* Remove log line

* Update frontend build
2022-03-28 16:01:51 -07:00
Jonathan Zernik
f12957d25b
Fix more menu on twitter account card (#2044)
* Fix more menu on twitter account card

* Update frontend build
2022-03-28 13:12:35 -07:00
Jonathan Zernik
e5359cc27c
Open href links new tab (#2043)
* Open href links in new tab

* Update frontend build
2022-03-28 01:40:51 -07:00
Jonathan Zernik
b3bf018f56
Add link to twitter page (#2042)
* Add link to twitter page in nav more menu

* Use twitter icon in nav more menu

* Update frontend build
2022-03-28 01:35:46 -07:00
Jonathan Zernik
a6eb0f8a51
Auto indent twitter account card (#2041)
* Auto indent twitter account card

* Update frontend build
2022-03-28 01:22:06 -07:00
Jonathan Zernik
6d05637806
Include is_forwarding field in twitter account entry (#2040)
* Include is_forwarding field in twitter account entry

* Show twitter account is forwarding status in twitter account card
2022-03-28 01:17:23 -07:00
Jonathan Zernik
c3930b8fe0
Add twitter forwarder frontend (#2038)
* Got basic add twitter forwarder account working

* Got delete twitter account working

* Link to profile page from twitter account card

* Simplify text for delete twitter account button

* Update frontend build
2022-03-28 00:06:09 -07:00
Jonathan Zernik
4b475cec23
Show amboss link (#2026)
* Show amboss link in buy offer display

* Update frontend build
2022-03-26 01:27:43 -07:00
dependabot[bot]
a8853fbc96
Bump minimist from 1.2.5 to 1.2.6 in /frontend (#2019)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 23:16:02 -07:00
Jonathan Zernik
fbc66c9813
Fix change profile name default (#2013)
* Fix default value for change profile name

* Partially fix set sell price dialog

* Fix itest in progress

* Fix get sell price
2022-03-17 23:24:50 -07:00
Jonathan Zernik
87ab33b52c
Fix laptop icon svg size (#2011)
* Fix laptop icon svg size in nav sidebar

* Update frontend build
2022-03-17 18:27:42 -07:00
Jonathan Zernik
6d9cac5a2e
Re-arrange components in peer page (#2009)
* Auto-indent peer page and profile page

* Rename enable and disable functions

* Re-arrange components in peer page

* Improve display of peer name and address

* Got more menu working on peer page
2022-03-17 18:02:11 -07:00
Jonathan Zernik
ca43013941
Fix leading colon in peers (#2008)
* Remove leading colon in peers page

* Change items in peers list to a link instead of onclick

* Update frontend build

* Increase size of peer icons

* Improve UI for enable/disable peer

* Update frontend build

* Remove comment in profile page

* Fix header for peer page

* Update frontend build
2022-03-17 17:06:13 -07:00
Jonathan Zernik
68e69e55c8
Use http for peer connection (#2002)
* Got basic web server running for peer

* Got squeak route and lookup route working

* Got secret key route working

* Got offer endpoint working

* Remove old comment

* Move peer server code to server subdir

* Create client subdir for peer client

* Return empty list for lookup when pubkeys is empty

* Add peer client and network controller class

* Remove old network code

* Remove old block subscription worker

* Remove network handler class

* Remove more old classes

* Add back twitter forwarder worker

* Remove download methods from controller

* Add websocket endpoint

* Add websocket subscribe method

* Add websocket client library

* Fetch squeaks from peer (slowly) on UI timeline load

* Fetch squeaks from peer (slowly) on UI pubkey squeaks load

* Got download squeaks working with HTTP requests

* Fixed external address method in controller

* Remove download pubkey squeak button and action

* Remove unused connection displays from peer ana peers page

* Fix 404 not found for offer endpoint

* Better handling of null cases in peer client downloader

* Simplify peer downloader

* Create subclass for range download

* Got single squeak download working

* Fix itest for get external address
2022-03-17 14:38:46 -07:00
Jonathan Zernik
d30029aed1
Fix default action on profile squeak card click (#2004)
* Fix prevent default on profile following click

* Fix prevent default on squeak card action click

* Update frontend build
2022-03-16 12:59:24 -07:00
Jonathan Zernik
6dbd4982ec
Make squeak card open new tab (#2001)
* Got ctrl-click working on squeak card

* Got ctrl-click working on profile card

* Improve html for squeak card

* Make squeak hash a clickable link in payments page

* Update frontend build
2022-03-15 19:11:26 -07:00
Jonathan Zernik
a230ffcb1e
Fix timeline scroll size (#2000)
* Remove unused function in fronted feed.

* Fix timeline scroll size

* Fix search scroll size

* Fix scroll size for sent payments and received payments

* Update frontend build
2022-03-15 18:04:28 -07:00
Jonathan Zernik
4d349005d4
Simplify add peer UI (#1999)
* Remove non-null constraint on peer name

* Remove validation requiring non-empty name for peer

* Update database to use autoconnect true by default

* Remove connect peer button and modal from peers page

* Show saved peers tab by default in peers page

* Update frontend build
2022-03-15 17:38:18 -07:00
Jonathan Zernik
e1ce759e15
Fix network field in external address (#1998)
* Don't show network field in external address modal

* Update frontend build
2022-03-15 14:26:04 -07:00
Jonathan Zernik
af7fabe6ec
Show waiting indicator for buy squeak (#1993)
* Show loader modal on waiting for make squeak and buy squeak

* Handle error when buy squeak fails

* Show waiting indicator for download single squeak and download pubkey squeaks

* Fix mutation of profilesqueaks state
2022-03-15 01:52:18 -07:00
Jonathan Zernik
1459578859
Use redux for frontend state and actions (#1988)
* Got basic timeline working from todos redux template

* Improve CSS and UI for home page with redux

* Load timeline in homepage on load

* Clear squeaks from timeline on home page load

* Comment out old state and reducers

* Got basic squeak component working with redux

* Show loader when single squeak is loading

* Got ancestor squeaks mostly working

* Fix useeffect trigger on squeak navigate

* Added get replies in squeak redux component

* Show loader for ancestors and replies while loading

* Remove squeak, ancestors, and replies from old state

* Rename todos to timeline

* Remove extra newlines

* Remove filters feature

* Got like and unlike partially working

* Remove old comments

* Got like and unlike thunks working for squeak slice

* Refactor ancestor squeaks into separate slice

* Refactor reply squeaks into separate slice

* Fix function name for select replies status

* Remove remaining reply logic from squeak slice

* Remove unused code from squeak page component

* Get network in slice

* Got like and unlike working in timeline slice

* Got basic make squeak slice working

* Remove old makesqueak component

* Fix make squeak slice thunk

* Remove console log for make squeak status

* Successfully navigate to new squeak page after make squeak

* Remove useHistory and replace with withRouter

* Handle error response in client base query.

* Use slice for signing profiles in make squeak

* Remove old client function

* Rename base request

* Remove old server class

* Use slice for payment summary component

* Remove old commented client API methods

* Comment out old API request methods deprecated by slices

* Got basic sent payments slice working

* Remove console log lines

* Remove console log lines

* Remove old comment

* Got received payments slice working

* Comment unused old API client methods

* Add slice for search component

* Fix search string length check

* Remove unused state from search page component

* Remove search method from old client API

* Got basic signing profiles slice working

* Use slices in profiles page

* Combine signing profile slices into profiles folder

* Remove get profiles methods from old client API

* Move networkslice to network folder

* Organize slices in folders

* Use slice for create signing profile

* Use slice for import signing profile

* Use slice for create contact profile

* Use reducers for create profiles slices in store

* Remove create profile requests from old api

* Remove payment summary request from old api

* Remove get network request from old api

* Remove unused function

* Got basic profile slice working.

* Got delete profile thunk working

* Combine ancestor and reply slices into squeak slice

* Export timeline squeaks status from timeline slice

* Combine timeline thunks into squeak slice

* Rename id for timeline thunk

* Move timeline component into squeak feature folder

* Got loading icon working in search squeaks component

* Combine search slice into squeak slice.

* Combine makesqueak slice into squeak slice.

* Use helper function to replace squeak in squeak state array

* Got like and unlike working in ancestors and replies

* Rename squeak slice to squeaks slice

* Rename sent and received payments status slice fields

* Combine sent payments slice and received payments slice into payments slice

* Combine payment summary slice into payments slice

* Rename status field of signing profiles slice and contact profiles slice

* Combine signing profile slice and contact profiles slice into profiles slice

* Remove old contact profiles slice

* Combine create and import profile slices into profiles slice

* Combine profile slice into profiles slice

* Redirect to profile page on create profile action

* Check profile pubkey before updating following in profiles slice

* Update signing profiles and contact profiles on follow change in slice

* Add profile squeaks to squeaks slice

* Update profile squeaks in slice on follow change

* Update profile name using slice

* Create contact profile from unknown pubkey using slice

* Fetch new profile after creating contact profile from unknown pubjey

* Remove completed todos

* Add thunk to change profile image

* Remove old comments in profiles page

* Got export private key working with slice

* Remove unnecessary todo

* Remove more unused methods from old client API

* Remove old action comments

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Got clear profile image working with slice

* Remove more unused methods from old client API

* Got delete squeak working with slice

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Remove accidentally created file

* Remove unused entity adaptors

* Got fetch saved peer working with peers slice

* Delete unused peers file

* Delete unused search function

* Delete unused peer function

* Use peers slice for get connected peers

* Use selector to get connected peer data from slice

* Got connect peer working using slice

* Got disconnect peer working using slice

* Fetch saved peers using slice

* Remove old actions from peers pag

* Use slice to connect peer in peers page

* Use external address slice to fetch and select external address

* Use slice to save peer in peers page

* Use slice to save peer in peer page

* Update current peer in reducer for save peer

* Use slice to delete peer in peer page

* Use slice to set peer autoconnect enabled and disabled in peer page

* Delete old commented calls of actions in peer page

* Remove more unused methods from old client API

* Got buy offer working using slice

* Fetch offers from backend on open buy modal

* Remove todo comment for delete squeak

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Fetch sell price info using slice

* Use sell price slice for all sell price actions

* Got logout working using account slice

* Fixed logout thunk

* Remove unused functions from payments page component

* Remove old action from profiles page

* Remove more unused methods from old client API

* Got download squeak working using slice

* Remove more unused methods from old client API

* Got download pubkey squeaks working

* Fix toggle following in contact profiles list

* Remove old commented actions in squeak card component

* Remove old commented actions

* Remove use of storecontext from all components

* Remove all files in old store directory

* Update frontend build
2022-03-15 00:20:07 -07:00
Jonathan Zernik
23b34da3a8
Handle leading http in host without failing (#1979) 2022-03-02 15:29:03 -08:00