Commit Graph

30 Commits (5a5835f561b3285a7940a7df901c70787740abf2)

Author SHA1 Message Date
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 429cc1abf1 Bump deps to pull in some bugfixes 2023-01-03 14:31:12 -06:00
Paul Frazee 9f27af6199 Add haptic feedback to likes and reposts 2022-12-14 15:46:21 -06:00
Paul Frazee 4966b2152e Add post embeds (images and external links) 2022-12-14 15:35:15 -06:00
Paul Frazee 588aface7c Add build version to menu 2022-12-06 12:40:40 -06:00
Paul Frazee 70cfae56e2 Add missing usage descriptions for ios 2022-12-06 10:08:27 -06:00
João Ferreiro 67c4dcff37 Upload image in composer (#27)
* upload images in composer v1

* fix android compile

* reafctor image carousel into new component;
fix photo overlapping text in composer

* revert android changes

* further refactoring code into different components

* move show carousel out of the component

* fixing add photo using camera

* fix typescript issue; force mediatype photo

* change post test with photo attached;
remove auto linking settings

* use runInAction in getPhotos model

* react-hooks/exhaustive-deps fixes

* crop every photo;
make use of useCallback

* moving placeholder condition

* Cleanup

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2022-12-02 10:41:01 -06:00
Paul Frazee 810fcf9910 Remove webcrypto polyfill, as it's no longer needed 2022-11-23 15:04:44 -06:00
Paul Frazee d09bf31431 Disable landscape orientation in iPhones 2022-11-23 13:34:45 -06:00
Paul Frazee ed146a582c Add web linking and proper share controls 2022-11-21 16:07:26 -06:00
Paul Frazee 0b7b91d5fd Fix sizing on smaller phones 2022-11-16 14:05:21 -06:00
Paul Frazee 51c9a51f8c Change appid to xyz.blueskyweb.app 2022-11-14 13:13:08 -06:00
Paul Frazee d228a5f4f5 Add onboarding (WIP) 2022-11-07 15:35:51 -06:00
Paul Frazee dd146957e6 Set ios app icon 2022-11-05 14:55:41 -05:00
Paul Frazee 541717d467 Add splash screen to ios 2022-11-05 14:52:44 -05:00
Paul Frazee 2377431901 Rename to bsky.app 2022-11-05 13:56:22 -05:00
Paul Frazee ef4b9cf8d9 Add account creation 2022-09-27 14:24:47 -05:00
Paul Frazee aabde2b401 Replace mock-api with real api 2022-09-22 19:28:25 -05:00
Paul Frazee b3b2cfe909 Add composer FAB to home page 2022-08-31 20:09:58 -05:00
Paul Frazee af55a89758 Add share bottom-sheet to feed and thread 2022-07-25 18:31:42 -05:00
Paul Frazee e78143b3dc Add icons 2022-07-19 16:04:45 -05:00
Paul Frazee a56cae626a Move the secure-random code into this project due to build issues with the module, which is no longer maintained 2022-06-15 22:08:28 -05:00
Paul Frazee 77b938845a Polyfills for native crypto 2022-06-15 17:40:18 -05:00
Paul Frazee b2dd8d4f44 Open login flow in in-app browser for native (WIP) 2022-06-14 20:29:24 -05:00
Paul Frazee fee5317022 iOS: Remove flipper and add workarounds for m1 simulator builds 2022-06-14 19:05:34 -05:00
Paul Frazee 09b78a4634 Add custom protocol deep links 2022-06-13 22:12:43 -05:00
Paul Frazee 012af05ab8 Add universal links (iOS) 2022-06-13 20:52:40 -05:00
Paul Frazee fc3b2952bb Add routes and core views 2022-06-09 16:32:03 -05:00
Paul Frazee efe65e70d7 Add basic react-navigator usage 2022-06-07 18:56:31 -05:00
Paul Frazee 47250e7ed7 Initial commit 2022-06-07 17:50:05 -05:00