Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/spaces implementation #570

Merged
merged 277 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
d2e0659
fix: merge commit
mohammeds1992 Apr 7, 2023
93c2cf4
ci(restapi): 🎉 cut release to restapi-v1.2.1
mohammeds1992 Apr 7, 2023
639b4d2
fix: local for local development (#295)
mohammeds1992 Apr 7, 2023
d5433a9
fix: version update
mohammeds1992 Apr 7, 2023
5a5be65
fix: merge commit
mohammeds1992 Apr 7, 2023
0be9604
fix: main merge
mohammeds1992 Apr 7, 2023
6d6f041
ci(restapi): 🎉 cut release to restapi-v1.2.2
mohammeds1992 Apr 7, 2023
87a31a1
fix: git merge
mohammeds1992 Apr 18, 2023
aef8084
ci(restapi): 🎉 cut release to restapi-v1.2.3
mohammeds1992 Apr 18, 2023
d0e7b13
fix: Merge branch 'main' into deployment
mohammeds1992 Apr 18, 2023
7f35e12
fix: Merge branch 'main' into deployment
mohammeds1992 Apr 19, 2023
9562adc
ci(restapi): 🎉 cut release to restapi-v1.2.4
mohammeds1992 Apr 19, 2023
4998ec0
fix: Merge branch 'main' into deployment
mohammeds1992 Apr 27, 2023
bc34133
ci(restapi): 🎉 cut release to restapi-v1.2.5
mohammeds1992 Apr 27, 2023
48d9499
fix: Merge branch 'main' into deployment
mohammeds1992 Apr 27, 2023
294fe70
ci(restapi): 🎉 cut release to restapi-v1.2.6
mohammeds1992 Apr 27, 2023
0d184dc
fix: Merge branch 'deployment'
mohammeds1992 Apr 27, 2023
934b4a3
ci(restapi): 🎉 cut release to restapi-v1.2.7
mohammeds1992 Apr 27, 2023
012998d
fix: Merge branch 'main' into deployment
mohammeds1992 Apr 27, 2023
8434cfa
ci(socket): 🎉 cut release to socket-v0.5.0
mohammeds1992 Apr 27, 2023
1421658
fix: test commit
mohammeds1992 Apr 27, 2023
ea6130f
fix: Merge branch 'main' into deployment
mohammeds1992 May 1, 2023
974a07f
ci(restapi): 🎉 cut release to restapi-v1.2.8
mohammeds1992 May 1, 2023
eec8551
fix: Merge branch 'main' into deployment
mohammeds1992 May 1, 2023
7f72fdb
ci(uiweb): 🎉 cut release to uiweb-v1.0.0
mohammeds1992 May 1, 2023
de824a4
ci(uiweb): 🎉 cut release to uiweb-v1.0.0
mohammeds1992 May 1, 2023
ec73af8
fix: Merge branch 'main' into deployment
mohammeds1992 May 1, 2023
f7ecc4d
ci(uiweb): 🎉 cut release to uiweb-v1.0.1
mohammeds1992 May 1, 2023
496952a
fix: added ci-version-beta
mohammeds1992 May 2, 2023
2f282ce
fix: added ci-version-beta
mohammeds1992 May 2, 2023
2b3993c
fix: Merge branch 'main' into deployment
mohammeds1992 May 2, 2023
fc6f069
ci(restapi): 🎉 cut beta release to restapi-v1.2.9
mohammeds1992 May 2, 2023
55429e5
fix: added releaseType
mohammeds1992 May 2, 2023
28d7181
fix: added release type
mohammeds1992 May 2, 2023
9237cb8
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0
mohammeds1992 May 2, 2023
9d3080c
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0
mohammeds1992 May 2, 2023
a3cf078
fix: Merge branch 'main' into deployment
mohammeds1992 May 2, 2023
1a67c50
ci(restapi): 🎉 cut release to restapi-v1.2.10
mohammeds1992 May 2, 2023
80248d0
ci(restapi): 🎉 cut release to restapi-v1.2.10
mohammeds1992 May 2, 2023
d7a80e1
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.1
mohammeds1992 May 4, 2023
5fa8723
Add wallet to wallet video call methods (#309)
May 4, 2023
1fd79b1
fix: Merge branch 'deployment' into alpha-deployment
mohammeds1992 May 4, 2023
7aa9bff
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.2
mohammeds1992 May 4, 2023
627c7f4
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.2
mohammeds1992 May 4, 2023
87f08c5
Alpha deployment (#357)
mohammeds1992 May 4, 2023
477bae4
fix: Merge branch 'main' into alpha
mohammeds1992 May 4, 2023
69763b8
fix: added pagination and deprecation tag (#346)
Aman035 May 4, 2023
008e6d0
fix: eip191v2 signatures for create and auth.update (#353)
Aman035 May 4, 2023
4546a26
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 4, 2023
31daee3
fix: changed Definitions for auth.update and upgrade (#351)
Aman035 May 4, 2023
0126d71
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 4, 2023
0f44637
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.0
mohammeds1992 May 4, 2023
d39c703
fix: sendVideoNotification and end video call logic (#367)
May 8, 2023
1223c60
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 8, 2023
58a2221
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.1
mohammeds1992 May 8, 2023
4866a37
fix: merge main to alpha
mohammeds1992 May 8, 2023
3cb81d1
Modify video class (#379)
May 10, 2023
a5fdfe1
fix: merge main
mohammeds1992 May 10, 2023
7f0642c
fix: merge alpha
mohammeds1992 May 10, 2023
c126cc0
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.2
mohammeds1992 May 10, 2023
b90435a
fix: Replace arrow functions with normal functions in the Video class…
madhur-push May 11, 2023
e19b9b0
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 11, 2023
f298ecb
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.3
mohammeds1992 May 11, 2023
5fc51db
fix: Merge branch 'main' into alpha
mohammeds1992 May 12, 2023
83bf445
fix(video): separate react state from video class instance variable d…
madhur-push May 12, 2023
a1a8666
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 12, 2023
39c9c83
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.4
mohammeds1992 May 12, 2023
1fb8802
fix: url fix
mohammeds1992 May 14, 2023
91190a6
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.5
mohammeds1992 May 14, 2023
41baf05
fix: merge main to alpha
mohammeds1992 May 14, 2023
9c8c86b
fix: add video call retry logic upon error & doc: add video call in r…
madhur-push May 14, 2023
3ab4516
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.6
mohammeds1992 May 14, 2023
7441ef0
fix(video): remove status change upon connect in request (#394)
madhur-push May 15, 2023
37c1c8d
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 15, 2023
c4abb65
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.7
mohammeds1992 May 15, 2023
72464fd
fix: Merge branch 'main' into alpha
mohammeds1992 May 15, 2023
3d892f5
docs: add push video backend example (#396)
madhur-push May 16, 2023
0b609be
fix(video): set trickle to true while creating peer instance (#397)
madhur-push May 16, 2023
549fd83
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 16, 2023
262c06b
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.8
mohammeds1992 May 16, 2023
ae5b38e
fix(video): turn off trickle while creating peer instance (#398)
madhur-push May 16, 2023
469398d
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 16, 2023
598fc55
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.9
mohammeds1992 May 16, 2023
eda1a34
fix: added deprecated info to history (#399)
Aman035 May 17, 2023
46ebed2
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 17, 2023
89bd0fb
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.10
mohammeds1992 May 17, 2023
26f6fcb
revert(getverificationproof): add wallet and env params to getVerific…
madhur-push May 18, 2023
983c896
fix(video): remove stop audio/video logic from create function (#404)
madhur-push May 18, 2023
0cf573e
fix: changed additionalMeta structure (#406)
Aman035 May 19, 2023
925b437
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 19, 2023
cc559b1
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.11
mohammeds1992 May 19, 2023
f1880d8
fix: added enums
Aman035 May 19, 2023
05c8fa9
fix: fix versions
Aman035 May 19, 2023
9d2124a
fix(sendvideonotifications): modify additional meta acc to new std (#…
madhur-push May 19, 2023
3700515
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 19, 2023
e6aa247
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.12
mohammeds1992 May 19, 2023
5517200
fix(types): remove bad import
madhur-push May 19, 2023
68f11eb
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 19, 2023
f061935
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.11
mohammeds1992 May 19, 2023
85ef733
fix(video): fix enableAudio
madhur-push May 19, 2023
963cc02
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 19, 2023
9eafa70
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.12
mohammeds1992 May 19, 2023
fbf2463
fix: backward compatiblity fix
Aman035 May 19, 2023
3b5a0f1
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 19, 2023
5eb6c04
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.13
mohammeds1992 May 19, 2023
11fc1cf
docs: Update the enableVideo/Audio methods
madhur-push May 19, 2023
f247665
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 22, 2023
b576663
fix: merge main
mohammeds1992 May 22, 2023
8cdb999
fix: fix nft videocall (#411)
Aman035 May 22, 2023
713c5ff
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.14
mohammeds1992 May 22, 2023
067bc5d
fix: merged main to alpha
mohammeds1992 May 29, 2023
2fc6f54
fix: Iuser structure changed (#365)
Aman035 May 29, 2023
a66c9a4
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 May 29, 2023
fe852e2
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.15
mohammeds1992 May 29, 2023
3959345
fix: merge main
mohammeds1992 Jun 1, 2023
aea015a
fix: add spaces for functions (#307)
mohammeds1992 Jun 2, 2023
ad6a56b
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jun 2, 2023
706a1e5
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.16
mohammeds1992 Jun 2, 2023
a2d1b8b
refactor: added initial SpacesUI class architecture
0xNilesh Jun 5, 2023
e502b5e
Update packages/uiweb/src/lib/components/space/SpacesUI.tsx
0xNilesh Jun 5, 2023
d434878
Update packages/uiweb/src/lib/components/space/SpacesUI.tsx
0xNilesh Jun 5, 2023
c2e91cb
fix: refine code structure
0xNilesh Jun 6, 2023
ef1a06f
Merge pull request #432 from ethereum-push-notification-service/space…
0xNilesh Jun 6, 2023
f34bfa0
fix(video): fix error on repeated acceptRequest calls (#442)
madhur-push Jun 8, 2023
78c020a
fix: merge main
mohammeds1992 Jun 8, 2023
a9d8ff1
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jun 8, 2023
e07391f
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.17
mohammeds1992 Jun 8, 2023
b13ad97
refactor: change structure and added a test sample
0xNilesh Jun 12, 2023
b43eab8
Merge pull request #450 from ethereum-push-notification-service/refac…
0xNilesh Jun 12, 2023
c63dea3
feat: added themeprovider for spaces ui components (#436)
arn4b Jun 13, 2023
27105a2
fix: merge main
mohammeds1992 Jun 13, 2023
d3f0ce2
refactor: added a basic style structure for ease of use (#453)
0xNilesh Jun 14, 2023
64de06f
fix: Merge branch 'main' into alpha
mohammeds1992 Jun 20, 2023
10d62b1
fix: update path
mohammeds1992 Jun 20, 2023
b521522
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jun 20, 2023
9c22271
fix: add name to SpaceIFeeds
mohammeds1992 Jun 20, 2023
bb49185
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.18
mohammeds1992 Jun 20, 2023
6b718a0
Merge pull request #459 from ethereum-push-notification-service/alpha
0xNilesh Jun 21, 2023
49f359d
feat: SpaceBanner Component (#438)
samarendra-push Jun 21, 2023
8b4cd8d
refactor: updated theme object along with light and dark theme
0xNilesh Jun 22, 2023
7216817
Merge pull request #462 from ethereum-push-notification-service/refac…
0xNilesh Jun 22, 2023
f67c0a4
feat: Create Space Component (#454)
arn4b Jun 26, 2023
54d4487
Refactor/space widget component (#458)
0xNilesh Jun 26, 2023
bd7a691
feat: add spaces info component (#474)
arn4b Jun 28, 2023
c249453
Feat/added members modal (#477)
0xNilesh Jun 29, 2023
a6da0df
424 spaces functions webrtc logic (#482)
0xNilesh Jul 3, 2023
6ce1a73
refactor: spaces UI Components refactor (#478)
arn4b Jul 3, 2023
0e34479
fix: rename based on new convention
mohammeds1992 Jul 3, 2023
6998d35
fix: merge main
mohammeds1992 Jul 3, 2023
a15e368
fix: Merge branch 'alpha' into alpha-deployment
mohammeds1992 Jul 3, 2023
f905ad4
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.19
mohammeds1992 Jul 3, 2023
de2b120
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.19
mohammeds1992 Jul 3, 2023
8f80f8d
ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.19
mohammeds1992 Jul 3, 2023
25f2725
fix: new commit
mohammeds1992 Jul 3, 2023
87f3776
refactor: added spaceUI class variables into context as well (#488)
0xNilesh Jul 4, 2023
c3ad3fc
refactor: added a clickHandler in spaceBanner component for extra fle…
0xNilesh Jul 4, 2023
ddfb953
fix(spaces): fix console errs and refactor create, update methods (#492)
madhur-push Jul 5, 2023
6db7fc0
fix: spaces naming
mohammeds1992 Jul 6, 2023
7f9ec4d
refactor: modified init class method
0xNilesh Jul 6, 2023
01bc976
refactor/added-space-feed-component(#481)
samarendra-push Jul 7, 2023
46cf04e
fix: merged main
Aman035 Jul 7, 2023
2f4ad32
fix: merged main
Aman035 Jul 7, 2023
56fe39f
refactor: added structure for spaces invites modal component
0xNilesh Jul 7, 2023
0a86486
refactor: invite-component
samarendra-push Jul 7, 2023
80d1f75
fix: minor-bug
samarendra-push Jul 7, 2023
504fd0e
Merge pull request #497 from ethereum-push-notification-service/refac…
0xNilesh Jul 7, 2023
13b87a7
feat: Create Space API Integration (#494)
arn4b Jul 7, 2023
942cc65
fix: merged maain
Aman035 Jul 7, 2023
a1b3c40
feat(spaces): initiate livepeer playback in start method (#499)
madhur-push Jul 8, 2023
d781a17
Add initialize method (#505)
madhur-push Jul 8, 2023
df6e314
refactor: resolved css in space banner
0xNilesh Jul 8, 2023
45bbab3
refactor: added a skeleton loading effect on space Banner component
0xNilesh Jul 8, 2023
d8c65da
feat: add invite functionality to create space (#506)
arn4b Jul 8, 2023
588203b
refactor: info-on-widget (#504)
samarendra-push Jul 8, 2023
a0cb82e
Fix join and pgpPrivateKey in demoreact (#508)
madhur-push Jul 9, 2023
6aae13f
refactor: added feature of triggering widget from sdk
0xNilesh Jul 9, 2023
2ebcc74
fix(spaces): fix join as speaker and listner
madhur-push Jul 9, 2023
0c18431
fix: resolved updating env and other class variables
0xNilesh Jul 9, 2023
49adda9
Spaces/UI migration (#510)
samarendra-push Jul 9, 2023
f91d3a4
refactor: added notification socket for space in uiweb
0xNilesh Jul 9, 2023
ccd1694
feat: add remove and admin func to invite modal (#509)
arn4b Jul 9, 2023
ec19a35
fix(spaces): fix start
madhur-push Jul 9, 2023
bf14c23
feat: add join functionality to invited spaces (#512)
arn4b Jul 9, 2023
35de760
refactor: add audio playback from space speakers (#511)
samarendra-push Jul 9, 2023
5add8cb
feat(spaces): add user feeds socket handler logic
madhur-push Jul 10, 2023
af4687c
Merge branch 'alpha' into feat/spaces-implementation
madhur-push Jul 10, 2023
6aad1b0
Add alpha version of Spaces SDK (#513)
madhur-push Jul 10, 2023
9efb514
fix: fix create invite UI edge cases (#515)
arn4b Jul 10, 2023
81f3f0e
refactor: added join function and socket code (#517)
0xNilesh Jul 10, 2023
6cdc221
Fix isJoined, add hidden video tag (#514)
samarendra-push Jul 10, 2023
e02f390
fix(spaces): add create audio call before join for speakers (#518)
madhur-push Jul 10, 2023
545f42c
Widget/videoplayer (#519)
samarendra-push Jul 10, 2023
d66202d
fix: Merge branch 'main' into alpha
mohammeds1992 Jul 11, 2023
52a0e5c
Merge branch 'alpha' into feat/spaces-implementation
madhur-push Jul 11, 2023
caccfb6
fix(spaces): fix isSpeaker and isListner logic
madhur-push Jul 11, 2023
5c2b8d9
feat: added blockies (#523)
arn4b Jul 11, 2023
abf0451
feat: info modal rft (#528)
arn4b Jul 12, 2023
331887c
refactor: added sockets, chainId, reset states
0xNilesh Jul 12, 2023
053f8e9
fix(spaces): fix multiple fires of join useEffect & bug in socket han…
madhur-push Jul 12, 2023
0d95b57
fix(spaces): fix host UI
madhur-push Jul 12, 2023
a6f7fca
refactor: resolved undefined split issue
0xNilesh Jul 12, 2023
9df98a2
Add end/leave space functionality (#526)
samarendra-push Jul 13, 2023
55abf37
fix(video): correct sent data 'type' field for establishing mesh conn…
madhur-push Jul 13, 2023
9c62c36
fix(spaces): fix isListener boolean logic (#536)
madhur-push Jul 13, 2023
f570c69
Merge alpha into Spaces (#540)
madhur-push Jul 14, 2023
789435e
fix(video): enable audio video signals all the connected peers about …
madhur-push Jul 14, 2023
3c54ef2
fix: reset-state issue resolved (#543)
samarendra-push Jul 14, 2023
fa9bbf6
refactor: added lenster share btn and resolved multiple decrypt in de…
0xNilesh Jul 14, 2023
3d1df28
refactor: handleMicOn/Off (#544)
samarendra-push Jul 14, 2023
104f614
feat: rft create space button
arn4b Jul 12, 2023
74e230b
fix: minor fixes
arn4b Jul 12, 2023
a70c8ec
fix: add invite modal callback
arn4b Jul 12, 2023
fd536b8
feat: add new memebrs and admins UI implemented
arn4b Jul 13, 2023
5aa9266
refactor: change logic to render invite modal
arn4b Jul 13, 2023
308c602
fix: rft invite modal, add blockies to live space
arn4b Jul 13, 2023
9b6a9d9
refactor: resolved multiple decrypt request in next app
0xNilesh Jul 14, 2023
1ccbab5
fix(spaces): fix handleMicState call
madhur-push Jul 14, 2023
2fc55af
Merge alpha (#547)
madhur-push Jul 17, 2023
dc70f12
fix: resolved children component in spaceCreationWidget
0xNilesh Jul 17, 2023
3b3de4a
refactor: added optional chaining
0xNilesh Jul 17, 2023
67b3759
fix: revert local nx.json change
0xNilesh Jul 17, 2023
3cfba20
Merge pull request #533 from ethereum-push-notification-service/arnab…
0xNilesh Jul 17, 2023
2c5bff0
refactor: resolved members/listeners and admins/speakers thing
0xNilesh Jul 17, 2023
801f892
refactor: resolved members/listeners and admins/speakers issue in dem…
0xNilesh Jul 17, 2023
30331d7
rft: widget refactors (#548)
arn4b Jul 17, 2023
158be05
refactor: added theme changes for space creation widget
0xNilesh Jul 17, 2023
7d4c227
fix(spaces): join triggered twice due to faulty useEffect (#552)
madhur-push Jul 17, 2023
55a2b2b
fix: skeleton-loader-width (#556)
samarendra-push Jul 18, 2023
3cbff40
Widget/end space (#551)
samarendra-push Jul 18, 2023
e9b0e92
refactor: added themization in few components
0xNilesh Jul 18, 2023
813b60f
refactor: merge conflicts
0xNilesh Jul 18, 2023
47d7ac0
feat: resolved sockets implementation (#558)
arn4b Jul 18, 2023
e9fe1f1
fix: multi join issue in invites modal (#560)
arn4b Jul 19, 2023
8c57526
chore(alpha): merge branch 'alpha' into feat/spaces-implementation (#…
madhur-push Jul 19, 2023
a19378e
refactor: added updating new space invites by sockets
0xNilesh Jul 19, 2023
aaea695
feat(spaces): integrate meta messages (#563)
madhur-push Jul 19, 2023
88ee652
refactor: merge conflicts
0xNilesh Jul 19, 2023
5172b61
refactor: theme (#559)
samarendra-push Jul 19, 2023
447ca9e
fix(spaces): remove addSpeaker, removeSpeaker methods
madhur-push Jul 19, 2023
d7c07c2
fix(spaces): fix start local address issue
madhur-push Jul 20, 2023
5703cf1
refactor: resolved few issues
0xNilesh Jul 20, 2023
f2aba13
fix(spaces): fix getLiveSpaceData method
madhur-push Jul 20, 2023
aec44e9
refactor: space feed api Changes
0xNilesh Jul 20, 2023
9807c93
refactor: resolve merge conflicts
0xNilesh Jul 20, 2023
5a6a520
fix(spaces): fix end, leave space methods
madhur-push Jul 20, 2023
eab55bb
Merge pull request #569 from ethereum-push-notification-service/fix/s…
madhur-push Jul 20, 2023
a4af371
refactor: updated edit space button theme
0xNilesh Jul 20, 2023
4d3d37f
fix(spaces): fix host, speaker indicator
madhur-push Jul 20, 2023
f29e8f4
Merge pull request #572 from ethereum-push-notification-service/fix/s…
madhur-push Jul 20, 2023
b97dfbe
chore(merge): merge main
madhur-push Jul 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/demoreact/src/app/NotificationsTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const NotificationsTest = () => {
});

setSpams(spams);

} catch (e) {
console.error(e);
} finally {
Expand Down Expand Up @@ -146,12 +146,12 @@ const NotificationsTest = () => {
<h2>Notifications Test page</h2>

{/* <TestModal /> */}

<ThemeSelector>
{theme === 'dark' ? <DarkIcon title="Dark" onClick={toggleTheme}/> : <LightIcon title="Light" onClick={toggleTheme}/>}
</ThemeSelector>
</Header>

<TabButtons>
<SectionButton onClick={() => { setViewType('notif') }}>Notifications</SectionButton>
<SectionButton onClick={() => { setViewType('spam') }}>Spam</SectionButton>
Expand All @@ -170,8 +170,8 @@ const NotificationsTest = () => {
{notifs ? (
<NotificationListContainer>
{notifs.map((oneNotification, i) => {
const {

const {
cta,
title,
message,
Expand Down Expand Up @@ -215,7 +215,7 @@ const NotificationsTest = () => {
{spams ? (
<NotificationListContainer>
{spams.map((oneNotification, i) => {
const {
const {
cta,
title,
message,
Expand Down Expand Up @@ -259,4 +259,4 @@ const NotificationsTest = () => {
);
}

export default NotificationsTest;
export default NotificationsTest;
5 changes: 4 additions & 1 deletion packages/demoreact/src/app/SpaceUITest/SpaceFeed.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from 'react';
import React, { useContext, useState } from 'react';
import { useSpaceComponents } from './useSpaceComponents';
import { Checkbox } from '../components/Checkbox';
import { AccountContext } from '../context';

export const SpaceFeed = () => {
const { SpaceFeedComponent } = useSpaceComponents();
Expand All @@ -10,6 +11,7 @@ export const SpaceFeed = () => {
const [width, setWidth] = useState<number>();
const [height, setHeight] = useState<number>(500);
const [sortingOrder, setSortingOrder] = useState<string[]>([]);
const { setSpaceId } = useContext<any>(AccountContext);

const handleShowTab = () => {
setShowTab(!showTab);
Expand Down Expand Up @@ -78,6 +80,7 @@ export const SpaceFeed = () => {
height={height}
onBannerClickHandler={(spaceId: string) => {
console.log('spaceId: ', spaceId);
setSpaceId(spaceId);
}}
/>
</>
Expand Down
11 changes: 7 additions & 4 deletions packages/demoreact/src/app/SpaceUITest/SpaceWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,14 @@ export const SpaceWidget = () => {
<label>isTimeToStartSpace</label>
</SectionItem>
</Section>
<SpaceWidgetComponent
spaceId={spaceId}
width={Number(width)}
<SpaceWidgetComponent
spaceId={spaceId}
width={Number(width)}
zIndex={Number(zIndex)}
shareUrl={shareUrl}
share={{
shareUrl: shareUrl,
shareOptions: ["Lenster", "Twitter", "CopyShareUrl"]
}}
isHost={isHost}
isLive={isLive}
isJoined={isJoined}
Expand Down
51 changes: 42 additions & 9 deletions packages/demoreact/src/app/SpaceUITest/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { useSpaceComponents } from './useSpaceComponents';
export * from './SpaceUITest';
export * from './SpaceWidget';
export * from './SpaceFeed';
export * from "./SpaceBanner";
export * from "./CreateSpaceComponent";
export * from "./SpaceInvites";
export * from './SpaceBanner';
export * from './CreateSpaceComponent';
export * from './SpaceInvites';

export interface ISpacesComponentProps {
children: React.ReactNode;
Expand All @@ -15,15 +15,48 @@ export interface ISpacesComponentProps {
export const SpacesComponentProvider = ({
children,
}: ISpacesComponentProps) => {
const { spaceUI } = useSpaceComponents();

const customtheme = {
statusColorError: 'red',
}
titleBg: 'linear-gradient(45deg, #E165EC 0.01%, #A483ED 100%)', //not changed
titleTextColor: '#FFFFFF',
bgColorPrimary: '#fff',
bgColorSecondary: '#F7F1FB',
textColorPrimary: '#000',
textColorSecondary: '#657795',
textGradient: 'linear-gradient(45deg, #B6A0F5, #F46EF6, #FFDED3, #FFCFC5)', //not changed
btnColorPrimary: '#D53A94',
btnOutline: '#D53A94',
borderColor: '#FFFF',
borderRadius: '17px',
containerBorderRadius: '12px',
statusColorError: '#E93636',
statusColorSuccess: '#30CC8B',
iconColorPrimary: '#82828A',
};

const customDarkTheme = {
titleBg:
'linear-gradient(87.17deg, #EA4EE4 0%, #D23CDF 0.01%, #8B5CF6 100%)',
titleTextColor: '#fff',
bgColorPrimary: '#000',
bgColorSecondary: '#292344',
textColorPrimary: '#fff',
textColorSecondary: '#71717A',
textGradient: 'linear-gradient(45deg, #B6A0F5, #F46EF6, #FFDED3, #FFCFC5)',
btnColorPrimary: '#8B5CF6',
btnOutline: '#8B5CF6',
borderColor: '#3F3F46',
borderRadius: '17px',
containerBorderRadius: '12px',
statusColorError: '#E93636',
statusColorSuccess: '#30CC8B',
iconColorPrimary: '#71717A',
};

return (
<SpacesUIProvider spaceUI={spaceUI} theme={customtheme}>
{children}
</SpacesUIProvider>
// <SpacesUIProvider spaceUI={spaceUI} theme={customDarkTheme}>
// {children}
// </SpacesUIProvider>
<></>
);
};
32 changes: 4 additions & 28 deletions packages/demoreact/src/app/SpaceUITest/useSpaceComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ import {
SpacesUI,
ISpaceInvitesProps,
} from '@pushprotocol/uiweb';
import React, { useContext, useEffect, useState } from 'react';
import { EnvContext, Web3Context } from '../context';
import * as PushAPI from '@pushprotocol/restapi';
import React, { useContext } from 'react';
import { AccountContext, EnvContext, Web3Context } from '../context';

export interface IUseSpaceReturnValues {
spaceUI: SpacesUI;
SpaceInvitesComponent: React.FC<ISpaceInvitesProps>;
SpaceWidgetComponent: React.FC<ISpaceWidgetProps>;
SpaceFeedComponent: React.FC<ISpaceFeedProps>;
Expand All @@ -22,39 +20,17 @@ export interface IUseSpaceReturnValues {
export const useSpaceComponents = (): IUseSpaceReturnValues => {
const { account, library } = useContext<any>(Web3Context);
const { env } = useContext<any>(EnvContext);
const { pgpPrivateKey } = useContext<any>(AccountContext);
const librarySigner = library?.getSigner();

const [pgpPrivateKey, setPgpPrivateKey] = useState('');

const spaceUI = new SpacesUI({
account: account,
account: account as string,
signer: librarySigner,
pgpPrivateKey: pgpPrivateKey,
env: env,
});

useEffect(() => {
(async () => {
if (!account || !env || !library) return;

const user = await PushAPI.user.get({ account, env });
let pgpPrivateKey;
const librarySigner = await library.getSigner(account);
if (user?.encryptedPrivateKey) {
pgpPrivateKey = await PushAPI.chat.decryptPGPKey({
encryptedPGPPrivateKey: user.encryptedPrivateKey,
account,
signer: librarySigner,
env,
});
}

setPgpPrivateKey(pgpPrivateKey);
})();
}, [account, env, library]);

return {
spaceUI,
SpaceInvitesComponent: spaceUI.SpaceInvites,
SpaceWidgetComponent: spaceUI.SpaceWidget,
SpaceBannerComponent: spaceUI.SpaceBanner,
Expand Down
92 changes: 81 additions & 11 deletions packages/demoreact/src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useState } from 'react';
import { useEffect, useMemo, useState } from 'react';
import styled from 'styled-components';
import { Route, Routes, Link } from 'react-router-dom';
import { useWeb3React } from '@web3-react/core';
import ConnectButton from './components/Connect';
import { Checkbox } from './components/Checkbox';
import Dropdown from './components/Dropdown';
import { Web3Context, EnvContext, SocketContext } from './context';
import { Web3Context, EnvContext, SocketContext, AccountContext } from './context';
import { useSDKSocket } from './hooks';
import { ReactComponent as PushLogo } from '../assets/pushLogo.svg';
import NotificationsTest from './NotificationsTest';
Expand Down Expand Up @@ -55,15 +55,16 @@ import GetSpacesRequestsTest from './SpaceTest/GetSpacesRequestsTest';
import GetSpacesTrendingTest from './SpaceTest/GetSpacesTrendingTest';
import SpaceUITest from './SpaceUITest/SpaceUITest';
import {
SpacesComponentProvider,
SpaceWidget,
SpaceBanner,
SpaceFeed,
CreateSpaceComponent,
SpaceInvitesComponent
} from './SpaceUITest';
import { useSpaceComponents } from './SpaceUITest/useSpaceComponents';
import * as PushAPI from "@pushprotocol/restapi";
import { ChatWidgetTest } from './ChatWidgetTest';
import { SpacesUI, SpacesUIProvider } from '@pushprotocol/uiweb';

window.Buffer = window.Buffer || Buffer;

Expand Down Expand Up @@ -147,6 +148,43 @@ const NavMenu = styled.div`
}
`;

const customtheme = {
titleBg: 'linear-gradient(45deg, #E165EC 0.01%, #A483ED 100%)', //not changed
titleTextColor: '#FFFFFF',
bgColorPrimary: '#fff',
bgColorSecondary: '#F7F1FB',
textColorPrimary: '#000',
textColorSecondary: '#657795',
textGradient: 'linear-gradient(45deg, #B6A0F5, #F46EF6, #FFDED3, #FFCFC5)', //not changed
btnColorPrimary: '#D53A94',
btnOutline: '#D53A94',
borderColor: '#FFFF',
borderRadius: '17px',
containerBorderRadius: '12px',
statusColorError: '#E93636',
statusColorSuccess: '#30CC8B',
iconColorPrimary: '#82828A',
};

const customDarkTheme = {
titleBg:
'linear-gradient(87.17deg, #EA4EE4 0%, #D23CDF 0.01%, #8B5CF6 100%)',
titleTextColor: '#fff',
bgColorPrimary: '#000',
bgColorSecondary: '#292344',
textColorPrimary: '#fff',
textColorSecondary: '#71717A',
textGradient: 'linear-gradient(45deg, #B6A0F5, #F46EF6, #FFDED3, #FFCFC5)',
btnColorPrimary: '#8B5CF6',
btnOutline: '#8B5CF6',
borderColor: '#3F3F46',
borderRadius: '17px',
containerBorderRadius: '12px',
statusColorError: '#E93636',
statusColorSuccess: '#30CC8B',
iconColorPrimary: '#71717A',
};

const checkForWeb3Data = ({
library,
active,
Expand All @@ -157,17 +195,18 @@ const checkForWeb3Data = ({
};

export function App() {
const web3Data: Web3ReactState = useWeb3React();
const {account, library, active, chainId} = useWeb3React();

const [env, setEnv] = useState<ENV>(ENV.PROD);
const [env, setEnv] = useState<ENV>(ENV.DEV);
const [isCAIP, setIsCAIP] = useState(false);

const { SpaceWidgetComponent } = useSpaceComponents();
const [spaceId, setSpaceId] = useState<string>('');
const [pgpPrivateKey, setPgpPrivateKey] = useState<string>('');

const socketData = useSDKSocket({
account: web3Data.account,
chainId: web3Data.chainId,
account: account,
chainId: chainId,
env,
isCAIP,
});
Expand All @@ -180,6 +219,33 @@ export function App() {
setIsCAIP(!isCAIP);
};

useEffect(() => {
(async () => {
if (!account || !env || !library) return;

const user = await PushAPI.user.get({ account: account, env });
let pgpPrivateKey;
const librarySigner = await library.getSigner(account);
if (user?.encryptedPrivateKey) {
pgpPrivateKey = await PushAPI.chat.decryptPGPKey({
encryptedPGPPrivateKey: user.encryptedPrivateKey,
account: account,
signer: librarySigner,
env,
});
}

setPgpPrivateKey(pgpPrivateKey);
})();
}, [account, env, library]);

const spaceUI = useMemo(() => new SpacesUI({
account: account as string,
signer: library?.getSigner(),
pgpPrivateKey: pgpPrivateKey,
env: env,
}), [account, library, pgpPrivateKey, env]);

return (
<StyledApp>
<Link className="homeLink" to="/">
Expand Down Expand Up @@ -211,10 +277,13 @@ export function App() {

<hr />
<EnvContext.Provider value={{ env, isCAIP }}>
{checkForWeb3Data(web3Data) ? (
<Web3Context.Provider value={web3Data}>
{checkForWeb3Data({
active, account, library, chainId
}) ? (
<Web3Context.Provider value={{account, active, library, chainId}}>
<SocketContext.Provider value={socketData}>
<SpacesComponentProvider>
<AccountContext.Provider value={{pgpPrivateKey, setSpaceId}}>
<SpacesUIProvider spaceUI={spaceUI} theme={customDarkTheme}>
<Routes>
<Route
path="/"
Expand Down Expand Up @@ -367,7 +436,8 @@ export function App() {
{/* <ChatWidgetTest/> */}
<ChatWidgetTest/>
<SpaceWidgetComponent spaceId={spaceId} />
</SpacesComponentProvider>
</SpacesUIProvider>
</AccountContext.Provider>
</SocketContext.Provider>
</Web3Context.Provider>
) : null}
Expand Down
5 changes: 5 additions & 0 deletions packages/demoreact/src/app/context/accountContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createContext } from 'react'

const AccountContext = createContext({});

export default AccountContext;
Loading
Loading