Commit Graph

496 Commits

Author SHA1 Message Date
krawieck d43ddd6c4f Set default instead of null coalescing 2020-09-29 21:00:50 +02:00
shilangyu 2724103e23 wrap in safearea 2020-09-29 15:00:50 +02:00
shilangyu 126128d320 corrected variable name 2020-09-29 15:00:13 +02:00
krawieck 5a858142b5 lint fixes
* convert import to relative
* convert `() {}` to `=>`
2020-09-29 12:24:52 +02:00
krawieck fe90119826 remove unneeded abstraction 2020-09-29 11:13:17 +02:00
krawieck e4b0441a36 convert to `SortableInfiniteList` 2020-09-29 11:11:43 +02:00
krawieck aefcf50fd1 add infinite comment list 2020-09-29 10:53:40 +02:00
krawieck c5040ce1fa fix import 2020-09-29 10:27:36 +02:00
krawieck eae8a3849a add brightness so that status bar icons have the right color 2020-09-29 00:59:19 +02:00
krawieck 6eb748194f implement infinite list for communities 2020-09-29 00:57:25 +02:00
krawieck 82a739b203 add infinite post list to instance page 2020-09-28 22:41:40 +02:00
krawieck 1d7a5fbf0a change default badge border radius 2020-09-28 22:35:48 +02:00
krawieck 175248e06e moved infinite post list to a separate widget 2020-09-28 22:12:40 +02:00
shilangyu d5a49e9e4c removed unused variable 2020-09-28 20:58:43 +02:00
Marcin Wojnarowski 4083742574
Merge branch 'master' into post-creation 2020-09-28 20:33:28 +02:00
shilangyu cb47607b2b add spacing to form fields 2020-09-28 20:28:16 +02:00
shilangyu bc736eb6aa replace route instead of pushing 2020-09-28 20:28:06 +02:00
krawieck b93d9efc1d implement infinite list for posts 2020-09-28 20:05:07 +02:00
krawieck 93f1be94a0 add todo 2020-09-28 19:49:18 +02:00
shilangyu 37a3d95b06 add a really horrible all instances dropdown 2020-09-27 22:51:06 +02:00
shilangyu cb2cc99546 show only logged in instances 2020-09-26 12:43:34 +02:00
Marcin Wojnarowski 1079431b33
Merge pull request #55 from krawieck/account-management-pages
Convert add instance and account dialogs to pages
2020-09-24 16:52:23 +02:00
krawieck c2f30665ec make disposal non-manual 2020-09-24 16:26:24 +02:00
krawieck a825a57840 add docstring 2020-09-24 15:50:52 +02:00
krawieck f746ed9479 make speed dial work with any theme 2020-09-24 15:48:05 +02:00
krawieck 121f4a424c support for actual urls 2020-09-24 15:38:54 +02:00
krawieck 6c8251b7aa fix debounce sideeffect to dispose debounce 2020-09-24 15:01:20 +02:00
krawieck 0be75b48da remove useless bool returns 2020-09-23 23:39:41 +02:00
krawieck f43910ddbe swap yes and no placements 2020-09-23 23:37:26 +02:00
krawieck 461cc56693 remove now useless loading variables that were replaced by debounce 2020-09-23 23:35:58 +02:00
krawieck 1fb221a034 conert listener to utilize `useEffect` 2020-09-23 23:31:34 +02:00
krawieck ff0c2829f6 correct url that is getting launched 2020-09-23 23:27:57 +02:00
krawieck 7a3ce4f0df remove useless generic 2020-09-23 23:23:38 +02:00
krawieck 6cfdc14c4c Remove `cancel` buttons, cuz they're wack 2020-09-23 23:21:41 +02:00
krawieck 7be73a48ce use effect hook instead of memoized and inside ontap 2020-09-23 23:20:16 +02:00
krawieck da80f8d789 add lint ignore comment to catch 2020-09-23 18:03:47 +02:00
krawieck 740905b902 add buttom for adding instance if no instance is added 2020-09-23 15:27:52 +02:00
shilangyu 65d5bcb824 created form fields for post creation 2020-09-22 23:50:18 +02:00
krawieck 57d4a8a27b Add speed dial for adding accounts and instances 2020-09-22 13:22:45 +02:00
krawieck 94c373a08b add todo comment 2020-09-22 01:21:03 +02:00
krawieck 330ca983e4 change wording: delete to remove 2020-09-22 01:05:20 +02:00
krawieck c1254b4426 make the button spamming-resistant 2020-09-22 01:00:31 +02:00
krawieck dfb372552b tiny tweaks and fixes
* use delayed loading hook instead of boolean variable
* fix pretty significant bug where adding account
  didn't take selected instance into account
* move navigator.pop() to the inside of try closure so
  that it doesn't pop when errors happen
2020-09-22 00:58:52 +02:00
krawieck 216049f23c add assumeValid param 2020-09-22 00:42:10 +02:00
krawieck 847ccfe887 remove catch with no `on` clause 2020-09-22 00:42:01 +02:00
krawieck 22fa916fbf Add `flutter_slidable` and use it for deleting accounts and instances 2020-09-22 00:34:45 +02:00
krawieck 377db0908b add error widget just in case 2020-09-21 23:49:46 +02:00
krawieck 13ee72e814 early return from debounce if input didn't change 2020-09-21 23:49:20 +02:00
krawieck 521cf3fbd0 remove useless comment 2020-09-21 23:17:55 +02:00
krawieck 2996c8e5ef make spinner smaller and of more visible color 2020-09-21 23:17:33 +02:00
krawieck 2c89534e2d add keys to scaffolds so that snackbars work properly 2020-09-21 23:15:45 +02:00
shilangyu 377ad99fb5 limit commenting to logged in users 2020-09-21 20:19:14 +02:00
shilangyu 910e214f48 use cupertino modal popups 2020-09-21 20:18:57 +02:00
shilangyu 5409cde5d0 commenting on a post now works 2020-09-21 13:30:47 +02:00
krawieck 40c36c99cd rework debounce hook to be more friendly 2020-09-21 01:00:38 +02:00
krawieck 5177f93131 implement debounce for adding instances 2020-09-20 20:09:41 +02:00
krawieck f180c9d688 make spinner a bit smaller 2020-09-20 01:09:09 +02:00
krawieck 8f03b695ab remove img 2020-09-20 01:04:00 +02:00
krawieck 02ea560cc4 remove useless comments 2020-09-20 01:02:06 +02:00
krawieck 18556b5db4 Add instance logo in add account page 2020-09-20 00:15:36 +02:00
krawieck 6f94679eed redesign add account and add instance pages 2020-09-19 23:19:49 +02:00
krawieck f27ebf0da9 add option to long press to delete instance 2020-09-19 20:15:42 +02:00
krawieck 5b4107aee0 Convert add instance and account dialogs to pages 2020-09-19 01:34:04 +02:00
Marcin Wojnarowski aa5b06a676
Merge branch 'master' into infinite-scroll 2020-09-19 00:42:47 +02:00
shilangyu dea66fe8bf hotfix: move api_extensions to dedicated folder 2020-09-19 00:40:47 +02:00
krawieck 059cfd491c use `loggedInAction` hook in Community page 2020-09-18 15:57:45 +02:00
krawieck 700112e20b Add save post button 2020-09-17 22:50:18 +02:00
krawieck 5b014bd2c0 remove useless comment 2020-09-17 18:40:13 +02:00
krawieck 689bb79414 convert import to relatvie 2020-09-17 18:38:03 +02:00
krawieck c8c91c1ada Use token for post request 2020-09-17 18:37:27 +02:00
krawieck c83d92f79d Convert to using `useMemoFuture` 2020-09-17 18:34:03 +02:00
shilangyu a08a7c5b93 fix linting issues 2020-09-17 00:24:49 +02:00
shilangyu 08af8e5997 cleanup some TODOs 2020-09-16 23:29:14 +02:00
shilangyu 0540be3ede activate prefer_final_locals lint rule 2020-09-16 23:22:04 +02:00
shilangyu c6b03c3aef added hook for stores 2020-09-16 23:15:42 +02:00
shilangyu d3eee1e837 replace route pages with cupertino ones 2020-09-16 22:53:04 +02:00
Filip Krawczyk fc52ce91a8
Merge pull request #41 from krawieck/community-sub-button 2020-09-16 22:14:35 +02:00
krawieck 6af2349867 import cleanup 2020-09-16 22:09:11 +02:00
shilangyu a2b5a0a6f2 properly handling null in AccountsStore (removed tokenOrNull) 2020-09-16 21:51:08 +02:00
Filip Krawczyk ee097ef386
Merge pull request #39 from krawieck/communities-tab 2020-09-16 01:34:10 +02:00
shilangyu 0352586f97 changed border radius 2020-09-16 01:28:40 +02:00
shilangyu 6625fe4da3 created useDelayedLoading 2020-09-16 01:27:49 +02:00
krawieck 689dbff41e add a todo 2020-09-16 01:23:57 +02:00
shilangyu 9d49dedcdb handle fetch failure 2020-09-16 00:40:19 +02:00
shilangyu 65f71eef1a replace full text match with fuzzy match + sort according to best match 2020-09-16 00:26:36 +02:00
krawieck 288aa52a66 Add trailing comma to make formatting less disturbing 2020-09-15 23:52:15 +02:00
krawieck e977305a0e remove useless check. also fix an error 2020-09-15 23:46:55 +02:00
shilangyu 896337bf2f added some TODOs, moved a big handle out of UI, fix typo 2020-09-15 23:44:21 +02:00
krawieck 6310ed988b fix import mess 2020-09-15 16:20:03 +02:00
krawieck 024a2ce981 remove `Dismissible` and instead use `GestureDetector` for dismissal 2020-09-15 16:03:52 +02:00
krawieck e553089032 refactor to use useMemoized and make subscribe button functional 2020-09-15 15:25:07 +02:00
shilangyu d68e9188ae moved extensions and hooks to separate folders 2020-09-15 15:14:24 +02:00
shilangyu b74e3e5491 capitalized filter 2020-09-15 00:23:52 +02:00
shilangyu 93177c0072 make the input smaller 2020-09-15 00:09:02 +02:00
shilangyu 6df9060a72 loading animation after 500ms 2020-09-14 23:58:59 +02:00
shilangyu 6dac4ac72c sort communities and toggle instances 2020-09-14 23:54:47 +02:00
krawieck f3176128c5 add `return null` to stfu the linter 2020-09-13 21:15:20 +02:00
krawieck c89ad2833a Make `useEffect` actually work 2020-09-13 18:16:53 +02:00
krawieck 2e23148532 move ui showing/hiding logic to `useEffect` 2020-09-13 16:48:40 +02:00
krawieck 1e0fcf9c67 Fill errorWidget field on every cached network image, cuz otherwise they would break the app 2020-09-13 16:05:17 +02:00
Filip Krawczyk 8e9b1e17e4
Merge branch 'master' into media-view 2020-09-12 23:13:52 +02:00
krawieck 383d194f51 Add missing type annotation 2020-09-12 17:03:00 +02:00
krawieck 77d54016f3 Change `urlLanucher` signature to include `instanceUrl` 2020-09-12 09:30:22 +02:00
krawieck 704daca4c7 Add support for a number of pages
Linking to those pages is now supported:
* `CommunityPage` (https://lemmy.instance/c/community_name)
* `UserPage` (https://lemmy.instance/u/username)
* `FullPostPage` (https://lemmy.instance/)
2020-09-12 00:26:54 +02:00
krawieck e735f065e1 make instance banner fullscreenable 2020-09-11 21:18:45 +02:00
krawieck 4cc1bd56b0 Make banner fullscreenable 2020-09-11 20:43:00 +02:00
krawieck 0f8a846e8a Make images in community, instance, markdown fullscreenable 2020-09-11 20:38:50 +02:00
krawieck 689b4c41cc Move media_view to pages, cuz it has a scaffold 2020-09-11 19:20:00 +02:00
shilangyu 2238e3303b added lacking iconbuttons 2020-09-10 23:35:14 +02:00
shilangyu f14c8730e2 added filter 2020-09-10 23:19:44 +02:00
krawieck 36534becf4 don't be engwy liter-senpai 2020-09-10 15:35:06 +02:00
krawieck 446b2ca598 remove modifying system chrome 2020-09-10 15:30:06 +02:00
krawieck 53f5570666 Remove unneeded context passing 2020-09-10 15:18:24 +02:00
krawieck 4ca8e96e97 use `useEffect` instead of just plainly changing systemChrome 2020-09-10 15:16:45 +02:00
krawieck 71272af69c Adjust brightness so that status bar sets itself to the right color 2020-09-09 22:15:39 +02:00
krawieck 11e6c4881b add more menu 2020-09-09 22:04:50 +02:00
krawieck 0bd0efa320 Add more menu 2020-09-09 21:23:48 +02:00
shilangyu 0b9c478e34 added vertical trail 2020-09-09 20:47:34 +02:00
shilangyu 09270c43f4 correctly handling missing icons 2020-09-09 19:25:12 +02:00
krawieck bb789b3ac9 Cleanup and a addition of couple comments 2020-09-09 19:23:41 +02:00
shilangyu ac1d22a611 connected following/unfollowing 2020-09-09 19:22:20 +02:00
shilangyu dbce173239 changed name of the subscribe toggle 2020-09-09 18:53:24 +02:00
shilangyu 260854386d added basic render of communities tab 2020-09-09 18:51:48 +02:00
krawieck 1162fb1cd7 Create universal functions for going to common pages 2020-09-09 17:41:54 +02:00
Marcin Wojnarowski 0fa880fdbc
Merge pull request #33 from krawieck/instance-page 2020-09-09 11:38:13 +02:00
krawieck 232cd32cf0 Add image error handling 2020-09-09 11:32:34 +02:00
krawieck d1cb84ba29 Properly handle empty usernames 2020-09-09 11:19:12 +02:00
krawieck 1fe1562ef2 Remove useless comment 2020-09-09 11:18:01 +02:00
krawieck d9d726b350 Remove unnecessary string interpolation 2020-09-09 11:12:43 +02:00
krawieck 3abd5875ee Remove "rencently banned" list. leave a button to it instead 2020-09-09 11:09:38 +02:00
krawieck b59022b001 Fix copy-paste artifacts 2020-09-09 11:05:39 +02:00
krawieck 77d010d15c Add "nerd stuff" section to `...` menu that just spits out random info about this instance 2020-09-09 01:22:07 +02:00
Filip Krawczyk 8bd4218dd3
Merge pull request #31 from krawieck/user-profile-page 2020-09-08 23:23:28 +02:00
krawieck 2e6c1dba4d Last minute tweaks 2020-09-08 23:16:30 +02:00
krawieck 865ec24db6 All hail the linter 2020-09-08 23:10:40 +02:00
krawieck 34cd4ff1c1 Add communities list page 2020-09-08 23:01:40 +02:00
shilangyu 50870ccd08 handling non-existant users 2020-09-08 22:56:45 +02:00
krawieck e3ef1fab2d Add share functionality, triple dot menu with 1 item
the 1 item is "open in browser"
2020-09-08 22:33:11 +02:00
shilangyu 6449929030 handling anonymous users in profile tab 2020-09-08 21:45:17 +02:00
shilangyu 62beee4d5c exporting Accounts and Appearance pages 2020-09-08 21:44:27 +02:00
krawieck 9e0011f528 Make one title match all others 2020-09-08 21:20:29 +02:00
krawieck 2c20779387 Make share button actualy do something 2020-09-08 21:18:17 +02:00
shilangyu bd20931235 changed icon to email 2020-09-08 21:17:17 +02:00
shilangyu d9a7ce9773 created user page 2020-09-08 21:08:50 +02:00
krawieck ef1ae9cdd9 Add UsersListPage and button for going to page with all banned users 2020-09-08 20:24:36 +02:00
krawieck d333f15fad Convert all inline function to methods 2020-09-08 19:52:09 +02:00
krawieck 7a140fca6f Add recently banned section and modlog tile 2020-09-08 19:44:04 +02:00
krawieck 8c5def182d Add admin section 2020-09-08 19:14:05 +02:00
krawieck c38fc3f7a0 Add trending communities section 2020-09-08 18:57:48 +02:00
Filip Krawczyk 05287f7ef6
Merge pull request #28 from krawieck/amoled-dark-mode 2020-09-08 16:49:03 +02:00
shilangyu 94daf2acc6 moved out logic from UI 2020-09-08 16:41:46 +02:00
shilangyu 8eb31434e2 used expression functions where possible 2020-09-08 16:38:59 +02:00
shilangyu 81b10cf3e3 removed unnecessary dividers 2020-09-08 16:37:58 +02:00
shilangyu 94ff01bc55 moved cancel buttons before add buttons 2020-09-08 16:35:54 +02:00
shilangyu ffa484d895 capitalized amoled 2020-09-08 10:24:47 +02:00
shilangyu caff01130b added amoled dark mode 2020-09-08 10:23:08 +02:00
shilangyu c08e07311a you can now add accounts/instances 2020-09-08 01:27:02 +02:00
shilangyu 1dee2e21f5 added adding instances 2020-09-08 00:34:09 +02:00
krawieck 45e42ac322 Convert functions with immidiate returns to expressions
change () { return X; }
    to () => X
2020-09-07 23:13:05 +02:00
krawieck 4deafcb29f Instead of passing to `_AboutTab` hardcode functions
the hardcoded functions are:
* `goToUser`
* `goToModLog`
* `goToCategories`
2020-09-07 23:09:53 +02:00
krawieck c2dedb14ac Make 3 constructors for `CommunityPage` instead of 2
instead of single default constructor using name of the
community, there are now 2 where first takes community
name, and second which takes the id
2020-09-07 21:57:43 +02:00
krawieck f00c02b631 Fix misuse of `assert` 2020-09-07 21:47:33 +02:00
krawieck e7380b4914 Move constructors above methods 2020-09-07 21:42:04 +02:00
krawieck c53cd047b7 Add InstancePage
* top section finished
* about section partially done
2020-09-07 21:29:07 +02:00
krawieck 29e40887fb Tiny visual tweaks 2020-09-07 16:24:09 +02:00
krawieck 86f203ae55 Change flat buttons to outline buttons 2020-09-07 16:23:53 +02:00
krawieck 48a0851e06 Make buttons more round (and stylish ) 2020-09-06 00:39:38 +02:00
krawieck 51100c297c Bump `lemmy_api_client` 2020-09-06 00:20:08 +02:00
krawieck af3787740c Adjust padding on badges 2020-09-06 00:08:50 +02:00
krawieck e3dc2d1e14 Rename `_AboutSection` to `_AboutTab` 2020-09-06 00:03:52 +02:00
krawieck ff827e6126 Add category, modlog, list of mods, and refine other stuff 2020-09-05 19:27:11 +02:00
krawieck be49e93b28 Add about section with description and badges 2020-09-05 18:17:09 +02:00
krawieck 88d796def7 Create `CommunityPage` and create everything above tabs 2020-09-05 17:13:23 +02:00
krawieck 67b8ad3730 Remove unnecessary piece of code 2020-09-03 23:18:48 +02:00
krawieck 73a079bfca Change section heading 2020-09-03 23:14:26 +02:00
krawieck b704502c7d Convert `Columns` to `ListView`s where appropriate 2020-09-03 22:20:32 +02:00
krawieck d8234a671a Replace icon shadow with black gradient top to bottom 2020-09-03 22:10:22 +02:00
krawieck df36d0c06c Make username on top of the screen look like other appbar titles 2020-09-03 22:08:32 +02:00
krawieck 2ccf2d953e Merge branch 'master' into full-post 2020-09-03 14:41:30 +02:00
krawieck a4ff7b5336 Change `Settings` to `SettingsPage` 2020-09-03 14:33:17 +02:00
krawieck 869bb0eccc remove useless import 2020-09-03 14:00:06 +02:00
krawieck e309c165d3 Change `fullPostFuture` to `fullPostSnap` and simplify error handling 2020-09-03 13:56:37 +02:00
krawieck d49715fb64 Revert "Add `Page` suffix to `Settings`"
This reverts commit b5277064a3.
2020-09-03 13:43:51 +02:00
krawieck b5277064a3 Add `Page` suffix to `Settings` 2020-09-03 13:06:10 +02:00
krawieck 31e51c424f Move burden of fetching to full_post 2020-09-03 13:02:38 +02:00
shilangyu 706bf94502 accounts screen in settings:
- you can see your accounts
- you can choose the default one for the instance with a long press
2020-09-02 01:35:30 +02:00
krawieck 82f2084b60 Add FullPost and implement a fair bit of it 2020-09-02 00:05:42 +02:00
shilangyu da107a7ad7 remove accentColor config 2020-09-01 22:05:33 +02:00
shilangyu 708a680ddc showing modal for choosing default account 2020-09-01 21:36:58 +02:00
shilangyu 2b3fc87f88 created accounts store 2020-09-01 13:22:37 +02:00
shilangyu 5808ab17a3 restructure user profile to work in both contexts:
- profile tab
- some user profile
2020-09-01 11:55:22 +02:00
shilangyu 3be7d518ea clean up some TODOs 2020-08-31 21:04:17 +02:00
shilangyu f4bd1eb65b added settings screen 2020-08-31 16:17:39 +02:00
shilangyu 8b738bf5e5 moved user profile to a widget 2020-08-31 12:05:45 +02:00
shilangyu dd06b79efa implemented rest of the main screen mockup 2020-08-31 03:54:24 +02:00
shilangyu b7b5661f45 basic profile tab 2020-08-31 01:04:08 +02:00