Commit Graph

29 Commits

Author SHA1 Message Date
Brandon Presley 259d36d67f Move all database operations into db.ts 2022-09-04 15:28:21 +12:00
Brandon Presley 607f83955d Replace react context with let statement in db.ts
1. I can't easily import context with my editor.
2. It's extra complexity everyone has to understand.
3. I hate the antichrist.
2022-09-04 14:05:25 +12:00
Brandon Presley 9006cc0dea Add script to organize all imports 2022-09-02 12:33:53 +12:00
Brandon Presley 6b617d974f Replace react-native imports of Text with react-native-paper 2022-09-01 23:43:53 +12:00
Brandon Presley aac8bba4ec Only add Image tag to SetItem if an image exists 2022-09-01 13:05:58 +12:00
Brandon Presley 756a2089e9 Prevent race condition with database migrations 2022-08-30 23:21:25 +12:00
Brandon Presley f5f2388ed2 Move images in home page to the left 2022-08-29 15:20:04 +12:00
Brandon Presley f6dec0c3b2 Add images to sets 2022-08-28 20:55:12 +12:00
Brandon Presley fd66bd3ab3 Remove date related logic
This kept displaying the wrong date/time for certain timezones.
So i'll just show the actual ISO date we store in the database.
Maybe later i'll figure out what was going on here or use a
date library (probably not).
2022-08-20 16:38:18 +12:00
Brandon Presley 9e80df7865 Add toggle for showing dates in Set list 2022-08-08 15:34:33 +12:00
Brandon Presley 400718356c Default unit to kg in SetItem 2022-08-08 15:14:47 +12:00
Brandon Presley 0fd414c232 Remove date from right of item 2022-07-21 13:53:34 +12:00
Brandon Presley bdd712833c Reduce number of colors in theme 2022-07-15 18:06:33 +12:00
Brandon Presley f2283669f8 Close menu on copy 2022-07-11 13:03:57 +12:00
Brandon Presley e72cdc8db7 Make plans use stack navigation 2022-07-11 12:28:30 +12:00
Brandon Presley 8311f5098c Fix linting errors 2022-07-11 00:06:48 +12:00
Brandon Presley f15c6df20b Use stack navigation for homepage + EditSet 2022-07-11 00:04:13 +12:00
Brandon Presley 5f840e6d83 Remember previous add set 2022-07-10 16:22:19 +12:00
Brandon Presley 7ff0e1c8de Fix copying homepage 2022-07-10 16:09:15 +12:00
Brandon Presley 4faad97c13 Add missing deps to callbacks 2022-07-10 11:54:23 +12:00
Brandon Presley cba57e6e64 Use callbacks everywhere 2022-07-10 11:51:52 +12:00
Brandon Presley 880fc976bc Fix all lint errors 2022-07-09 13:48:45 +12:00
Brandon Presley 60bfb9664f Fix copy button for set on homepage 2022-07-08 18:21:14 +12:00
Brandon Presley b12b41b77e Factor out MassiveFab 2022-07-08 14:59:19 +12:00
Brandon Presley 218a4e2b88 Remove ellipsis buttons from every Set
The home screen must be as clutter-free
as possible.
2022-07-08 14:34:32 +12:00
Brandon Presley 376ca81e09 Reduce amount of state used by EditSet and Home 2022-07-08 13:51:14 +12:00
Brandon Presley 1d68ba86f5 Remove useFocusEffect
It was lagging the app out.
2022-07-07 15:13:44 +12:00
Brandon Presley 570b43715f Ensure only one connection to SQLite exists 2022-07-07 14:18:38 +12:00
Brandon Presley c928da0122 Add delete dropdown to sets in homepage 2022-07-04 23:35:15 +12:00