Commit graph

39 commits

Author SHA1 Message Date
tommyxchow
bbd810b0c5 Revise video/chat screen
- Added video overlay with controls for a cleaner look
- Added app bar when video is disabled
- Removed bottom back button in favor of a back button on the overlay
2021-11-11 23:00:32 -05:00
tommyxchow
3cf4961493 Rename Channel object to Stream
Channels represent any channel, offline or not. Streams represent live
channels, or streams, and is what is being requested for in the API.
2021-11-11 22:48:23 -05:00
tommyxchow
9499511c48 Add video store 2021-11-11 21:32:05 -05:00
tommyxchow
e3f774d8e5 Redesign & refactor home screen
- Removed hamburger/drawer menu
- Moved search to bottom navigation bar
- Moved settings and profile to app bar
- Moved channel list from screen to widget folder
- Created search screen for viewing results
- Switched from Cupertino to Material routes due to rebuild issues
2021-11-10 21:29:15 -05:00
tommyxchow
2df2326f73 Revert 05df4e8, comment additions & fixes
The previously removed requests in 05df4e8 were actually required for
rendering emotes whenever the user themself sends a message.
2021-11-02 03:51:34 -04:00
tommyxchow
05df4e8d2f Minor comment additions and fixes
Removed the redundant request for Twitch global and channel emotes in getAssets().

Since these emotes will be processed anyways when generating the span, there's no point in wasting bandwidth to fetch and store them.
2021-10-26 01:48:46 -04:00
tommyxchow
fc315ece27 Add documentation to chat store
Resolves #8, resolves #9, resolves #10, resolves #11, resolves #12, resolves #13.
2021-10-26 01:06:57 -04:00
tommyxchow
1afc979139 Add command enum, refactor chat store
- Added enum for IRC tag command for slightly better comparisons
- Moved span portion of renderMessage to its own function in irc_api.dart
- Moved message remove and end scroll to seperate function action
- Fixed emote tags applying to all users
2021-10-24 03:53:08 -04:00
tommyxchow
eb3f0bc082 Implement rendering of USERNOTICE messages 2021-10-23 02:28:20 -04:00
tommyxchow
26e7a746db Fix handling of ROOMSTATE changes 2021-10-23 00:25:22 -04:00
tommyxchow
dc47812a6b Implement ROOMSTATE
- Added ROOMSTATE observable
- Fixed ROOMSTATE not registering in handleWebsocketData due to returnining in the for loop
2021-10-22 02:46:06 -04:00
tommyxchow
58041d4126 Refactor IRC functions & tweak padding 2021-10-20 05:12:15 -04:00
tommyxchow
7a490f1ae7 Minor tweaks
- More token validation in auth store
- Made ban message bold
- Re-styled chat text field
- Settings screen is now a fullscreen dialog
2021-10-18 03:29:45 -04:00
tommyxchow
a897f1218e Add opacity to CLEARCHAT and CLEARMSG, fixes
- Increase chat message limit to 200
- Fix auto scroll post frame callback
2021-10-18 02:43:47 -04:00
tommyxchow
65611469f3 Add chat send message feature, refactoring
- Added userState and globalUserState fields to keep track of user data while chatting
- Adjusted CAP REQ commands to receive GLOBALUSERSTATE
- Adjusted return and break statements in switch and general cleanup
- Added sendMessage and dispose method
2021-10-17 17:56:16 -04:00
tommyxchow
d632850b50 Fix computed headers not updating, improve logout 2021-10-17 16:26:02 -04:00
tommyxchow
7a0efa6658 Move scroll callback back to chat store
Also added the stream listener which I accidentally omitted in the last commit!
2021-10-17 02:25:40 -04:00
tommyxchow
fec255cceb Convert messages to observable, minor refactor 2021-10-17 02:15:51 -04:00
tommyxchow
9bcc9a0479 Refactor chat store
- Added user login to IRC NICK command
- Added first iteration of clearChat (#8)
- Moved parse method to irc_api.dart
- Fixed extra element when splitting snapshot data message
2021-10-16 19:11:35 -04:00
tommyxchow
7673a2c8a0 Add IRC API 2021-10-16 18:25:32 -04:00
tommyxchow
63a63635c8 Remove unnecessary observables from auth store 2021-10-16 04:01:09 -04:00
Tommy Chow
f72081b536 Replace observable with readonly in auth store 2021-10-11 23:01:40 -04:00
Tommy Chow
0305b12521 Add alert when searching for invalid channel 2021-10-10 01:43:24 -04:00
Tommy Chow
c8187fc719 Fix excessive rebuilds when tapping the same tab 2021-10-10 00:11:50 -04:00
Tommy Chow
6f3259ff45 Add ability to search a specific channel
Closes #28 and closes #29
2021-10-10 00:10:58 -04:00
Tommy Chow
0366b087e8 Refactor home to use constructor injection
[skip ci]
2021-10-09 04:02:55 -04:00
Tommy Chow
d01289c9c6 Renames 2021-10-09 03:51:06 -04:00
Tommy Chow
4920a927bf Update home to use BottomNavigationBar 2021-10-08 02:14:05 -04:00
Tommy Chow
df86c222ff Add settings store & video option 2021-10-07 23:12:28 -04:00
Tommy Chow
a6efcfdf15 Add doc comments to channel list store 2021-10-05 03:10:30 -04:00
Tommy Chow
514e3ebb6a Fix auth store doc comments 2021-10-05 03:08:38 -04:00
Tommy Chow
dc5b1547bc Fix logout not clearing tokens
[skip ci]
2021-10-05 00:44:46 -04:00
Tommy Chow
ae47476b0d Fix flash when refreshing 2021-10-03 23:54:27 -04:00
Tommy Chow
9bcefba327 Update chat store compatibility 2021-10-03 22:14:55 -04:00
Tommy Chow
ca482ceb05 Refactor channel list store 2021-10-03 22:14:02 -04:00
Tommy Chow
14b7aa9662 Refactor and streamline auth store with comments 2021-10-03 22:13:36 -04:00
Tommy Chow
a5acd74351 Revert chat changes 2021-10-01 03:02:14 -04:00
Tommy Chow
5b8ebb65eb Renames & minor fixes 2021-10-01 03:01:45 -04:00
Tommy Chow
b86b989507 Convert providers to MobX stores 2021-10-01 00:08:19 -04:00