Skip to content

Commit

Permalink
Alpha (#496)
Browse files Browse the repository at this point in the history
* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* fix: success progressHook

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.1.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* fix(component): dummy

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.2.1

* fix: local for local development (#295)

Co-Authored-By: aman035 <[email protected]>

* fix: version update

* ci(restapi): 🎉 cut release to restapi-v1.2.2

* ci(restapi): 🎉 cut release to restapi-v1.2.3

* ci(restapi): 🎉 cut release to restapi-v1.2.4

* ci(restapi): 🎉 cut release to restapi-v1.2.5

* ci(restapi): 🎉 cut release to restapi-v1.2.6

* ci(restapi): 🎉 cut release to restapi-v1.2.7

* ci(socket): 🎉 cut release to socket-v0.5.0

* fix: test commit

* ci(restapi): 🎉 cut release to restapi-v1.2.8

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.1

* fix: added ci-version-beta

* fix: added ci-version-beta

* ci(restapi): 🎉 cut beta release to restapi-v1.2.9

* fix: added releaseType

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.1

* Add wallet to wallet video call methods (#309)

* feat(video): add create and request method

* feat(video): add simple-peer dependency

* feat(video): add acceptRequest method

* feat(video): add establish and end methods

* refactor(video): wrap video methods in a class

* feat(video): add video audio toggle functions

* fix(video): add pgp private key in send video call notification

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.2

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.2

* Alpha deployment (#357)

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* fix: success progressHook

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.1.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* fix(component): dummy

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.2.1

* fix: local for local development (#295)

Co-Authored-By: aman035 <[email protected]>

* fix: version update

* ci(restapi): 🎉 cut release to restapi-v1.2.2

* ci(restapi): 🎉 cut release to restapi-v1.2.3

* ci(restapi): 🎉 cut release to restapi-v1.2.4

* ci(restapi): 🎉 cut release to restapi-v1.2.5

* ci(restapi): 🎉 cut release to restapi-v1.2.6

* ci(restapi): 🎉 cut release to restapi-v1.2.7

* ci(socket): 🎉 cut release to socket-v0.5.0

* fix: test commit

* ci(restapi): 🎉 cut release to restapi-v1.2.8

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.1

* fix: added ci-version-beta

* fix: added ci-version-beta

* ci(restapi): 🎉 cut beta release to restapi-v1.2.9

* fix: added releaseType

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.1

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.2

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.2

---------

Co-authored-by: aman035 <[email protected]>

* fix: added pagination and deprecation tag (#346)

* fix: eip191v2 signatures for create and auth.update (#353)

* fix: changed Definitions for auth.update and upgrade (#351)

* fix: changed Definitions for auth.update and upgrade

* fix: chnaged demoreact

* fix: revert code no

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.0

* fix: sendVideoNotification and end video call logic (#367)

* feat(video): add create and request method

* feat(video): add simple-peer dependency

* feat(video): add acceptRequest method

* feat(video): add establish and end methods

* refactor(video): wrap video methods in a class

* feat(video): add video audio toggle functions

* fix(video): add pgp private key in send video call notification

* fix(video): fix end call logic and remove hidden ppt from send video call notifications

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.1

* Modify video class (#379)

* feat(video): add create and request method

* feat(video): add simple-peer dependency

* feat(video): add acceptRequest method

* feat(video): add establish and end methods

* refactor(video): wrap video methods in a class

* feat(video): add video audio toggle functions

* fix(video): add pgp private key in send video call notification

* fix(video): fix end call logic and remove hidden ppt from send video call notifications

* refactor(video): combine all the states in the Video class to single state

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.2

* fix: Replace arrow functions with normal functions in the Video class (#380)

* feat(video): add create and request method

* feat(video): add simple-peer dependency

* feat(video): add acceptRequest method

* feat(video): add establish and end methods

* refactor(video): wrap video methods in a class

* feat(video): add video audio toggle functions

* fix(video): add pgp private key in send video call notification

* fix(video): fix end call logic and remove hidden ppt from send video call notifications

* refactor(video): combine all the states in the Video class to single state

* fix(video): replace arrow functions with normal functions

---------

Co-authored-by: Madhur Gupta <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.3

* fix(video): separate react state from video class instance variable data (#389)

Co-authored-by: Madhur Gupta <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.4

* fix: url fix

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.5

* fix: add video call retry logic upon error & doc: add video call in restapi/readme  (#391)

* docs(video): add video calls in restapi readme

* fix(video): add video call retry logic upon error

---------

Co-authored-by: Madhur Gupta <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.6

* fix(video): remove status change upon connect in request (#394)

Co-authored-by: Madhur Gupta <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.7

* docs: add push video backend example (#396)

* docs(video): add backend exmaple for push video

* fix(video): add backend compatibility to create function

---------

Co-authored-by: Madhur Gupta <[email protected]>

* fix(video): set trickle to true while creating peer instance (#397)

Co-authored-by: Madhur Gupta <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.8

* fix(video): turn off trickle while creating peer instance (#398)

Co-authored-by: Madhur Gupta <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.9

* fix: added deprecated info to history (#399)

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.10

* revert(getverificationproof): add wallet and env params to getVerificationProof (#403)

Co-authored-by: Madhur Gupta <[email protected]>

* fix(video): remove stop audio/video logic from create function (#404)

Co-authored-by: Madhur Gupta <[email protected]>

* fix: changed additionalMeta structure (#406)

* docs: update

* docs: update

* fix: changed additionalMeta strcuture

---------

Co-authored-by: strykerin <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.11

* fix: added enums

* fix: fix versions

* fix(sendvideonotifications): modify additional meta acc to new std (#407)

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.12

* fix(types): remove bad import

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.11

* fix(video): fix enableAudio

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.12

* fix: backward compatiblity fix

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.13

* docs: Update the enableVideo/Audio methods

* fix: fix nft videocall (#411)

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.14

* fix: Iuser structure changed (#365)

* fix: iuser changed

* fix: changed route

* fix: change profilePicture to picture

* fix: fixed tests

* fix: fix nftOwner and readme

* fix: iuser changes

* Deployment (#390)

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* fix: success progressHook

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.1.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* fix(component): dummy

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.2.1

* fix: local for local development (#295)

Co-Authored-By: aman035 <[email protected]>

* fix: version update

* ci(restapi): 🎉 cut release to restapi-v1.2.2

* ci(restapi): 🎉 cut release to restapi-v1.2.3

* ci(restapi): 🎉 cut release to restapi-v1.2.4

* ci(restapi): 🎉 cut release to restapi-v1.2.5

* ci(restapi): 🎉 cut release to restapi-v1.2.6

* ci(restapi): 🎉 cut release to restapi-v1.2.7

* ci(socket): 🎉 cut release to socket-v0.5.0

* fix: test commit

* ci(restapi): 🎉 cut release to restapi-v1.2.8

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.1

* fix: added ci-version-beta

* fix: added ci-version-beta

* ci(restapi): 🎉 cut beta release to restapi-v1.2.9

* fix: added releaseType

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.1

* ci(restapi): 🎉 cut release to restapi-v1.2.11

* fix: linkedListHash test cases removed & CI version corrected

* fix: update name to beta

* ci(restapi): 🎉 cut release to restapi-v1.2.12

* ci(restapi): 🎉 cut release to restapi-v1.2.12

* ci(restapi): 🎉 cut release to restapi-v1.2.13

* ci(restapi): 🎉 cut release to restapi-v1.2.14

* ci(restapi): 🎉 cut release to restapi-v1.2.15

* fix: update package json

* fix: updated socket version

* ci(uiweb): 🎉 cut release to uiweb-v1.0.2

* fix: socket lib update

* ci(uiweb): 🎉 cut release to uiweb-v1.0.2

---------

Co-authored-by: aman035 <[email protected]>

* fix: add deprecated info to chat.chat (#392)

* fix: show hardcoded msg rather than throwing error (#388)

* docs: update

* fix: fix decprecated param and verification of keys

---------

Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: strykerin <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.15

* fix: add spaces for functions (#307)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.16

* fix(video): fix error on repeated acceptRequest calls (#442)

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.17

* fix: update path

* fix: add name to SpaceIFeeds

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.18

* fix: rename based on new convention

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.19

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.19

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.19

* fix: new commit

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.20

* fix: spaces naming

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.21

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.22

* Add alpha version of Spaces SDK (#513)

* refactor: added initial SpacesUI class architecture

* Update packages/uiweb/src/lib/components/space/SpacesUI.tsx

Co-authored-by: Arnab Chatterjee <[email protected]>

* Update packages/uiweb/src/lib/components/space/SpacesUI.tsx

Co-authored-by: Arnab Chatterjee <[email protected]>

* fix: refine code structure

* refactor: change structure and added a test sample

* feat: added themeprovider for spaces ui components (#436)

* feat: feat: add themeprovider for spaces

* fix: resolved conflicts

* refactor: cleaned up provider

* refactor: resolved comments

* feat: added colors and themeing in demoreactapp

* refactor: cleaned code

* refactor: resolved comments

* refactor: added a basic style structure for ease of use (#453)

* feat: SpaceBanner Component (#438)

* feat: SpaceBanner

* refactor: removed-optionals

* feat: space-banner functionality

* fix: reverted app.tsx

* fix: reverted app.tsx

* fix: removed test svg file

* refactor: change structure and added a test sample

* feat: space-banner functionality

* refactor: api-implementation

* fix: removed-svg

* refactor: mobile version

* Revert "fix: removed test svg file"

This reverts commit 7af756b.

* Revert "refactor: change structure and added a test sample"

This reverts commit b1e8745.

* fix: revert

* refactor: lastest-pull

* feat: added-spaceBanner-test

* refactor: cache-to-context

* refactor: custom hook added for data

* refactor: spaceDTO

* fix: SpaceDTO implementation

* refactor: participant-container

* refactor: cleanups

* fix: ui-fixes

* fix: EOF newlines

* fix: overflow-fixed

* refactor: tweaked context structure a bit

---------

Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* refactor: updated theme object along with light and dark theme

* feat: Create Space Component (#454)

* refactor: resolved merge conflicts

* feat: added modals and modal behaviour logic

* feat: modal inputs

* feat: change modal logic + integr8 API

* feat: added CSS for modals and inputs

* fix: resolved PR comments

* refactor: improve css

* refactor: rft create modal

* feat: added search input component

* Refactor/space widget component (#458)

* refactor: added basic design

* refactor: added full widget with style

* refactor: reduced fixed height of scheduled widget content

* refactor: changes requested

* refactor: resolved review comments

* feat: add spaces info component (#474)

* Feat/added members modal (#477)

* refactor: added modal

* refactor: added members modal

* refactor: review comments

* refactor: resolve review comments

* fix: review comments

* 424 spaces functions webrtc logic (#482)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

---------

Co-authored-by: Shoaib Mohammed <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>

* refactor: spaces UI Components refactor (#478)

> replaced hardcoded styles with context theme >added smoother animations on collapsoble components
>added profile cards to invite modal

* refactor: added spaceUI class variables into context as well (#488)

* refactor: added spaceUI class variables into context as well

* refactor: resolve review comments

* refactor: added a clickHandler in spaceBanner component for extra flexibility (#489)

* fix(spaces): fix console errs and refactor create, update methods (#492)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

* fix: Merge branch 'alpha' into 424-spaces-functions-webrtc-logic

* fix(spaces): fix console errors and move out create, update functions from Space class

---------

Co-authored-by: Shoaib Mohammed <[email protected]>

* refactor: modified init class method

* refactor/added-space-feed-component(#481)

* feat: space-feed

* refactor: space-feed

* Deployment (#440)

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* fix: success progressHook

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.1.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* fix(component): dummy

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.2.1

* fix: local for local development (#295)

Co-Authored-By: aman035 <[email protected]>

* fix: version update

* ci(restapi): 🎉 cut release to restapi-v1.2.2

* ci(restapi): 🎉 cut release to restapi-v1.2.3

* ci(restapi): 🎉 cut release to restapi-v1.2.4

* ci(restapi): 🎉 cut release to restapi-v1.2.5

* ci(restapi): 🎉 cut release to restapi-v1.2.6

* ci(restapi): 🎉 cut release to restapi-v1.2.7

* ci(socket): 🎉 cut release to socket-v0.5.0

* fix: test commit

* ci(restapi): 🎉 cut release to restapi-v1.2.8

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.1

* fix: added ci-version-beta

* fix: added ci-version-beta

* ci(restapi): 🎉 cut beta release to restapi-v1.2.9

* fix: added releaseType

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.1

* ci(restapi): 🎉 cut release to restapi-v1.2.11

* fix: linkedListHash test cases removed & CI version corrected

* fix: update name to beta

* ci(restapi): 🎉 cut release to restapi-v1.2.12

* ci(restapi): 🎉 cut release to restapi-v1.2.12

* ci(restapi): 🎉 cut release to restapi-v1.2.13

* ci(restapi): 🎉 cut release to restapi-v1.2.14

* ci(restapi): 🎉 cut release to restapi-v1.2.15

* fix: update package json

* fix: updated socket version

* ci(uiweb): 🎉 cut release to uiweb-v1.0.2

* fix: socket lib update

* ci(uiweb): 🎉 cut release to uiweb-v1.0.2

* ci(restapi): 🎉 cut release to restapi-v1.2.16

* ci(restapi): 🎉 cut release to restapi-v1.3.0

* ci(restapi): 🎉 cut release to restapi-v1.3.1

* ci(socket): 🎉 cut release to socket-v0.5.1

* ci(restapi): 🎉 cut release to restapi-v1.3.2

* ci(restapi): 🎉 cut release to restapi-v1.3.3

* ci(restapi): 🎉 cut release to restapi-v1.3.4

---------

Co-authored-by: aman035 <[email protected]>

* feat: space-feed

* refactor: space-feed

* fix: api-call-custom-hooks

* fix: api-call

* refactor: enums/changes

* fix: scrollable

* fix: scrolling-issue

* feat: filter-changes

* fix: added types

* fix: loader-issue

* fix: tab-button-color

* feat: new-filter and prop

* fix: ended-logic && participant-number logic

* refactor: add onBannerClick

* fix: conflicts

* revert: messed-up spaceBanner

* fix: onClick issue

* fix: onClick and cleanups

* refactor: new pagination interface

* fix: scroll-logic

* fix: scroll-final

* fix: ..

* fix: removed any

* fix: onClick-issue

* fix: loading-context-to-state

* refactor: add-NoSpaceIcons

* refactor: new-ui-layout

* refactor: new-ui-layout

---------

Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: aman035 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* refactor: added structure for spaces invites modal component

* refactor: invite-component

* fix: minor-bug

* feat: Create Space API Integration (#494)

* feat: create spaces integration

* feat: added datetime picker

* feat: completed create space API integration

* feat: changed flow and time component

* feat(spaces): initiate livepeer playback in start method (#499)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

* fix: Merge branch 'alpha' into 424-spaces-functions-webrtc-logic

* fix(spaces): fix console errors and move out create, update functions from Space class

* feat(spaces): initiate livepeer playback in start method

* feat(spaces): store livepeer playback id in space description

---------

Co-authored-by: Shoaib Mohammed <[email protected]>

* Add initialize method (#505)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

* fix: Merge branch 'alpha' into 424-spaces-functions-webrtc-logic

* fix(spaces): fix console errors and move out create, update functions from Space class

* feat(spaces): initiate livepeer playback in start method

* feat(spaces): store livepeer playback id in space description

* feat(spaces): add intitialize method

---------

Co-authored-by: Shoaib Mohammed <[email protected]>

* refactor: resolved css in space banner

* refactor: added a skeleton loading effect on space Banner component

* feat: add invite functionality to create space (#506)

* feat: added invite functionality

* fix: add logic for time selector

* fix: css fixes

* refactor: info-on-widget (#504)

* refactor: info-on-widget

* refactor: add Space class to context

* fix: padding, added new mic icons

* fix: added-ref to context

* feat: start added

* fix: remove optional spaceId

* fix: inf-bug

* fix: effectAdded

* fix(spaces): add is supported check in start

* refactor: added-join-functionalities (#507)

* refactor: added-join-functionalities

* fix: screens

* fix(spaces): fix livepeer stream creation in start

---------

Co-authored-by: Madhur Gupta <[email protected]>

* Fix join and pgpPrivateKey in demoreact (#508)

* refactor: info-on-widget

* refactor: add Space class to context

* fix: padding, added new mic icons

* fix: added-ref to context

* feat: start added

* fix: remove optional spaceId

* fix: inf-bug

* fix: effectAdded

* fix(spaces): add is supported check in start

* refactor: added-join-functionalities

* fix: screens

* refactor: added-join-functionalities (#507)

* refactor: added-join-functionalities

* fix: screens

* fix(spaces): fix livepeer stream creation in start

* fix: join function

---------

Co-authored-by: samarendra-push <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>

* refactor: added feature of triggering widget from sdk

* fix(spaces): fix join as speaker and listner

* fix: resolved updating env and other class variables

* Spaces/UI migration (#510)

* fix: ui-migration

* fix: migration fixes

* refactor: added notification socket for space in uiweb

* feat: add remove and admin func to invite modal (#509)

* feat: add remove and admin func to invite modal

* fix: fix null

* fix(spaces): fix start

* feat: add join functionality to invited spaces (#512)

* feat: add join functionality to invited spaces

* fix: open space widget after joining

* refactor: add audio playback from space speakers (#511)

* refactor: added a hidden Video container

* fix: migrated initSpaceObject to parent component

* feat(spaces): add user feeds socket handler logic

---------

Co-authored-by: Nilesh Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: Shoaib Mohammed <[email protected]>
Co-authored-by: aman035 <[email protected]>
Co-authored-by: samarendra-push <[email protected]>

* Spaces backend examples (#522)

* fix: spaces documentation

* Update README.md

* fix: formatting issues

* fix: uncommented code

* Spaces SDK alpha publish (#520)

* refactor: added initial SpacesUI class architecture

* Update packages/uiweb/src/lib/components/space/SpacesUI.tsx

Co-authored-by: Arnab Chatterjee <[email protected]>

* Update packages/uiweb/src/lib/components/space/SpacesUI.tsx

Co-authored-by: Arnab Chatterjee <[email protected]>

* fix: refine code structure

* refactor: change structure and added a test sample

* feat: added themeprovider for spaces ui components (#436)

* feat: feat: add themeprovider for spaces

* fix: resolved conflicts

* refactor: cleaned up provider

* refactor: resolved comments

* feat: added colors and themeing in demoreactapp

* refactor: cleaned code

* refactor: resolved comments

* refactor: added a basic style structure for ease of use (#453)

* feat: SpaceBanner Component (#438)

* feat: SpaceBanner

* refactor: removed-optionals

* feat: space-banner functionality

* fix: reverted app.tsx

* fix: reverted app.tsx

* fix: removed test svg file

* refactor: change structure and added a test sample

* feat: space-banner functionality

* refactor: api-implementation

* fix: removed-svg

* refactor: mobile version

* Revert "fix: removed test svg file"

This reverts commit 7af756b.

* Revert "refactor: change structure and added a test sample"

This reverts commit b1e8745.

* fix: revert

* refactor: lastest-pull

* feat: added-spaceBanner-test

* refactor: cache-to-context

* refactor: custom hook added for data

* refactor: spaceDTO

* fix: SpaceDTO implementation

* refactor: participant-container

* refactor: cleanups

* fix: ui-fixes

* fix: EOF newlines

* fix: overflow-fixed

* refactor: tweaked context structure a bit

---------

Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* refactor: updated theme object along with light and dark theme

* feat: Create Space Component (#454)

* refactor: resolved merge conflicts

* feat: added modals and modal behaviour logic

* feat: modal inputs

* feat: change modal logic + integr8 API

* feat: added CSS for modals and inputs

* fix: resolved PR comments

* refactor: improve css

* refactor: rft create modal

* feat: added search input component

* Refactor/space widget component (#458)

* refactor: added basic design

* refactor: added full widget with style

* refactor: reduced fixed height of scheduled widget content

* refactor: changes requested

* refactor: resolved review comments

* feat: add spaces info component (#474)

* Feat/added members modal (#477)

* refactor: added modal

* refactor: added members modal

* refactor: review comments

* refactor: resolve review comments

* fix: review comments

* 424 spaces functions webrtc logic (#482)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

---------

Co-authored-by: Shoaib Mohammed <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>

* refactor: spaces UI Components refactor (#478)

> replaced hardcoded styles with context theme >added smoother animations on collapsoble components
>added profile cards to invite modal

* refactor: added spaceUI class variables into context as well (#488)

* refactor: added spaceUI class variables into context as well

* refactor: resolve review comments

* refactor: added a clickHandler in spaceBanner component for extra flexibility (#489)

* fix(spaces): fix console errs and refactor create, update methods (#492)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

* fix: Merge branch 'alpha' into 424-spaces-functions-webrtc-logic

* fix(spaces): fix console errors and move out create, update functions from Space class

---------

Co-authored-by: Shoaib Mohammed <[email protected]>

* refactor: modified init class method

* refactor/added-space-feed-component(#481)

* feat: space-feed

* refactor: space-feed

* Deployment (#440)

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* ci(restapi): 🎉 cut release to restapi-v1.0.1

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* fix: success progressHook

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.1.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.2.0

* ci(restapi): 🎉 cut release to restapi-v1.0.0

* fix(component): dummy

* fix(component): dummy

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.2

* fix(component): dummy

* ci(restapi): 🎉 cut release to restapi-v1.0.3

* ci(restapi): 🎉 cut release to restapi-v1.0.4

* ci(restapi): 🎉 cut release to restapi-v1.2.1

* fix: local for local development (#295)

Co-Authored-By: aman035 <[email protected]>

* fix: version update

* ci(restapi): 🎉 cut release to restapi-v1.2.2

* ci(restapi): 🎉 cut release to restapi-v1.2.3

* ci(restapi): 🎉 cut release to restapi-v1.2.4

* ci(restapi): 🎉 cut release to restapi-v1.2.5

* ci(restapi): 🎉 cut release to restapi-v1.2.6

* ci(restapi): 🎉 cut release to restapi-v1.2.7

* ci(socket): 🎉 cut release to socket-v0.5.0

* fix: test commit

* ci(restapi): 🎉 cut release to restapi-v1.2.8

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.0

* ci(uiweb): 🎉 cut release to uiweb-v1.0.1

* fix: added ci-version-beta

* fix: added ci-version-beta

* ci(restapi): 🎉 cut beta release to restapi-v1.2.9

* fix: added releaseType

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.0

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut release to restapi-v1.2.10

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-beta.1

* ci(restapi): 🎉 cut release to restapi-v1.2.11

* fix: linkedListHash test cases removed & CI version corrected

* fix: update name to beta

* ci(restapi): 🎉 cut release to restapi-v1.2.12

* ci(restapi): 🎉 cut release to restapi-v1.2.12

* ci(restapi): 🎉 cut release to restapi-v1.2.13

* ci(restapi): 🎉 cut release to restapi-v1.2.14

* ci(restapi): 🎉 cut release to restapi-v1.2.15

* fix: update package json

* fix: updated socket version

* ci(uiweb): 🎉 cut release to uiweb-v1.0.2

* fix: socket lib update

* ci(uiweb): 🎉 cut release to uiweb-v1.0.2

* ci(restapi): 🎉 cut release to restapi-v1.2.16

* ci(restapi): 🎉 cut release to restapi-v1.3.0

* ci(restapi): 🎉 cut release to restapi-v1.3.1

* ci(socket): 🎉 cut release to socket-v0.5.1

* ci(restapi): 🎉 cut release to restapi-v1.3.2

* ci(restapi): 🎉 cut release to restapi-v1.3.3

* ci(restapi): 🎉 cut release to restapi-v1.3.4

---------

Co-authored-by: aman035 <[email protected]>

* feat: space-feed

* refactor: space-feed

* fix: api-call-custom-hooks

* fix: api-call

* refactor: enums/changes

* fix: scrollable

* fix: scrolling-issue

* feat: filter-changes

* fix: added types

* fix: loader-issue

* fix: tab-button-color

* feat: new-filter and prop

* fix: ended-logic && participant-number logic

* refactor: add onBannerClick

* fix: conflicts

* revert: messed-up spaceBanner

* fix: onClick issue

* fix: onClick and cleanups

* refactor: new pagination interface

* fix: scroll-logic

* fix: scroll-final

* fix: ..

* fix: removed any

* fix: onClick-issue

* fix: loading-context-to-state

* refactor: add-NoSpaceIcons

* refactor: new-ui-layout

* refactor: new-ui-layout

---------

Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: aman035 <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>

* refactor: added structure for spaces invites modal component

* refactor: invite-component

* fix: minor-bug

* feat: Create Space API Integration (#494)

* feat: create spaces integration

* feat: added datetime picker

* feat: completed create space API integration

* feat: changed flow and time component

* feat(spaces): initiate livepeer playback in start method (#499)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

* fix: Merge branch 'alpha' into 424-spaces-functions-webrtc-logic

* fix(spaces): fix console errors and move out create, update functions from Space class

* feat(spaces): initiate livepeer playback in start method

* feat(spaces): store livepeer playback id in space description

---------

Co-authored-by: Shoaib Mohammed <[email protected]>

* Add initialize method (#505)

* fix: add spaces for functions

* fix: Separate page for space in the demo react APP

* fix: start/stop spaces functions

* fix: fix image and description types

* fix: added functions to add and remove members from group

* fix: spaces functions

* fix: spaces functions refactoring

* fix: few more changes

* fix: spaces function testing

* fix: spaces functions

* fix: SDK bug fixes

* fix: SDK bug fixes

* fix: minor fixes

* fix: minor fix

* fix: minor fix

* feat(video): add create mesh connection logic in Video class

* feat(spaces): make video mesh compatible & add spaces class

* feat(spaces): add backend methods in Space class

* fix: Merge branch 'alpha' into 424-spaces-functions-webrtc-logic

* fix(spaces): fix console errors and move out create, update functions from Space class

* feat(spaces): initiate livepeer playback in start method

* feat(spaces): store livepeer playback id in space description

* feat(spaces): add intitialize method

---------

Co-authored-by: Shoaib Mohammed <[email protected]>

* refactor: resolved css in space banner

* refactor: added a skeleton loading effect on space Banner component

* feat: add invite functionality to create space (#506)

* feat: added invite functionality

* fix: add logic for time selector

* fix: css fixes

* refactor: info-on-widget (#504)

* refactor: info-on-widget

* refactor: add Space class to context

* fix: padding, added new mic icons

* fix: added-ref to context

* feat: start added

* fix: remove optional spaceId

* fix: inf-bug

* fix: effectAdded

* fix(spaces): add is supported check in start

* refactor: added-join-functionalities (#507)

* refactor: added-join-functionalities

* fix: screens

* fix(spaces): fix livepeer stream creation in start

---------

Co-authored-by: Madhur Gupta <[email protected]>

* Fix join and pgpPrivateKey in demoreact (#508)

* refactor: info-on-widget

* refactor: add Space class to context

* fix: padding, added new mic icons

* fix: added-ref to context

* feat: start added

* fix: remove optional spaceId

* fix: inf-bug

* fix: effectAdded

* fix(spaces): add is supported check in start

* refactor: added-join-functionalities

* fix: screens

* refactor: added-join-functionalities (#507)

* refactor: added-join-functionalities

* fix: screens

* fix(spaces): fix livepeer stream creation in start

* fix: join function

---------

Co-authored-by: samarendra-push <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>

* refactor: added feature of triggering widget from sdk

* fix(spaces): fix join as speaker and listner

* fix: resolved updating env and other class variables

* Spaces/UI migration (#510)

* fix: ui-migration

* fix: migration fixes

* refactor: added notification socket for space in uiweb

* feat: add remove and admin func to invite modal (#509)

* feat: add remove and admin func to invite modal

* fix: fix null

* fix(spaces): fix start

* feat: add join functionality to invited spaces (#512)

* feat: add join functionality to invited spaces

* fix: open space widget after joining

* refactor: add audio playback from space speakers (#511)

* refactor: added a hidden Video container

* fix: migrated initSpaceObject to parent component

* feat(spaces): add user feeds socket handler logic

* fix: fix create invite UI edge cases (#515)

* fix: fix create invite UI edge cases

* fix: fix env

* fix: fix state behaviour

* fix: add wallet as name if name string empty

add wallet as name if name string empty

* refactor: added join function and socket code (#517)

* refactor: added join function and socket code

* refactor(spaces): fix mesh creation logic

* refactor(spaces): remove unused imports from context

* refactor(spaces): remove unused code and improve positioning of code blocks

---------

Co-authored-by: Madhur Gupta <[email protected]>

* Fix isJoined, add hidden video tag (#514)

* refactor: added a hidden Video container

* fix: migrated initSpaceObject to parent component

* fix: WIP isJoined

* fix: join as a listener

---------

Co-authored-by: Madhur Gupta <[email protected]>

* fix(spaces): add create audio call before join for speakers (#518)

* Widget/videoplayer (#519)

* refactor: added a hidden Video container

* fix: migrated initSpaceObject to parent component

* fix: WIP isJoined

* fix: revert husky

* fix: nx.json revert

* fix: join as a listener

* fix: start ui-logic refactor

* fix: merge-conflicts

* fix: isListener

* fix(spaces): fix isSpeaker and isListner logic

* feat: added blockies (#523)

---------

Co-authored-by: Nilesh Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: Shoaib Mohammed <[email protected]>
Co-authored-by: aman035 <[email protected]>
Co-authored-by: samarendra-push <[email protected]>

* ci(restapi): 🎉 cut beta release to restapi-v0.0.1-alpha.23

* Update README.md

* fix: rename chats to spaces

* fix: spaces examples fixes

* fix: renamed spaces variables and removed some unused variables

* Update README.md

---------

Co-authored-by: Shoaib Mohammed <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: Madhur Gupta <[email protected]>
Co-authored-by: strykerin <[email protected]>
Co-authored-by: Nilesh Gupta <[email protected]>
Co-authored-by: Arnab Chatterjee <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: Samarendra Gouda <[email protected]>
Co-authored-by: samarendra-push <[email protected]>
Co-authored-by: Mohammed S <[email protected]>
Co-authored-by: Monalisha Mishra <[email protected]>
  • Loading branch information
12 people authored Jul 17, 2023
1 parent 8df91a4 commit 8b72b29
Show file tree
Hide file tree
Showing 222 changed files with 16,643 additions and 1,064 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,4 @@ buck-out/
packages/restapi/yarn.lock
yarn.lock
*.env
**/.next
106 changes: 106 additions & 0 deletions packages/demoreact/src/app/ChatTest/AddAdminsToGroupTest.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
import { useState, useContext } from 'react';
import {
Section,
SectionItem,
CodeFormatter,
SectionButton,
} from '../components/StyledComponents';
import Loader from '../components/Loader';
import { Web3Context, EnvContext } from '../context';
import * as PushAPI from '@pushprotocol/restapi';
import ChatTest from './ChatTest';

const AddAdminsToGroupTest = () => {
const { account: acc, library } = useContext<any>(Web3Context);
const { env } = useContext<any>(EnvContext);
const [isLoading, setLoading] = useState(false);
const [chatId, setChatId] = useState<string>('');
const [memberAddress, setMemberAddress] = useState<string>('');
const [sendResponse, setSendResponse] = useState<any>('');
const [account, setAccount] = useState<string>(acc);

const updateChatId = (e: React.SyntheticEvent<HTMLElement>) => {
setChatId((e.target as HTMLInputElement).value);
};

const updateMemberId = (e: React.SyntheticEvent<HTMLElement>) => {
setMemberAddress((e.target as HTMLInputElement).value);
};

const updateAccount = (e: React.SyntheticEvent<HTMLElement>) => {
setAccount((e.target as HTMLInputElement).value);
};

const addAdminsToGroupTest = async () => {
try {
setLoading(true);
const librarySigner = await library.getSigner();
const response = await PushAPI.chat.addAdmins({
chatId: chatId,
admins: memberAddress ? memberAddress.split(',') : [],
env,
account: account,
signer: librarySigner,
});
setSendResponse(response);

} catch (e) {
console.error(e);
} finally {
setLoading(false);
}
};

return (
<div>
<ChatTest />
<h2>Add Admins to Group Test page</h2>

<Loader show={isLoading} />

<Section>
<SectionItem>
<SectionButton onClick={addAdminsToGroupTest}>Add Admins to Group</SectionButton>
</SectionItem>
<SectionItem>
<label>chatId</label>
<input
type="text"
onChange={updateChatId}
value={chatId}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem>
<label>members (comma separated)</label>
<input
type="text"
onChange={updateMemberId}
value={memberAddress}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem style={{ marginTop: 20 }}>
<label>Account</label>
<input
type="text"
onChange={updateAccount}
value={account}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem>
<div>
{sendResponse ? (
<CodeFormatter>
{JSON.stringify(sendResponse, null, 4)}
</CodeFormatter>
) : null}
</div>
</SectionItem>
</Section>
</div>
);
};

export default AddAdminsToGroupTest;
108 changes: 108 additions & 0 deletions packages/demoreact/src/app/ChatTest/AddMembersToGroupTest.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
import { useState, useContext } from 'react';
import {
Section,
SectionItem,
CodeFormatter,
SectionButton,
} from '../components/StyledComponents';
import Loader from '../components/Loader';
import { Web3Context, EnvContext } from '../context';
import * as PushAPI from '@pushprotocol/restapi';
import ChatTest from './ChatTest';

const AddMembersToGroupTest = () => {
const { account: acc, library } = useContext<any>(Web3Context);
const { env } = useContext<any>(EnvContext);
const [isLoading, setLoading] = useState(false);
const [chatId, setChatId] = useState<string>('');
const [memberAddress, setMemberAddress] = useState<string>('');
const [sendResponse, setSendResponse] = useState<any>('');
const [account, setAccount] = useState<string>(acc);

const updateChatId = (e: React.SyntheticEvent<HTMLElement>) => {
setChatId((e.target as HTMLInputElement).value);
};

const updateMemberId = (e: React.SyntheticEvent<HTMLElement>) => {
setMemberAddress((e.target as HTMLInputElement).value);
};

const updateAccount = (e: React.SyntheticEvent<HTMLElement>) => {
setAccount((e.target as HTMLInputElement).value);
};

const addMembersToGroupTest = async () => {
try {
setLoading(true);
const librarySigner = await library.getSigner();
const response = await PushAPI.chat.addMembers({
chatId: chatId,
members: memberAddress ? memberAddress.split(',') : [],
env,
account: account,
signer: librarySigner,
});
setSendResponse(response);

} catch (e) {
console.error(e);
} finally {
setLoading(false);
}
};



return (
<div>
<ChatTest />
<h2>Add Member to Group Test page</h2>

<Loader show={isLoading} />

<Section>
<SectionItem>
<SectionButton onClick={addMembersToGroupTest}>Add Member to Group</SectionButton>
</SectionItem>
<SectionItem>
<label>chatId</label>
<input
type="text"
onChange={updateChatId}
value={chatId}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem>
<label>members (comma separated)</label>
<input
type="text"
onChange={updateMemberId}
value={memberAddress}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem style={{ marginTop: 20 }}>
<label>Account</label>
<input
type="text"
onChange={updateAccount}
value={account}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem>
<div>
{sendResponse ? (
<CodeFormatter>
{JSON.stringify(sendResponse, null, 4)}
</CodeFormatter>
) : null}
</div>
</SectionItem>
</Section>
</div>
);
};

export default AddMembersToGroupTest;
12 changes: 12 additions & 0 deletions packages/demoreact/src/app/ChatTest/ChatTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ const ChatTest = () => {
<Link to="/getGroup" className="nav-button">
CHAT.GETGROUP
</Link>
<Link to="/addMembersToGroup" className="nav-button">
CHAT.ADDMEMBERSTOGROUP
</Link>
<Link to="/addAdminsToGroup" className="nav-button">
CHAT.ADDADMINSTOGROUP
</Link>
<Link to="/removeMembersFromGroup" className="nav-button">
CHAT.REMOVEMEMBERSFROMGROUP
</Link>
<Link to="/removeAdminsFromGroup" className="nav-button">
CHAT.REMOVEADMINSFROMGROUP
</Link>
</NavMenu>
</Section>
</div>
Expand Down
106 changes: 106 additions & 0 deletions packages/demoreact/src/app/ChatTest/RemoveAdminsFromGroupTest.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
import { useState, useContext } from 'react';
import {
Section,
SectionItem,
CodeFormatter,
SectionButton,
} from '../components/StyledComponents';
import Loader from '../components/Loader';
import { Web3Context, EnvContext } from '../context';
import * as PushAPI from '@pushprotocol/restapi';
import ChatTest from './ChatTest';

const RemoveAdminsFromGroupTest = () => {
const { account: acc, library } = useContext<any>(Web3Context);
const { env } = useContext<any>(EnvContext);
const [isLoading, setLoading] = useState(false);
const [chatId, setChatId] = useState<string>('');
const [memberAddress, setMemberAddress] = useState<string>('');
const [sendResponse, setSendResponse] = useState<any>('');
const [account, setAccount] = useState<string>(acc);

const updateChatId = (e: React.SyntheticEvent<HTMLElement>) => {
setChatId((e.target as HTMLInputElement).value);
};

const updateMemberId = (e: React.SyntheticEvent<HTMLElement>) => {
setMemberAddress((e.target as HTMLInputElement).value);
};

const updateAccount = (e: React.SyntheticEvent<HTMLElement>) => {
setAccount((e.target as HTMLInputElement).value);
};

const removeAdminsFromGroupTest = async () => {
try {
setLoading(true);
const librarySigner = await library.getSigner();
const response = await PushAPI.chat.removeAdmins({
chatId: chatId,
admins: memberAddress ? memberAddress.split(',') : [],
env,
account: account,
signer: librarySigner,
});
setSendResponse(response);

} catch (e) {
console.error(e);
} finally {
setLoading(false);
}
};

return (
<div>
<ChatTest />
<h2>Remove Admins from Group Test page</h2>

<Loader show={isLoading} />

<Section>
<SectionItem>
<SectionButton onClick={removeAdminsFromGroupTest}>Remove Admins from Group</SectionButton>
</SectionItem>
<SectionItem>
<label>chatId</label>
<input
type="text"
onChange={updateChatId}
value={chatId}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem>
<label>members (comma separated)</label>
<input
type="text"
onChange={updateMemberId}
value={memberAddress}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem style={{ marginTop: 20 }}>
<label>Account</label>
<input
type="text"
onChange={updateAccount}
value={account}
style={{ width: 400, height: 30 }}
/>
</SectionItem>
<SectionItem>
<div>
{sendResponse ? (
<CodeFormatter>
{JSON.stringify(sendResponse, null, 4)}
</CodeFormatter>
) : null}
</div>
</SectionItem>
</Section>
</div>
);
};

export default RemoveAdminsFromGroupTest;
Loading

0 comments on commit 8b72b29

Please sign in to comment.