Commit Graph
38 Commits
Author SHA1 Message Date
groovinchip ddf5d45c4a fix: dartfmt on a couple of files 2021-07-19 14:44:04 -04:00
groovinchip 10d2480a00 test: add tests for MessageSearchListViewThemeData 2021-07-19 14:41:39 -04:00
groovinchip 674fc83e62 test: add tests for UserListViewThemeData 2021-07-19 13:39:17 -04:00
groovinchip d6ef2d5a3f fix typo in test name 2021-07-19 13:38:43 -04:00
groovinchip f904b3ed82 remove unused import 2021-07-19 09:05:50 -04:00
groovinchip f7b61706cb test: add tests for ChannelListViewThemeData 2021-07-18 12:47:02 -04:00
groovinchip 6bc70ba40a run dartfmt on message_list_view_theme_test.dart 2021-07-18 12:45:40 -04:00
groovinchip c427b1201b test: add tests for MessageListViewThemeData 2021-07-16 19:24:08 -04:00
groovinchip 0eb350b756 test: remove a duplicated test in gallery_header_theme_test.dart 2021-07-16 15:00:12 -04:00
Sahil Kumar 9a3d094282 chore: fix analyzer warnings
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 14:51:32 +05:30
xsahil03x ec85fb962d Merge remote-tracking branch 'origin/develop' into fix/channel-image
# Conflicts:
#	packages/stream_chat_flutter/test/src/channel_image_test.dart
2021-07-16 14:46:29 +05:30
Reuben TurnerandGitHub b306978da6 chore: apply linter to the various example and test directories (#550)
* chore: remove examples and tests from analysis exclusion

* chore: apply linter fixes to stream_chat_flutter_core/example/main.dart

* chore: apply linter fixes to stream_chat_flutter/example/main.dart

* chore: apply linter fixes to stream_chat_persistence/example/main.dart

* chore: apply linter fixes to stream_chat/example/main.dart

* chore: apply linter fixes to stream_chat_flutter/example/split_view.dart

* chore: renamte tutorial files per linter

* chore: apply linter fixes to tutorial_part_1.dart

* chore: apply linter fixes to tutorial_part_2.dart

* chore: apply linter fixes to tutorial_part_3.dart

* chore: apply linter fixes to tutorial_part_4.dart

* chore: apply linter fixes to tutorial_part_5.dart

* chore: make a widget const in tutorial_part_5.dart

* chore: apply linter fixes to tutorial_part_6.dart

* chore: sort and update dependencies in stream_chat_persistence/example/pubspec.yaml

* chore: sort and update dependencies in stream_chat_flutter_core/example/pubspec.yaml

* chore: sort and update dependencies in stream_chat_flutter/example/pubspec.yaml

* chore: sort dependencies in stream_chat_flutter/example/pubspec.yaml

* chore: apply linter fixes to channel_test.dart

* chore: apply linter fixes to client_test.dart

* chore: apply linter fixes to client_test.dart, stream_http_client_test.dart, and token_manager_test.dart

* chore: apply linter fixes to filter_test.dart

* chore: apply linter fixes to reaction_test.dart

* chore: apply linter fixes to chat_persistence_client_test.dart

* chore: apply linter fixes to channel_image_test.dart

* chore: apply linter fixes to deleted_message_test.dart

* chore: apply linter fixes to full_screen_media_test.dart

* chore: apply linter fixes to gallery_footer_theme_test.dart

* chore: apply linter fixes to gallery_header_theme_test.dart

* chore: apply linter fixes to message_text_test.dart

* chore: apply linter fixes to reaction_bubble_test.dart

* chore: apply linter fixes to system_message_test.dart

* chore: apply linter fixes to typing_indicator_test.dart

* chore: apply linter fixes to channel_list_core_test.dart

* chore: apply linter fixes to channels_bloc_test.dart

* chore: apply linter fixes to lazy_load_scroll_view_test.dart

* chore: apply linter fixes to channel_matcher.dart

* chore: apply linter fixes to message_matcher.dart

* chore: apply linter fixes to users_matcher.dart

* chore: apply linter fixes to message_list_core_test.dart

* chore: apply linter fixes to message_search_bloc_test.dart

* chore: apply linter fixes to message_search_list_core_test.dart

* chore: apply linter fixes to stream_channel_test.dart

* chore: apply linter fixes to stream_chat_core_test.dart

* chore: apply linter fixes to user_list_core_test.dart

* chore: apply linter fixes to channel_query_dao_test.dart, message_mapper_test.dart, user_mapper_test.dart, and users_bloc_test.dart

* chore: apply some missed dartfmt

* test: regenerate failinggolden test
2021-07-16 10:49:51 +02:00
Sahil Kumar 8dcd5cde64 refactor!: rename ChannelImage -> ChannelAvatar, GroupImage -> GroupAvatar
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 13:59:28 +05:30
Sahil Kumar d2402ba3d0 fix: tests
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 13:35:51 +05:30
Reuben TurnerandGitHub 485e077596 feat: add GalleryHeader/GalleryFooter theme classes (#546)
* chore: Add ImageHeaderTheme and ImageHeaderThemeData to stream_chat_theme.dart

This commit adds the following classes to `stream_chat_theme.dart`:
1. `ImageHeaderTheme`, an `InheritedTheme` widget that can wrap other widgets and provide that sub-tree with an `ImageHeaderThemeData`
2. `ImageHeaderThemeData`, a class that allows for the customization of `ImageHeader` widgets

* Make ImageHeaderThemeData constructor const

* test: initial ImageHeaderThemeData tests

Tests the copyWith, ==, and hashcode functions

* test: add tests for default ImageHeaderThemeData values

Tests the default values of ImageHeaderThemeData that gets built in a StreamChatThemeData against control values.

* Update test name and add comments describing control

* fix: use ImageHeaderTheme.of(context) instead of StreamChatTheme.of(context)

This ensures that ImageHeader will always look for the closest ImageHeaderThemeData in the widget tree.

* test: add dark theme default values test

* run dartfmt on test file

* test: lerping between ImageHeaderThemeData

Added tests that lerp from one ImageHeaderThemeData to another (light to dark and dark to light)

* test: merging ImageHeaderThemeData

Added tests that merge light and dark ImageHeaderThemeData together (light + dark = dark, dark + light = light)

* test: add a half-lerp test

Added a test that lerps halway between light and dark ImageHeaderThemeData

* chore: Add ImageFooterTheme and ImageFooterThemeData to stream_chat_theme.dart

This commit adds the following classes to `stream_chat_theme.dart`:
1. `ImageFooterTheme`, an `InheritedTheme` widget that can wrap other widgets and provide that sub-tree with an `ImageFooterThemeData`
2. `ImageFooterThemeData`, a class that allows for the customization of `ImageFooter` widget

* chore: apply ImageFooterThemeData to image_footer.dart

* fix: make ImageFooterThemeData constructor const

* test: add tests for ImageFooterThemeData

* add a missing trailing comma

* chore: rename ImageHeader & ImageFooter to GalleryHeader and GalleryFooter

The respective theme classes and tests have also been renamed

* Run dartfmt on test

* test: fix failing tests due to renaming
2021-07-15 15:44:12 +02:00
Salvatore Giordano 9641926f07 add golden test 2021-06-28 15:31:36 +02:00
Salvatore Giordano f3a5db1594 fix tests 2021-06-25 12:02:33 +02:00
Salvatore Giordano 3eb336e93d fix analysis 2021-06-18 11:04:53 +02:00
Salvatore Giordano 279e4f2fbf Merge branch 'develop' into ref/segregate-api-layer 2021-06-18 10:47:46 +02:00
Salvatore Giordano c37faddd2e fix tests 2021-06-17 14:03:35 +02:00
Sahil Kumar b7efe258c9 reset golden files to previous revisions
Signed-off-by: Sahil Kumar <[email protected]>
2021-06-17 16:11:05 +05:30
Sahil Kumar 2b80611cd3 fix tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-06-17 12:52:48 +05:30
Salvatore Giordano a6ff8e7039 fix tests 2021-06-10 12:33:20 +02:00
Salvatore Giordano 65bf45306a fix lint and tests 2021-05-27 16:27:23 +02:00
Salvatore Giordano 2d1c99cab7 regenerate golden 2021-05-18 12:34:35 +02:00
Deven Joshi 13cc5f1c4b fix: update goldens 2021-05-18 15:47:38 +05:30
Deven Joshi 0590fe1a76 lint 2021-05-05 19:07:32 +05:30
Deven Joshi 9b09874df1 lint test 2021-05-05 17:59:19 +05:30
Deven Joshi f5daa8f49c lint test 2021-05-05 17:58:50 +05:30
Deven Joshi eb57c6eb9f added lint changes, started migrating 2021-05-04 16:11:28 +05:30
Salvatore Giordano 5bbe82c7eb fix review 2021-04-30 15:00:51 +02:00
Salvatore Giordano 34888d0fff migrate ui 2021-04-30 14:58:50 +02:00
Salvatore Giordano af135ecb9c move on with the migration 2021-04-19 12:40:00 +02:00
Salvatore Giordano dd88cecedc fix reaction bubble 2021-04-09 11:38:25 +02:00
a42b3de6f4 test: add tests for stream chat flutter (#335)
* feat: Added tests

* feat: Added header test

* feat: Added new tests

* fix

* feat: Added test, fmt

* feat: Added delete test

* added system and unread ind tests

* fix: analysis

* added new tests

* fix: analysis

* added tests

* add attachment actions modal tests

* fix analysis

* fix analysis

* add backbutton tests

* fix analysis

* increase timeout

* add channelheader tests

* add infotile tests

* add reactions modal and channel unread indicator tests

* add golden test for reaction bubble

* add dark tests

* add system message golden

* add deletd message golden

* add message action modal tests

* update goldens

* update workflow runner

* update goldens

* remove channel unread indicator in favor of unread indicator

* move file and media screen to sample app

* add channel image tesst

* add channel_list_header test

* add thread_header test

* bump up test threashold

* fix review

Co-authored-by: Salvatore Giordano <[email protected]>
2021-04-08 17:43:08 +02:00
Salvatore Giordano 1f503fbc98 fix test 2021-03-19 13:00:39 +01:00
Sahil Kumar 7d02187751 [UI-Kit] Fix test
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-02 16:30:52 +05:30
Salvatore Giordano 964a428f2e rename package folders 2021-02-01 15:45:58 +01:00