Commit Graph
100 Commits
Author SHA1 Message Date
Sahil Kumar 644c8b67d8 re-subscribe connectivityStream if widget.connectivityStream changes
Signed-off-by: Sahil Kumar <[email protected]>
2021-05-28 12:02:49 +05:30
Sahil KumarandGitHub de50b1a22c Merge pull request #428 from GetStream/feat/textOverflow 2021-05-12 13:28:25 +05:30
Sahil Kumar a2d8ddc72b add type safe filters in queryUsers and queryMembers
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-30 14:21:10 +05:30
Sahil Kumar 75b59f0b51 add doc comments
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-28 15:45:08 +05:30
Sahil Kumar 8735901c75 add equality tests for filters
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-27 16:07:41 +05:30
Sahil Kumar 2ad8adca60 fix analyzer warnings
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-27 16:02:11 +05:30
Sahil Kumar 697e14457e cleanup
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-27 15:47:00 +05:30
Sahil Kumar d862da504a cleanup
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-27 15:45:53 +05:30
Sahil Kumar 64318f4e46 cleanup
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-27 15:44:06 +05:30
Sahil Kumar 8c666caa52 refactor (core <-> ui <-> persistence) with the new filter changes.
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-27 15:41:00 +05:30
Sahil KumarandGitHub f683961581 Update packages/stream_chat/lib/src/models/filter.dart 2021-04-26 20:39:17 +05:30
Sahil Kumar ac995b2fc9 feat(llc): add support for type safe filters
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-26 19:55:50 +05:30
Sahil Kumar 4e9f4baf23 fix example
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-20 21:17:43 +05:30
Sahil Kumar 3bb1b11ee8 migrate to nnbd
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-20 19:52:06 +05:30
Sahil Kumar e3589a3030 modify entities according to NNBD models
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-20 15:37:12 +05:30
Sahil Kumar 271dad7f0c bump deps, migrate converters
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-20 14:56:56 +05:30
Sahil Kumar 9440bd4793 modify event tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-20 13:57:49 +05:30
Sahil Kumar 8136b50c78 fix analyzer warnings
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-20 13:56:01 +05:30
Sahil Kumar a273730b09 fix event tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-20 13:54:29 +05:30
Sahil KumarandGitHub 19bcbc7bc5 fix(llc): queryChannels should only throw if we do-not have any channels in cache (#394)
* fix(llc): queryChannel should throw exception if client is not yet connected

Signed-off-by: Sahil Kumar <[email protected]>

* prepare llc for v1.5.2

Signed-off-by: Sahil Kumar <[email protected]>

* fix queryChannelOnline invocation conditions

Signed-off-by: Sahil Kumar <[email protected]>

* fix package version

Signed-off-by: Sahil Kumar <[email protected]>

* queryChannels should only throw if we do-not have any channels in cache

Signed-off-by: Sahil Kumar <[email protected]>

* update changelog with the correct fix

Signed-off-by: Sahil Kumar <[email protected]>
2021-04-19 15:31:15 +02:00
Sahil Kumar 07196eab96 fix tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-19 17:43:11 +05:30
Sahil Kumar c289871a56 chore(llc): re-generate all files
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-08 15:30:57 +05:30
Sahil Kumar 3a5308a9c0 chore(core): sort pub dependency
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-02 19:34:29 +05:30
Sahil Kumar 3ec389bd71 fix tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-02 19:19:20 +05:30
Sahil Kumar 9b36f012b3 Merge branch 'feat/nullsafety-stream-chat' of git://github.com/felangel/stream-chat-flutter into felangel-feat/nullsafety-stream-chat 2021-04-02 18:59:52 +05:30
Sahil KumarandGitHub f572cbd1c3 Merge pull request #380 from GetStream/fix/remove-from-coverage
fix: add escape character in coverage script
2021-04-02 17:27:22 +05:30
Sahil Kumar b1396cd34f fix coverage script
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-02 17:13:38 +05:30
Sahil KumarandGitHub 63705693dc fix: fix channel list pagination spinner (#375)
Signed-off-by: Sahil Kumar <[email protected]>
2021-04-01 13:25:12 +02:00
Sahil KumarandGitHub df5df69b24 Merge pull request #365 from GetStream/fix/accessibility-text-size-scaling 2021-03-31 20:47:27 +05:30
Sahil Kumar d34ce81096 fixes
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-31 20:04:01 +05:30
Sahil Kumar 2014c25235 fix(ui-kit): fix message input dm checkbox accessibility scaling issue
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-31 17:05:07 +05:30
Sahil Kumar 8b58ac06ff fix(ui-kit): fix message widget long username overflow
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-31 16:58:24 +05:30
Sahil Kumar fec7cfa572 fix(ui-kit): fix accessibility text size scaling in message widget
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-31 12:50:41 +05:30
3dcf1f5eb4 refactor(ui-kit): update giphy interaction (#361)
* refactor(ui-kit): update giphy interaction

Signed-off-by: Sahil Kumar <[email protected]>

* fix overflow

Co-authored-by: Salvatore Giordano <[email protected]>
2021-03-30 15:11:20 +02:00
Sahil KumarandGitHub 420d6384c4 test: add tests for stream chat flutter core (#354)
* test(core): add tests for channels bloc

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): refactor some tests due to changes in channels bloc

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for channel list core

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for users bloc, minor improvements

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for user list core, minor improvements

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for message search bloc, refactor

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for message search list core, refactor

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for lazy load scroll view

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for stream chat core

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for message list core

Signed-off-by: Sahil Kumar <[email protected]>

* test(core): add tests for stream channel

Signed-off-by: Sahil Kumar <[email protected]>

* Fix merge conflicts

Signed-off-by: Sahil Kumar <[email protected]>

* flutter format

Signed-off-by: Sahil Kumar <[email protected]>

* fixes

Signed-off-by: Sahil Kumar <[email protected]>

* update workflow

Signed-off-by: Sahil Kumar <[email protected]>

* chore(core): fix analyzer issues

Signed-off-by: Sahil Kumar <[email protected]>

* chore(ui-kit): fix analyzer issues

Signed-off-by: Sahil Kumar <[email protected]>
2021-03-30 10:16:12 +02:00
Sahil KumarandGitHub 83211d319d Merge pull request #352 from GetStream/fix/file-picker-image-as-file
fix(UI-Kit): Show selected attachment file as file in message input
2021-03-22 12:49:50 +05:30
Sahil Kumar 83b51625e0 fix(UI-Kit): Show selected attachment file as file in message input widget
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-22 12:21:37 +05:30
Sahil KumarandGitHub 129e5da77e Merge pull request #346 from GetStream/hotfix/timestamps 2021-03-19 21:46:51 +05:30
Sahil Kumar b9f955d3b2 fix
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 20:21:04 +05:30
Sahil Kumar ccb47602e8 fix
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 20:06:23 +05:30
Sahil Kumar f31539ac87 fix
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 20:00:58 +05:30
Sahil Kumar 98b75d64ef fix
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 19:45:41 +05:30
Sahil Kumar 6dd9f6af5e add remove from coverage script
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 19:37:50 +05:30
Sahil Kumar 8f079a9924 skip pub publish --dry-run for develop branch
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 18:59:47 +05:30
Sahil Kumar e6a27754a2 Merge branches 'develop' and 'persistence/add-tests' of https://github.com/GetStream/stream-chat-flutter into persistence/add-tests
 Conflicts:
	packages/stream_chat_persistence/analysis_options.yaml
	packages/stream_chat_persistence/lib/src/dao/channel_query_dao.dart
	packages/stream_chat_persistence/lib/src/dao/message_dao.dart
	packages/stream_chat_persistence/lib/src/dao/user_dao.dart
	packages/stream_chat_persistence/lib/src/db/moor_chat_database.dart
	packages/stream_chat_persistence/lib/src/db/shared/native_db.dart
	packages/stream_chat_persistence/lib/src/db/shared/unsupported_db.dart
	packages/stream_chat_persistence/lib/src/mapper/channel_mapper.dart
	packages/stream_chat_persistence/lib/src/stream_chat_persistence_client.dart
	packages/stream_chat_persistence/pubspec.yaml
2021-03-19 18:26:31 +05:30
Sahil Kumar 74f1752ceb test(persistence): add coverage:ignore-file for entities and db/shared directory
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 18:21:59 +05:30
Sahil Kumar cc9388816a test(persistence): add client constructor test in stream chat persistence client
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 18:10:25 +05:30
Sahil Kumar b570d3332a test(persistence): improve message mapper, pinned message mapper test
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 18:03:00 +05:30
Sahil Kumar abbe72709e test(persistence): add return channel with pagination applies test in channel query dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 17:49:50 +05:30
Sahil Kumar 2e3baa020d test(persistence): add extra checks in getMessagesByCid along with pagination test in message, pinned message dao.
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 17:38:07 +05:30
Sahil Kumar ab9990e5bd test(persistence): add getMessagesByCid along with quotedMessage test in message, pinned message dao.
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 17:34:41 +05:30
Sahil Kumar 252783adf6 test(persistence): add getMessagesByCid along with pagination test in message, pinned message dao.
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 16:52:08 +05:30
Sahil Kumar e00881fbdd test(persistence): add getThreadMessagesByParentId along with pagination test in message, pinned message dao.
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 16:42:16 +05:30
Sahil Kumar 4c2a748291 test(persistence): add clear queryCache test in channel query dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 16:14:23 +05:30
Sahil Kumar d1e3cda2ec test(persistence): add moor schemas for future migration tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 16:11:47 +05:30
Sahil Kumar 66edb12736 test(persistence): add tests moor chat database
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 14:35:46 +05:30
Sahil Kumar bea545b154 test(persistence): add tests for stream chat persistence client
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-18 20:38:26 +05:30
Sahil Kumar 827e6a5dbd refactor(persistence): remove redundant UsersTable getter from ConnectionEventDao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 19:52:40 +05:30
Sahil Kumar 2233528609 test(persistence): add tests for user mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 17:48:39 +05:30
Sahil Kumar 818e91a106 test(persistence): add tests for read mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 17:38:14 +05:30
Sahil Kumar d688d554ce test(persistence): add tests for reaction mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 17:32:12 +05:30
Sahil Kumar a78c230ef0 test(persistence): add tests for pinned message mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 17:25:25 +05:30
Sahil Kumar 6804660c61 test(persistence): add tests for message mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 17:21:57 +05:30
Sahil Kumar 323c5b6cba test(persistence): add tests for member mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 15:43:50 +05:30
Sahil Kumar 60613d44bf test(persistence): add test for event mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 15:03:40 +05:30
Sahil Kumar 830cb0c281 test(persistence): add tests for channel mapper
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 14:57:26 +05:30
Sahil Kumar b738a47c2a test(persistence): add tests for message sending status converter
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 14:19:06 +05:30
Sahil Kumar 28e3e5edc4 test(persistence): add test for map converter
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 14:11:45 +05:30
Sahil Kumar 3854bfcdc9 test(persistence): add test for list converter
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 14:01:39 +05:30
Sahil Kumar e87a8a07a1 test(persistence): add tests for user dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 21:11:07 +05:30
Sahil Kumar 66a577901c test(persistence): minor improvement in update function tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 20:45:41 +05:30
Sahil Kumar 45870d7fab test(persistence): add test for read dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 20:45:11 +05:30
Sahil Kumar 125931d89e test(persistence): add test for reaction dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 20:02:24 +05:30
Sahil Kumar 8fefa3c129 test(persistence): add test for pinned message dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 18:53:07 +05:30
Sahil Kumar a24ec99a44 test(persistence): add tests for message dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 18:42:06 +05:30
Sahil Kumar 2e20616145 test(persistence): add test for member dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 16:42:47 +05:30
Sahil Kumar edc8c4d181 test(persistence): add tests for connection event dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 15:51:41 +05:30
Sahil Kumar 083ca28283 test(persistence): Add test for channel query dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 16:48:56 +05:30
Sahil KumarandGitHub 8ec54f3834 style: Apply team linter in stream chat persistence (#331)
* lint(persistence): Apply team linter

Signed-off-by: Sahil Kumar <[email protected]>

* style: flutter format

Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 10:23:44 +01:00
Sahil Kumar ae65b2b8b2 refactor(persistence): remove dummy comments
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 14:20:00 +05:30
Sahil Kumar 4cbbc059d3 test(persistence): Add tests for channel dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 14:17:01 +05:30
Sahil Kumar 8c0da62f79 style: flutter format
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 12:05:36 +05:30
Sahil Kumar 6bdd065888 lint(persistence): Apply team linter
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 12:00:32 +05:30
Sahil KumarandGitHub edaedbeffb Merge pull request #320 from GetStream/hotfix/notificationbadge 2021-03-08 22:28:41 +05:30
e60294dc92 fix(llc): Fix attachment upload state uneven progress. (#315)
* feat(llc): Add rate limiter functions.
fix(llc): Fix attachment upload state uneven progress.

Signed-off-by: Sahil Kumar <[email protected]>

* feat(llc): Export `async.dart` and `rate_limit.dart`

Signed-off-by: Sahil Kumar <[email protected]>

* refactor(llc): Replace our `rate_limit` implementation with the dart port of js `lodash` to better handlw `cancel` and `flush` functions.

Signed-off-by: Sahil Kumar <[email protected]>

* fix(UI-Kit): Make android example run on real devices

Signed-off-by: Sahil Kumar <[email protected]>

* fix offline behaviour

Co-authored-by: Salvatore Giordano <[email protected]>
2021-03-08 12:35:43 +01:00
Sahil KumarandGitHub a4ebd48272 fix(ui): Fix message input permission request crash (#311)
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-04 16:47:51 +01:00
Sahil KumarandGitHub c5a9a42c45 feat: Add support for messages filter in MessageListView and MessageListCore (#303)
* [MessageListView, MessageListCore] Add support for message filter

Signed-off-by: Sahil Kumar <[email protected]>

* [UI-Kit -> Pubspec] Remove `stream_chat_flutter_core` relative import

Signed-off-by: Sahil Kumar <[email protected]>
2021-03-02 16:27:58 +01:00
Sahil KumarandGitHub 5392ba7303 Merge pull request #300 from GetStream/feat/systemBuilder
feat(ui): system builder
2021-03-02 16:56:24 +05:30
Sahil KumarandGitHub 41f5049076 Merge pull request #296 from GetStream/hotfix/systemMessages 2021-03-02 16:21:20 +05:30
Sahil Kumar 35d0ca4baf [UI-Kit] Pop attachment download dialog in case of any error.
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-02 15:22:09 +05:30
Sahil Kumar d2e270e356 [UI-Kit] Disable attachment download dialog pop using back button
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-02 14:39:02 +05:30
Sahil Kumar 2d5384e48b Merge branch 'develop' of https://github.com/GetStream/stream-chat-flutter into feat/attachment_downloader 2021-03-02 14:23:27 +05:30
Sahil Kumar 794c8a143c [UI-Kit] Refactor, add support for downloading attachments.
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-02 13:24:35 +05:30
Sahil Kumar 3b8b0aa9fd flutter format
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 19:37:04 +05:30
Sahil Kumar 81ba72bdcc [LLC] Fix tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 19:36:31 +05:30
Sahil Kumar d0abad3a3b [LLC] Fix tests and minor refactoring
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 19:33:14 +05:30
Sahil Kumar 4368327139 [LLC] Remove unwanted testing code
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:52:29 +05:30
Sahil Kumar 46410ede50 [UI-Kit -> ChannelListCore] Replace ChannelListController function signature with AsyncCallback for better refreshIndicator support.
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:48:46 +05:30
Sahil Kumar 81c2a514fb [LLC -> Client] Change queryChannel preferOffline default value to false
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:46:51 +05:30
Sahil Kumar 771076c29c [LLC -> Client] Expose queryChannelsOnline and queryChannelsOffline
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:35:26 +05:30