Commit Graph

562 Commits (d6ec627c8cd32836e5ed494606318959ca17fca1)

Author SHA1 Message Date
Paul Frazee ebc2033d18 Handle post deletions by removing from active views (close #37) 2023-01-18 16:45:48 -06:00
Paul Frazee ace0e6bfd9 Fix image compression (close #41) 2023-01-18 14:54:55 -06:00
Paul Frazee 1898d5dbaa Keep the composer image selector open after choosing an image 2023-01-18 14:47:59 -06:00
Paul Frazee d0364c09ad Hackfix around 'images too large' issue 2023-01-18 14:47:42 -06:00
Paul Frazee bf03167ca6 Update compose prompt for isual balance and to include image button 2023-01-18 13:57:53 -06:00
Paul Frazee 9d6c4698a1 Lighten the button gradients a bit 2023-01-18 13:30:50 -06:00
Paul Frazee c97045a21a Fix to text consistency in composer 2023-01-18 13:22:34 -06:00
Paul Frazee 726ff6bb01 Focus the text input on tap during the composer 2023-01-18 13:21:23 -06:00
Paul Frazee 302acaccb6 Remove all links from post meta to ensure taps are more consistent 2023-01-18 13:10:08 -06:00
Paul Frazee 6a01e0529b Prettier profile headers (no standard header) 2023-01-18 12:56:53 -06:00
Paul Frazee 990c824648 Move the grays from a red undertone to blue 2023-01-18 12:40:51 -06:00
Paul Frazee a51354e6e6 Update gradients to use a more consistent blue theme 2023-01-18 12:32:48 -06:00
Paul Frazee 77580ab6a4 Rework all typography 2023-01-18 11:15:40 -06:00
Paul Frazee df4acbd683 Merge branch 'improved-lightbox' into main 2023-01-17 21:18:25 -06:00
Paul Frazee 7328e80825 Fix an issue that caused the shelf menu to show up at random 2023-01-17 21:01:52 -06:00
Paul Frazee 80e035cede Remove leftover code 2023-01-17 20:47:43 -06:00
Paul Frazee 065d7ef629 Improve lightbox... and update to React Native 0.71.0 (#49)
* Switch to a better lightbox implementation (close #42)

* Upgrade to react-native 0.71.0

* Update (or remove low-value) tests
2023-01-17 20:40:02 -06:00
Paul Frazee a13f9bf091 Upgrade to react-native 0.71.0 2023-01-17 20:21:11 -06:00
Paul Frazee b449ab842f Switch to a better lightbox implementation (close #42) 2023-01-17 19:34:12 -06:00
Paul Frazee 61682d5846 Add images to the post in the right order 2023-01-17 18:35:48 -06:00
Paul Frazee bccc8a64d0 Give a more sensible default crop in the post image picker (related #39) 2023-01-17 18:35:37 -06:00
Paul Frazee fb334b1b3f Add profile menuitem to main menu (close #47) 2023-01-17 16:55:43 -06:00
Paul Frazee 5da45cd8cd Fix to extraneous home feed polling 2023-01-17 16:49:11 -06:00
Paul Frazee 41337f6d17 Visual improvements to post embeds for external links 2023-01-17 16:42:32 -06:00
Paul Frazee 90ac2fe1fc Group together notifications more aggressively 2023-01-17 16:25:10 -06:00
Paul Frazee 5a5835f561 Fix left-alignment on notifications 2023-01-17 16:22:34 -06:00
Paul Frazee 40d769e854 Increase the profile bio line-count cutoff significantly to only catch very silly newline abuse (close #48) 2023-01-17 16:18:41 -06:00
Paul Frazee c80c63cda5 More adjustments to the repost icon 2023-01-17 13:25:04 -06:00
Paul Frazee 65fef125ce Enlarge repost icon arrows 2023-01-17 13:21:11 -06:00
Paul Frazee e3e2831d11 Rework repost icon to match line widths 2023-01-17 13:17:38 -06:00
Paul Frazee 798622b307 Refer to upvotes as 'likes' in the UI (will change in the protocol soon) 2023-01-17 12:35:47 -06:00
Paul Frazee ee8d311795 Fix notification descriptions and render images for your own posts in notifs 2023-01-17 12:12:17 -06:00
Paul Frazee b9778b7943 Lighten post controls a little in light-mode and add them to the theme 2023-01-17 11:20:07 -06:00
Paul Frazee b574607466 Lighten borders slightly 2023-01-17 11:14:47 -06:00
Paul Frazee 050df83db7 Fix an issue that caused the feed to rearrange on loadmore 2023-01-17 10:58:51 -06:00
Paul Frazee e5ec07b919 Remove duplicate posts caused by reposts 2023-01-17 10:45:37 -06:00
Paul Frazee e11d53b67d Add loading spinners to lightbox views (close #38) 2023-01-17 10:40:09 -06:00
Paul Frazee 4e312d1d24 Shrink the header back down but use bolder title text 2023-01-17 10:32:40 -06:00
Paul Frazee bf1092ad86 Remove scenes (#36)
* Remove scenes from the main menu

* Remove scenes from the profile view

* Remove 'scenes explainer' from onboarding flow

* Remove scene-related modals

* Remove member/membership code

* Remove all scenes-related items from notifications

* Remove scene-related code from posts feed

* Remove scene-related API helpers

* Update tests
2023-01-17 10:11:30 -06:00
João Ferreiro 5abcc8e336 Unit Testing (#35)
* add testing lib

* remove coverage folder from git

* finished basic test setup

* fix tests typescript and import paths

* add first snapshot

* testing utils

* rename test files; update script flags; ++tests

* testing utils functions

* testing downloadAndResize wip

* remove download test

* specify unwanted coverage paths;
remove update snapshots flag

* fix strings tests

* testing downloadAndResize method

* increasing testing

* fixing snapshots wip

* fixed shell mobile snapshot

* adding snapshots for the screens

* fix onboard snapshot

* fix typescript issues

* fix TabsSelector snapshot

* Account for testing device's locale in ago() tests

* Remove platform detection on regex

* mocking store state wip

* mocking store state

* increasing test coverage

* increasing test coverage

* increasing test coverage on src/screens

* src/screens (except for profile) above 80% cov

* testing profile screen wip

* increase coverage on Menu and TabsSelector

* mocking profile ui state wip

* mocking profile ui state wip

* fixing mobileshell tests wip

* snapshots using testing-library

* fixing profile tests wip

* removing mobile shell tests

* src/view/com tests wip

* remove unnecessary patch-package

* fixed profile test error

* clear mocks after every test

* fix base mocked store values (getters)

* fix base mocked store values
(hasLoaded, nonReplyFeed)

* profile screen above 80% coverage

* testing custom hooks

* improving composer coverage

* fix tests after merge

* finishing composer coverage

* improving src/com/discover coverage

* improve src/view/com/login coverage
fix SuggestedFollows tests
adding some comments

* fix SuggestedFollows tests

* improve src/view/com/profile coverage
extra minor fixes

* improve src/view/com/notifications coverage

* update coverage ignore patterns

* rename errorMessageTryAgainButton
increase SuggestedFollows converage

* improve src/view/com/posts coverage

* improve src/view/com/onboard coverage

* update snapshot

* improve src/view/com/post coverage

* improve src/view/com/post-thread coverage
rename ErrorMessage tests
test Debug and Log components

* init testing state

* testing root-store

* updating comments

* small fixes

* removed extra console logs

* improve src/state/models coverage
refactor rootStore
rename some spies

* adding cleanup method after tests

* improve src/state/models coverage

* improve src/state/models coverage

* improve src/state/models coverage

* improve src/state/models coverage

* test setInterval in setupState

* Clean up tests and update Home screen state management

* Remove some tests we dont need

* Remove snapshot tests

* Remove any tests that dont demonstrate clear value

* Cleanup

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-01-17 10:06:00 -06:00
Paul Frazee 11c861d2d3 Remove the avi from the compose prompt 2023-01-16 17:37:18 -06:00
Paul Frazee dac9bc24d1 Enlarge the view header 2023-01-16 17:21:35 -06:00
Paul Frazee 46a8dbdee1 Dark mode color fixes 2023-01-16 17:11:15 -06:00
Paul Frazee 00b7189d5d Readd the FAB for composing new posts 2023-01-16 17:07:33 -06:00
Paul Frazee f7d7c78611 Round the corners on single-image embeds a bit more 2023-01-16 16:58:30 -06:00
Paul Frazee 158945bbf6 More spacing and sizing tweaks, including larger post controls 2023-01-16 16:54:35 -06:00
Paul Frazee 1a69235cf0 Enlarge post text slightly 2023-01-16 16:42:07 -06:00
Paul Frazee 0c9ffd99d8 More spacing fixes, especially for the repost info 2023-01-16 16:34:52 -06:00
Paul Frazee 6d4431b777 Spacing fixes 2023-01-16 16:30:05 -06:00
Paul Frazee c659f0ef9f Fix visual consistency of 'reply to' in post and use display name 2023-01-16 16:24:16 -06:00
Paul Frazee e5e31e5fe2 Fix missing metrics in post threads 2023-01-16 16:22:24 -06:00
Paul Frazee 7f8f53b087 Move menu controls into post footers and improve meta info rendering 2023-01-16 16:09:51 -06:00
Paul Frazee 1b5c347667 Fix: remove duplicates in the TL caused by rendering reply parents 2023-01-16 14:49:58 -06:00
Paul Frazee 29020fbcee Fix image compression for avis and banner images 2023-01-12 15:07:32 -06:00
Paul Frazee 7215da135b Add scrolling to menu 2023-01-03 14:35:33 -06:00
Paul Frazee 429cc1abf1 Bump deps to pull in some bugfixes 2023-01-03 14:31:12 -06:00
Paul Frazee 87a824429c Indicate images in notifications 2023-01-03 13:14:10 -06:00
Paul Frazee b9b0965000 Implement validation and proper type detection 2023-01-03 13:08:56 -06:00
Paul Frazee 1acef14a1c Improve handling around connection failures during login 2023-01-03 12:17:07 -06:00
Paul Frazee 06de0129af Add 'is 13' checkbox to account creation 2023-01-03 11:49:40 -06:00
Paul Frazee 147b85c7fb Fix to feed update 2023-01-03 11:26:51 -06:00
Paul Frazee 42d7dc1c6c Fix session hydration during load 2023-01-03 11:08:39 -06:00
Paul Frazee 08d38c219d Fix bug in error handling 2023-01-03 11:08:29 -06:00
Paul Frazee d262393992 Introduce error boundaries around all screens 2023-01-02 21:49:14 -06:00
Paul Frazee 4eabc2d65a Improve error logging 2023-01-02 21:39:15 -06:00
Paul Frazee 6885fb2b41 Bump api@0.0.5 and use the type guard helpers 2023-01-02 20:56:35 -06:00
Paul Frazee f6a0e634d7 Implement logging system 2023-01-02 17:38:13 -06:00
Paul Frazee 99cec71ed7 Dont mute posts for a user when viewing their profile 2023-01-02 13:45:27 -06:00
Paul Frazee 8cd2b4a721 Implement account muting 2023-01-02 13:40:14 -06:00
Paul Frazee 3972706c54 Fix to loading state 2022-12-30 15:58:28 -06:00
Paul Frazee 8f59957fab Fix the status bar coloring 2022-12-30 15:56:54 -06:00
Paul Frazee a90fd5d26f Add dark mode toggle 2022-12-30 15:48:34 -06:00
Paul Frazee 53267d755b Integrate composer into design system 2022-12-30 15:42:09 -06:00
Paul Frazee 5eddbcea16 Various small fixes 2022-12-30 15:32:07 -06:00
Paul Frazee 3d91cf3137 Integrate search into suggested follows 2022-12-30 15:21:09 -06:00
Paul Frazee a7a310a06b Dont autofocus the search input 2022-12-30 15:12:36 -06:00
Paul Frazee 62c6da3b9f Integrate settings into design system and some various fixes/tweaks 2022-12-30 15:11:47 -06:00
Paul Frazee d952c550ea Integrate menu into design system 2022-12-30 15:08:10 -06:00
Paul Frazee 58a591f314 Integrate notifications into the design system 2022-12-30 13:34:10 -06:00
Paul Frazee 9084e0e4a8 Integrate profile listings into design system 2022-12-30 13:20:55 -06:00
Paul Frazee 10f613475a Update profile header to use design system 2022-12-30 13:13:10 -06:00
Paul Frazee 5e07b5bbc3 Integrate the shell into the design system 2022-12-30 12:49:07 -06:00
Paul Frazee efaf8a54b8 Integrate ViewSelector into design system 2022-12-30 12:40:16 -06:00
Paul Frazee b47714fb11 Integrate composer prompt into design system 2022-12-30 12:35:37 -06:00
Paul Frazee 434d874598 Integrate ViewHeader into the design system 2022-12-30 12:29:11 -06:00
Paul Frazee 55ca7dcce1 Update threads to use design system 2022-12-30 12:19:45 -06:00
Paul Frazee 55500e2f66 Improve image layout 2022-12-30 11:55:25 -06:00
Paul Frazee f609794bd2 Tune post controls 2022-12-28 19:37:30 -06:00
Paul Frazee 607203134e Update posts in feed to use the theming system 2022-12-28 19:20:02 -06:00
Paul Frazee 8f55e3149e Update notifications 2022-12-28 15:53:06 -06:00
Paul Frazee 23e7ae49d4 Tighten up spacing and dividers 2022-12-28 15:50:28 -06:00
Paul Frazee 84e74d5ee4 Fix letter spacing 2022-12-28 15:08:14 -06:00
Paul Frazee 7e31645e9a Add a design system (#34)
* Add theming system

* Add standard Button control and update RadioButtons

* Unify radiobutton with design system

* Update debug screen to have multiple views

* Add ToggleButton

* Update error controls to use design system

* Add typography to <Text> element

* Move DropdownButton into the design system

* Clean out old code

* Move Text into design system

* Add 'inverted' color palette

* Move LoadingPlaceholder into the design system
2022-12-28 14:06:01 -06:00
Paul Frazee cc63660982 Increase image resolutions 2022-12-26 17:41:12 -06:00
Paul Frazee 838fc601c1 Start with highest quality compression and find a suitable size (#33) 2022-12-26 12:01:40 -06:00
João Ferreiro 7517b65dcd Unit testing (#32)
* add testing lib

* remove coverage folder from git

* finished basic test setup

* fix tests typescript and import paths

* add first snapshot

* testing utils

* rename test files; update script flags; ++tests

* testing utils functions

* testing downloadAndResize wip

* remove download test

* specify unwanted coverage paths;
remove update snapshots flag

* fix strings tests

* testing downloadAndResize method

* increasing testing

* fixing snapshots wip

* fixed shell mobile snapshot

* adding snapshots for the screens

* fix onboard snapshot

* fix typescript issues

* fix TabsSelector snapshot

* Account for testing device's locale in ago() tests

* Remove platform detection on regex

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2022-12-22 09:32:39 -06:00
Paul Frazee 4913a07e33 Unvendor the api and switch to @atproto/api 2022-12-22 09:17:07 -06:00
Paul Frazee 7f4a54ff0d Fix issue which caused parent posts to fail at mobx reactivity 2022-12-21 14:37:22 -06:00
Paul Frazee e7d971410f Update to use new getTimeline, getAuthorFeed, and getPostThread output models 2022-12-20 22:54:56 -06:00
Paul Frazee 4f3bf401da Replace removed hasIndexes behavior 2022-12-20 16:32:04 -06:00