Commit Graph

627 Commits

Author SHA1 Message Date
Felicio Mununga a28c7e50bf
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 2596fc13e2
Add emoji hash function (#343)
* add emojis

* add func

* add tests
2023-02-21 14:26:42 +01:00
Felicio Mununga 2bdcc54ca3
remove `long` 2023-02-21 13:57:25 +01:00
marcelines c0dc3b4497
Add image picker to composer (#344)
* feat: add image uploader feature

* fix: minor fixes

* feat: add button when has images or input has value

* fix: composer props

* fix: minor issues
2023-02-21 12:47:00 +01:00
Felicio Mununga effd3eaacb
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
Pavel 94a02ba6d6
Add more components, message actions & reactions (#339)
* hide sidebar on small screen

* add reply component

* add radix dependencies

* add dropdown menu component

* add popover component

* add tooltip component

* add react button component

* add reaction popover

* update chat message actions

* add basic dialog and sheet components

* add ref to Button component

* add chat message reactions

* add reply and reactions to chat message

* remove console.log

* add dropdown menu to topbar

* add ref and support aria in IconButton

* yarn.lock

* add stylesheet reset to storybook

* add pinned state to message

* remove extraneous component

* add all button variants

* fix button icons

* use IconButton in actions

* remove erroneous character

* add reply to composer + simplify

* use correct button in reply
2023-02-14 17:36:38 +01:00
marcelines 1757f62b34
Add blur and IconButton variants (#340)
* feat: add blurview to topbar and composer with scroll position

* fix: icon button component and adds scrolls var position for the top bar

* fix: changes from review
2023-02-10 17:25:13 +01:00
Felicio Mununga 72c58aacfc
add `decompress-public-key.ts` (#336) 2023-02-10 10:09:42 +01:00
Felicio Mununga 691f90f81b
remove `useMemo` from `hasReactions` (#338) 2023-02-07 12:10:28 +01:00
marcelines fe31f2f59c
feat: add missing stories (#335)
* feat: add missing stories

* fix: figma links and removes console log
2023-01-25 12:21:32 +01:00
marcelines a1c559b6ae
EAS integration & Improvements & fixes (#334)
* fix: issues with build after debugging expo app

* feat: updates icons app and increases build version

* fix: react-native-svg resolution

* feat: multiple fixes and top bar implementation

* fix: sidebar members animation

Co-authored-by: marcelines <marcio@significa.co>
2023-01-24 14:41:25 +01:00
Pavel Prichodko 8d157119ca
simplify avatar and fix border 2023-01-23 15:55:16 +01:00
Pavel Prichodko 295efa4fb7
fix reactions 2023-01-23 15:42:47 +01:00
Pavel Prichodko 249bb4ef07
simplify and fix IconButton 2023-01-23 15:35:09 +01:00
Pavel Prichodko b791ae15ff
add radius=full to image and fix avatar 2023-01-23 15:29:20 +01:00
Pavel Prichodko ef54007f90
reformat 2023-01-23 15:29:03 +01:00
Pavel Prichodko 900bb1b187
remove shell script for renaming files 2023-01-23 14:47:22 +01:00
Pavel Prichodko be554a64fe
accept icons in button component 2023-01-23 14:46:43 +01:00
Pavel Prichodko 178a85cd44
remove overflow hidden from avatar 2023-01-23 14:46:04 +01:00
Pavel Prichodko 3243130042
improve Image props and fix border radius on safari 2023-01-23 14:45:18 +01:00
Pavel Prichodko 5b30b2d0ab
add storybook-dark-mode addon 2023-01-23 14:42:42 +01:00
Pavel Prichodko 9aab2a0638
remove shape :( 2023-01-23 14:05:08 +01:00
Pavel Prichodko 37f6335f8b
pin storybook version 2023-01-23 14:03:38 +01:00
Pavel Prichodko 21840d0c79
add suffix to icons 2023-01-23 14:03:08 +01:00
Pavel Prichodko aaa151c8cc
fix icons (again...) 2023-01-20 15:57:51 +01:00
Pavel Prichodko 55ac3aeb8c
move temp file 2023-01-20 15:46:57 +01:00
Pavel Prichodko 98db83fb18
fix icons import 2023-01-20 15:46:44 +01:00
Pavel Prichodko 510615c74b
rename chat message -> messages and cleanup 2023-01-20 15:28:45 +01:00
Pavel Prichodko 8f0fb27b1a
temp fix for user list react key 2023-01-20 15:27:52 +01:00
Pavel Prichodko ad451ec1f1
use icons from @status-im 2023-01-20 15:27:52 +01:00
Pavel Prichodko 0ee3634392
replace rm with rimraf 2023-01-20 15:27:05 +01:00
Pavel Prichodko cce6700fa4
add all icons + cross-platform generation 2023-01-20 15:27:05 +01:00
Pavel Prichodko 281a001b5f
change order in @stats-im/components index 2023-01-20 15:26:14 +01:00
Pavel Prichodko 4507eba583
fix component import name 2023-01-20 15:26:14 +01:00
Pavel Prichodko dbfff0b7ed
add re-exports 2023-01-20 15:25:33 +01:00
Pavel Prichodko bb3506580f
add sidebar members component 2023-01-20 15:25:19 +01:00
Pavel Prichodko 4bd81cd0fc
add user list component 2023-01-20 15:25:18 +01:00
Pavel Prichodko 4499e91277
remove generated stories example folder 2023-01-20 15:25:18 +01:00
Pavel Prichodko eed02b90ec
update sidebar border 2023-01-20 15:25:18 +01:00
Pavel Prichodko 3c2dc7cbc8
add divider label component 2023-01-20 15:25:18 +01:00
Pavel Prichodko 9ea3ffb8f8
add author component 2023-01-20 15:25:18 +01:00
Pavel Prichodko ebf4b5d2e2
fix avatar export 2023-01-20 15:25:18 +01:00
marcelines 33eef5c2aa
Add mobile navigation & Composer (#333)
* feat: add composer component

* feat: complete composer component and few minor fixes

* feat: add several improvements and new features

* fix: change icon button in composer
2023-01-20 15:06:26 +01:00
Pavel Prichodko 183b4a66dd
add Button to sidebar 2023-01-18 16:46:11 +01:00
Pavel Prichodko f814f1e0a2
add @status-im/icons dependency 2023-01-18 16:44:39 +01:00
Pavel Prichodko 87cda5b33a
add typography stories 2023-01-18 16:42:41 +01:00
Pavel Prichodko 7f8f41caf5
add status indicator to Avatar 2023-01-18 16:42:22 +01:00
Pavel Prichodko c96bc2e647
add Divider component 2023-01-18 16:41:57 +01:00
Pavel Prichodko 2e4705e572
use existing component in button 2023-01-18 16:41:45 +01:00
Pavel Prichodko 7b0ab3dad0
move Tamagui augmentation to config file 2023-01-18 16:39:50 +01:00
Pavel Prichodko 39b6a5371f
add ChatMessage component 2023-01-18 16:39:06 +01:00
Pavel Prichodko 5b6829147e
add icons story 2023-01-18 14:20:07 +01:00
Pavel Prichodko b071431c1b
use aspect ratio for Sidebar card 2023-01-18 14:20:07 +01:00
Pavel Prichodko 1b340e7bc6
support aspect ratio in Image 2023-01-18 14:18:28 +01:00
Pavel Prichodko d04d4e4ed7
add icon and accept only size 2023-01-18 14:18:27 +01:00
Pavel Prichodko d336dee3be
add IconButton component 2023-01-18 14:18:27 +01:00
Pavel Prichodko a00b15d08d
add icons package 2023-01-18 14:18:27 +01:00
marcelines f197ae31cf
Add cross-platform sidebar (#331)
* feat: add icon example and solve some types

* fix: add accordion and emojis

* fix: fixes animation issues and adds overall minor improvements

* fix: more fixes and new emoji

* fix: id from channel
2023-01-18 14:15:51 +01:00
marcelines cdeeafafae
fix: some details in sidebar and button components 2023-01-16 17:21:57 +00:00
Pavel Prichodko 0da0a8d368
Fix theming in web app 2023-01-16 16:19:06 +01:00
Pavel Prichodko 25ae7dd638
upgrade to tamagui@1.0.15 and pin the version 2023-01-16 16:15:09 +01:00
Pavel Prichodko 5dd29814be
update sidebar 2023-01-16 15:51:32 +01:00
Pavel Prichodko 1c319403c7
export components 2023-01-16 15:50:24 +01:00
Pavel Prichodko 758fe8103f
fix sidebar component 2023-01-16 15:50:24 +01:00
Pavel Prichodko b5b23bd1df
add input component 2023-01-16 15:49:51 +01:00
Pavel Prichodko 3cdacb6e80
add image component 2023-01-16 15:49:51 +01:00
Pavel Prichodko fcee55b65d
add button component 2023-01-16 15:49:51 +01:00
Pavel Prichodko c13244cb7e
add avatar component 2023-01-16 15:49:51 +01:00
Pavel Prichodko 4c82603642
update components scripts 2023-01-16 15:48:39 +01:00
Pavel Prichodko 2f7790d8b6
add types to storybook config 2023-01-16 15:48:24 +01:00
Pavel Prichodko 67ceb25c43
fix @tamagui/vite-plugin import 2023-01-16 15:48:24 +01:00
Pavel Prichodko 9d20e45f6f
upgrade tamagui to v1.0.8 2023-01-16 15:48:23 +01:00
marcelines 9a28570b44
Add color tokens, theming and typography
* feat: adds custom theme setup with several options

* feat: add typography and few examples with theme switch

* fix: sort import rule

* fix: remove unnecessary file

* fix: changes from review

* fix: changes as const as stated in tamagui's docs
2023-01-16 15:34:15 +01:00
marcelines f44abac4b0
feat: add expo to monorepo (#328) 2023-01-11 14:38:47 +01:00
Pavel Prichodko 1b0b99ac82
add storybook and rename 2023-01-10 12:24:24 +01:00
Pavel Prichodko 9426d025aa
add ui package 2023-01-09 22:14:58 +01:00
Felicio Mununga 5b48b614e8
dispatch `CONNECT` 2022-11-28 03:02:25 +01:00
Felicio Mununga 89b51c4e25
remove codec eval from `connectionManager` listener 2022-11-28 00:11:19 +01:00
Felicio Mununga 4ff9841ead
add `libp2p` connection listeners 2022-11-27 23:54:43 +01:00
Felicio Mununga 634ec4eeca
move `wakuDisconnectionTimer` to constructor 2022-11-27 22:52:24 +01:00
Felicio Mununga e20df9b0bb
change `wakuDisconnectionTimer` to handle light protocols 2022-11-27 17:45:56 +01:00
Felicio Mununga c925efbaf5
dispatch `FAIL`
- stops client on failed initialization
- displays failed message
2022-11-27 17:07:58 +01:00
Felicio Mununga 0346b94250
specify protocols in waitForRemotePeer 2022-11-17 02:47:57 +01:00
Felicio Mununga c8cd9d45a9
set pingKeepAlive to aid in connection recovery 2022-11-16 23:45:42 +01:00
Felicio Mununga 2d363453a3
Use WakuLight 2022-11-15 01:47:56 +01:00
Felicio Mununga 89e3e85bf4
Use MessageV1 type 2022-11-15 00:59:16 +01:00
Felicio Mununga fc0e2305e8
Install `js-waku@^0.30.0` 2022-11-14 23:06:34 +01:00
Pavel Prichodko d4ced925e1
v0.1.1 2022-10-09 18:58:52 -05:00
Pavel Prichodko 27ff048970
fix account restoration 2022-10-09 18:26:11 -05:00
Pavel Prichodko 11e6831201
improve initials centering 2022-10-09 18:18:43 -05:00
Pavel Prichodko bbe3463d94
fix avatar sizes 2022-10-09 17:48:12 -05:00
Pavel Prichodko e1b300ed2d
hide identicon for message owner 2022-10-09 17:47:54 -05:00
Pavel Prichodko e958b1df01
allow interaction only if account is member 2022-10-09 17:47:34 -05:00
Pavel Prichodko 79b09cf005
v0.1.0 2022-10-07 22:09:04 +02:00
Pavel 190011d97e
Fetch history (#292) 2022-10-07 21:30:22 +02:00
Pavel c39b84a1e5
Add persistence of throwaway accounts (#315)
* add account membership status

* add storage and account listeners

* update membership

* update ui

* update membership status value

* use boolean instead of undefined

* rename callback function

* remove noise

* listeners -> callbacks

* update storage

* lint issue workaround

* update account storing
2022-10-07 20:05:09 +02:00
Felicio Mununga ca0d508f7f
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 05b7306a25
Move global/base styles and remove `styled-components` (#314) 2022-10-05 16:29:36 +02:00
Felicio Mununga 104f2670c4
Add predefined nodes (#313) 2022-10-05 16:28:54 +02:00
Felicio Mununga a951c8e95c
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