Commit Graph

89 Commits

Author SHA1 Message Date
Felicio Mununga a0d3277733
Add `ethers` and resolve chat key from ENS name (#357)
* add `ethers`

* add `resolveChatKey`
2023-04-04 14:10:56 +02:00
Felicio Mununga 67b12fceb0
Add url data encoding (#345)
* add @scure/base

* add link-preview.proto

* add prototype of encode function

* add tests

* add test cases

* update proto

* more

* more

* add missing community chat description to proto

* more

* more

* add browser brotli and lz-string

* move encoding comparison

* add sinlge encoding

* split encoding

* add decoding

* update .prettierignore

* exclude comparison

* remove comparison tests

* Update packages/status-js/src/utils/encode-url-data.test.ts

* Update packages/status-js/src/utils/encode-url-data.test.ts

* remove checksum

* ensure channel is serializable

* Update .prettierignore

* update protos

* add creaet-url.ts

* set links

* comment

* update protos

* add nominal type for EncodedUrlData

* add sign/verify fns

* export fns from index

* set zlib as external module

* add tag indices

* encode channel uuid

* use `.toJson()` with type assertion

* use uppercase url

* split url creating fns

* fix typo

* describe test suite

* use getters

* fix nominal type

* remove `node:` prefix from `zlib` import

* remove todos?:

* rename URLProps to URLParams

* fix package.json after rebase
2023-03-21 11:05:59 +01:00
Felicio Mununga 6b3ef713e9
Add public key deserialization (#341)
* add `multiformats` dep

* add `deserialize-public-key.ts`

* compress by default

* add tests

* Update packages/status-js/src/utils/deserialize-public-key.ts

Co-authored-by: Pavel <14926950+prichodko@users.noreply.github.com>

* rename vars

---------

Co-authored-by: Pavel <14926950+prichodko@users.noreply.github.com>
2023-02-23 16:48:31 +01:00
Felicio Mununga 16edb12048
remove `long` 2023-02-21 13:57:25 +01:00
Felicio Mununga 942146d0be
Use `@bufbuild` (#337)
* remove old `communities.proto`

* fix `protos` npm script

* apply `protos` changes overwriting `Record<>` patches

* update proto files

* regenerate files

* update `protons*` packages

* regen files

* use `protons` generate communities

* add `@bufbuild*` packages

* update `buf` yaml files

* generate `@bufbuild` files

* use `@bufbuild` files

* format

* remove `protobufjs`

* remove `protons`

* resolve build errors

* fix image content type
2023-02-21 12:34:48 +01:00
Felicio Mununga eaeb04a978
update yarn.lock 2022-11-17 18:48:35 +01:00
Felicio Mununga d68409eb6f
Install `js-waku@^0.30.0` 2022-11-14 23:06:34 +01:00
Pavel 35980656e3
Add Next.js and Vite examples (#290)
* rename community to with-parcel

* add with-next example

* update example names and unify configs

* add vite example

* use new JSX transform in examples

* disable necessary eslint rules for examples

* add next output to prettierignore

* add remix example

* update engines in package.json

* remove readme from with-next example

* update vite example

* update with-next example

* remove with-remix example
2022-10-10 15:26:44 -05:00
Pavel 95dc03b99f
Fetch history (#292) 2022-10-07 21:30:22 +02:00
Felicio Mununga 36322d5a41
Add Activity Center (#312)
* add activityCenter.ts

* use activityCenter.ts

* add "Launch via Vite Node"

* remove comments

* add comments

* type hook

* reverse order of notifications

* remove `activityCenter` from `provider.tsx`

* set `count`'s default value

* ref `ChatMessage` by id instead of object reference

* Revert "ref `ChatMessage` by id instead of object reference"

This reverts commit 1284386d22.

* add badge `totalCount`

* add `@radix-ui/react-tabs`

* skip non-mentions

* update comments

* add `member` to `ChatMessage`

* add `MarkAllAsReadIcon`

* add `40` avatar variant

* add `initialsCount` to `Avatar`

* add `TinyReplyIcon`

* use `Popover`

* move components

* move components

* wip

* ignore clicks on tags themselves

* add root route

* use chat display name

* fix icons

* use `asChild` for tabs

* remove `vertical`

* use `value` and `onValueChange`

* use active state with `compoundVariants`

* use `&[data-state]...` instead of `compoundVarinats` and `active` prop

* fixup `chatDisplayName`

* postion badge

* prevent dragging of the whole page in either direction

* add tooltips

* change message's background on hover

* change navigation style

* add `category` to `removeNotifications`

* prevent deleting of messages that are not mentions or replies from activity center

* show members sidebar by default

* fix members layout

* add comment

* add `date-fns`

* add date separator

* comment

* move `Badge` to `/system`

* move `Tag` to `/system`

* comment `Text`

* replace `Link` for `useNavigate`

* move `Activity` to `/system`

* comment

* export `Notification`

* update fixtures in `activityCenter`

* remove fixtures

* movet `Tabs` to `/system`

* update `mapChatMessage`

* update `.eslintignore`

* resolve typecheck errors

* update `.prettierignore`

* resolve formatting error

* upgrade tooltip

* use `scrollIntoView`

* remove comments

* rename `close` to `onNavigateChange`

* revert scrolling changes in `/member-sidebar`

* rename members label from `Online` to `All`

* rename `initialsCount` and use union

* rename `MarkAllAsReadIcon`

* rename `selected`

* fix typo

* revert formatting

* close `Avatar`

* use `css` where possible without changing elements

* extract props types to interfaces

* rename `ActivityCenter`

* remove `overflow`

* replace `style` for not yet stitched elements

* revert global style changes
2022-10-07 20:02:17 +02:00
Felicio Mununga 2b71b49e71
Move global/base styles and remove `styled-components` (#314) 2022-10-05 16:29:36 +02:00
Felicio Mununga a083d3251b
Install `js-waku@^0.25.0` (#307)
* install `js-waku@^0.24.0`

* install `js-waku@^0.25.0`

* resolve some breaking changes

* add timeout

* upgrade `eslint-import-resolver-typescript`

* add `process.env.VITEST` condition

* increase timeout

* fixup

* ignore `emitSelf`

* replace `parcel` with `vite`

* update `.gitignore`

* change `dev` npm script

* fix favicon href

* load `.env` files

* remove 'alias"

* add `preview`

* upgrade vite

* set `target`s in `vite.config.ts`

* upgrade `@vitejs/plugin-react`

* remove comment

* Update package.json

* Update vite.config.ts
2022-09-16 16:27:47 +02:00
Felicio Mununga e93d992993
add release workflow (#293)
* add release workflow

* add @changesets/cli

* add `title` and `commit`
2022-07-06 15:05:33 +02:00
Pavel 0677fedc0e
Setup GitHub Actions (#287)
* add new GitHub Action for CI

* add yarn flag

* use actions v3

* add ci badge (lol)

* cache lint and format scripts

* add more steps

* remove unused component

* fix lint errors

* remove unsued eslint plugins
2022-06-29 16:46:51 +02:00
Pavel Prichodko 4669960896
update parcel in example to latest 2022-06-28 16:59:27 +02:00
Pavel 680ce2f79b
Move to ESM, Vite, Vitest and Turborepo (#286)
* fix example hot module replacement

* add turbo

* migrate to vite

* use turbo for running scripts

* migrate testing to vitest

* set yarn in settings.json

* set noEmit in base tsconfig

* update yarn.lock

* move protos to src

* remove relative paths from status-js

* remove unused files

* update declaration dir

* use vite-node as a debugging runtime

* fix test

* unify tests

* fix test case typo
2022-06-28 16:40:39 +02:00
Felicio Mununga 36f448cb96
Fix key and topic generation, and remove dependencies (#285)
* update yarn.lock

* remove modules

* move client

* move account

* revert chat_identity.ts

* fix key gen

* fix topic gen

* fix non-null assertion

* fix build errors
2022-06-24 17:39:09 +02:00
Pavel Prichodko 54020b4be6
upgrade stitches 2022-06-09 14:48:54 +02:00
Pavel Prichodko 817b877634
add idToContentTopic 2022-06-04 13:09:49 +02:00
Pavel Prichodko 91f1e75cd5
add ethereum-cryptography package 2022-06-02 12:10:53 +02:00
Felicio Mununga f0a629dfdc
fix test after rebase 2022-06-01 07:39:47 +02:00
Felicio Mununga 697f21a3ab
remove mocha 2022-06-01 06:56:10 +02:00
Felicio Mununga e2d8c95a7b
add jest 2022-05-30 16:04:25 +02:00
Felicio Mununga e67cc79812
add .parcelrc 2022-05-30 00:49:26 +02:00
Felicio Mununga cc760d258a
remove js-waku from status-react 2022-05-25 14:42:01 +02:00
Pavel f6c154d4d9
Use protons to generate TypeScript files (#269)
* feat(status-js): sync protos with status-go

* feat(status-js): set up protons

* feat(status-js): use protons to generate protos

* fix(status-js): remove buf configuration
2022-05-24 12:12:33 +02:00
Pavel Prichodko 69eea46961
chore: yarn.lock 2022-05-23 14:46:08 +02:00
Pavel 0e799928e5
Bump to js-waku@0.23.0 (#263) 2022-05-19 15:37:46 +02:00
Pavel 6d2581c072
Use react-router-dom for routing (#246)
* feat(react): move chat and new-chat to routes

* feat(react): setup react router

* feat(react): use links in sidebar

* feat(react): add link to IconButton component

* feat(react): add router to config
2022-03-31 15:34:32 +02:00
Pavel 16fac14582
Add Design System (#238)
* feat(examples): add full height and remove wrapping div

* Remove Channel component in favour of options

* feat(react): add hook for keyboard shortcuts

* setup: sort only react related packages at the top

* Add radix-ui packages

* feat(system): add stitches config file

* feat(system): add Image primitive

* feat(system): add Avatar component

* feat(system): add Box primitive

* feat(system): add Flex primitive

* feat(system): add Grid primitive

* feat(system): add Tooltip component

* feat(system): add Icon primitive

* feat(system): add Button component

* feat(system): add IconButton component

* feat(system): add EthAddress component

* fix(system): pass down button props

* feat(system): add option to hide Icon from screen readers

* feat(system): add Heading component

* feat(system): add Text component

* feat(system): add TextInput component

* feat(system): add Dialog component

* feat(system): add VisuallyHidden primitive

* feat(system): add Menu primitive

* feat(system): add DropdownMenu component

* feat(system): add ContextMenu component

* refactor(system): Icon component prop name

* feat(system): add AlertDialog component

* feat(system): update Avatar default background color
2022-03-15 13:47:17 +01:00
Pavel 3aba1ec88a
Upgrade js-waku to 0.18.0 (#232)
* Bump js-waku to 0.18.0

* Update nodes init function
2022-02-28 13:40:33 +01:00
Pavel Prichodko e60c8a0b94
Add Node.js builtins to examples 2022-02-25 16:35:28 +01:00
Pavel a341e44b1c
Add pre-commit git hooks (#229) 2022-02-24 23:27:22 +01:00
Pavel e6680f8e62
Improve ESLint monorepo configuration (#228)
* Unify ESLint configuration

* Add .eslintignore file

* Add Node and Jest ESLint plugins

* Fix linting issues

* Sort imports and type imports
2022-02-24 22:58:50 +01:00
Pavel 88f1dddf58
Use Parcel for building of packages (#227)
* Use Parcel for building packages

* Make package exports explicit

* Fix missing dependencies
2022-02-24 16:44:09 +01:00
Pavel 1a1e86195e
Improve TypeScript monorepo configuration (#226)
* Unify TypeScript configuration

* Fix package.json target fields
2022-02-23 16:16:42 +01:00
Pavel 2a2c356807
Improve Prettier monorepo configuration (#225)
* Add prettier configuration files

* Move prettier command to monorepo root

* Format all files
2022-02-23 15:49:00 +01:00
Pavel 5ed925c02d
Move examples and migrate to Parcel (#224)
* Remove old examples

* Add Community and Channel examples
2022-02-23 15:32:08 +01:00
Pavel f1b125cc4d
Update packages to @status-im (#223)
* Downgrade to yarn v1

* Rename status-communities to status-core

* Rename chat-sdk to status-react

* Rename packages in examples

* Update readme

* Remove changelog

* Add extensions recommendations

* Update gitignore

* Rename package imports
2022-02-23 15:03:14 +01:00