Commit Graph

141 Commits

Author SHA1 Message Date
Austin Huang cd1b1d5da2
some profile viewmodel refactoring 2021-07-06 12:35:19 -04:00
Austin Huang 7522b5f083
finish up stories viewer UI
close #537, close #1554
2021-07-06 11:26:24 -04:00
Austin Huang bb5244665b
story viewmodel (wip)
hiding the storylist doesn't work yet but everything else should be good
2021-07-05 20:11:58 -04:00
Austin Huang a6b2031950
more efficient way to search subdirs 2021-06-30 17:44:48 -04:00
Austin Huang 19d3434dbf
convert stuff to kotlin 2021-06-29 22:43:17 -04:00
Austin Huang 4d9494cbcf
convert StoryModel to StoryMedia
close #1151, close #1208
2021-06-29 16:56:12 -04:00
Ammar Githam e23f72f4d1 Remove unused param 2021-06-30 00:46:07 +09:00
Ammar Githam 16f0a34f55 Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-06-30 00:43:30 +09:00
Ammar Githam 27d919e6b2 Migrate ProfileFragment to kotlin and use viewmodel 2021-06-30 00:21:10 +09:00
Austin Huang 7ead5046d9
convert HighlightModel usages (as archives) to Story 2021-06-29 11:07:01 -04:00
Austin Huang f7ce2eeea2
convert HighlightModel usages (as highlights) to Story 2021-06-29 11:04:43 -04:00
Austin Huang 817a16873c
convert FeedStoryModel to Story and Broadcast response data classes
there seems to be a toolbar problem with live stories, will check tomorrow
2021-06-28 22:34:02 -04:00
Austin Huang 3f6ed5f78b
sending dm media shares with exact child
https://t.me/barinsta_app/21890
2021-06-28 15:29:37 -04:00
Austin Huang 10447cd633
expand broadcasting rich message by 1 argument
for stories and post children
2021-06-28 14:20:12 -04:00
Austin Huang 786c567cca
allow replying to replies 2021-06-28 12:02:34 -04:00
Austin Huang 5e016e3210
close #1447 2021-06-26 15:30:20 -04:00
Austin Huang 3032a388f0
share profile (unfinished) 2021-06-24 13:01:23 -04:00
Ammar Githam 50c120eb75 Add user story and highlights fetch logic 2021-06-24 23:19:21 +09:00
Ammar Githam 63df44624e Add update favorite logic in ProfileFragmentViewModel and corresponding test 2021-06-24 20:41:48 +09:00
Ammar Githam edb03ba3d8 Update ProfileFragmentViewModel and tests 2021-06-24 20:12:37 +09:00
Ammar Githam 976c9a86b6 Update ProfileFragmentViewModel 2021-06-23 22:07:38 +09:00
Ammar Githam 1ebf7a2e4b Update ProfileFragmentViewModel 2021-06-23 20:52:45 +09:00
Austin Huang c2ac61986f
close #1362 2021-06-19 12:10:56 -04:00
Austin Huang f657f61aa7
proper self-profile handling when offline; close #1328 2021-06-18 20:00:42 -04:00
Austin Huang d76018596d
share profile by dm: preparation 2021-06-15 13:27:58 -04:00
Austin Huang b287f96415
made pr buildable (not functional) 2021-06-13 17:21:34 -04:00
Austin Huang f961c422ca
Merge branch 'master' into pr/934 2021-06-13 12:02:51 -04:00
Ammar Githam 70ffac3025 Add some ProfileFragmentViewModel logic and tests 2021-06-13 20:52:03 +09:00
Ammar Githam 1d9eb43442 Make currentUser in AppStateViewModel a Resource 2021-06-13 20:01:09 +09:00
Ammar Githam de9a1e06a9 Add FavoriteRepository to ProfileFragmentViewModel constructor 2021-06-12 13:22:49 +09:00
Ammar Githam 77868838b9 Update how FavoriteDataSource and FavoriteRepository get initialised 2021-06-12 13:19:25 +09:00
Ammar Githam 8253328788 Add AccountRepository to ProfileFragmentViewModel constructor 2021-06-12 13:04:55 +09:00
Ammar Githam dad2260ea2 Add GraphQLRepository to ProfileFragmentViewModel constructor 2021-06-12 12:43:15 +09:00
Ammar Githam 205e21b07c Move GraphQLService object to GraphQLRepository constructor parameter. 2021-06-12 12:39:55 +09:00
Ammar Githam 69b685ae0d Interchange GraphQLService and GraphQLRepository names. 2021-06-12 12:34:50 +09:00
Ammar Githam 2a0295e325 Add MediaRepository to ProfileFragmentViewModel constructor 2021-06-12 10:07:31 +09:00
Ammar Githam 58e0863de5 Move MediaService object to MediaRepository constructor parameter. 2021-06-12 10:03:21 +09:00
Ammar Githam b2cbc18dbb Interchange MediaService and MediaRepository names. 2021-06-12 09:53:38 +09:00
Ammar Githam 02cb1f5db5 Add StoriesRepository to ProfileFragmentViewModel constructor 2021-06-12 08:54:00 +09:00
Ammar Githam 4f8de4e7df Fix compile error 2021-06-12 08:42:12 +09:00
Austin Huang 8bb0fba4cb
close #1397 2021-06-11 12:24:25 -04:00
Ammar Githam 8f218b9515 Add FriendshipRepository to ProfileFragmentViewModel constructor 2021-06-10 17:03:24 +09:00
Ammar Githam ed8ca2da02 More groundwork for ProfileFragmentViewModel 2021-06-09 09:09:40 +09:00
Ammar Githam 29d2b894d8 Interchange UserService and UserRepository names. Check description.
As per the sample provided at https://github.com/android/architecture-components-samples/tree/main/GithubBrowserSample, the Retrofit interfaces should be named Services and the classes using the services are Repositories.

Once all are properly named, we can move the db repositories inside the repositories package.
2021-06-09 08:40:13 +09:00
Ammar Githam 003beec5b6 Convert RecentSearchDao, RecentSearchDataSource and RecentSearchRepository to kotlin 2021-06-08 21:15:27 +09:00
Austin Huang 544d9f87bc
fix various comments bugs
1. redo ChildCommentsFetchResponse structure, stress-tested
2. navigation on more graph again
3. proper "next page" handling
2021-06-07 18:10:48 -04:00
Ammar Githam 76b246573d Convert FavoriteDao, FavoriteDataSource and FavoriteRepository to kotlin 2021-06-07 06:54:12 +09:00
Ammar Githam 6b499e3dfc Migrate DirectMessagesService to object 2021-06-06 20:11:36 +09:00
Ammar Githam 143a0ce259 Convert GraphQLRepository and GraphQLService to kotlin 2021-06-06 13:14:29 +09:00
Ammar Githam a2bd2e4b53 Convert UserRepository and UserService to kotlin 2021-06-06 10:11:30 +09:00