Commit Graph

64 Commits

Author SHA1 Message Date
8a1e1b982a Show both date and time by default 2023-11-21 19:14:53 +13:00
086e3ea2df Simplify the peek view of exercises from Plan 2023-11-15 16:03:58 +13:00
ec17ad5805 Wrap SetItem in React.memo
Apparently large lists in React Native should be wrapped in this,
as long as they don't have any internal state.

So this should theoretically improve performance when you scroll down
a lot.
2023-11-15 11:30:09 +13:00
859818e5b6 Change layout of SetItem
Moved the date to the description,
and the reps x weight to the right.

Related to #192.
2023-11-14 20:44:54 +13:00
8ee07823aa Replace useDark with useTheme - 1.185 🚀 2023-11-14 14:52:35 +13:00
ef63fcf470 Organize all imports 2023-11-12 17:05:37 +13:00
43ab666540 Make it easier to read old sets on ViewSetList - 1.168 🚀
Now sets alternate background color based on the day
they were entered.
2023-11-06 15:29:23 +13:00
54596a5fc3 Add special screen for viewing sets from plan 2023-10-28 16:10:52 +13:00
e8ee4a253e Migrate from Drawer -> Stacks to Stack -> Drawer
This simplifies our codebase greatly by
only having a single stack navigator and
a single drawer navigator. Previously we had
a stack navigator for every main page on the drawer.
2023-10-28 15:59:25 +13:00
dc5434991a Pause adding multi-edit to workouts
Got up to the point where i'm find/replacing the
old names with new names, and I got confused
about the purpose of this feature.
2023-08-14 13:14:34 +12:00
f778426aba Run prettier
Something happened with the deno formatter,
I can't remember what! Hahahahahaahahaha
2023-08-12 15:23:02 +12:00
36d3de401b Fix a few instances of react/no-unstable-nested-components 2023-07-17 18:38:28 +12:00
1b2cbab370 Simplify SetItem
It had a pointless react fragment
wrapping it's only element.
2023-07-07 13:41:48 +12:00
4303fe2cc4 Use deno fmt instead of prettier 2023-06-27 15:16:59 +12:00
a1440b680f Fix ripple color for dark theme 2022-12-15 16:43:00 +13:00
2e347deb53 Add ability to edit/delete multiple sets/plans 2022-12-13 22:54:37 +13:00
55e0a9f75e Fix homepage error with default date format 2022-12-08 13:05:09 +13:00
c51bfbd852 Use date-fns and detect 12/24 hour device setting
Related to #116
2022-11-12 14:38:39 +13:00
b6616a551a Add logging to set item removal 2022-11-03 21:58:49 +13:00
31f1528c35 Replace settings context with theme context
The settings context was having a big performance
impact on the app. We only truly need the theme + color
to be a global context.
2022-11-01 16:50:03 +13:00
bc7aca03e8 Remove semicolons from line endings 2022-10-31 17:22:08 +13:00
b7f1c2192e Pause converting to typeorm due to odd error
ERROR  TypeError: Cannot read property 'getItem' of undefined

This error is located at:
    in FlatList (created by SetList)
    in RCTView (created by View)
    in View (created by Page)
    in Page (created by SetList)
    in SetList (created by SceneView)
...

I found an open issue on the react-native github which seems
related https://github.com/facebook/react-native/issues/31523
but after following all of their suggestions I still have the
same error. I tried:
- Removing @babel/plugin-proposal-class-properties & @babel/plugin-transform-flow-strip-types
- Adding @babel/plugin-transform-flow-strip-types
2022-10-31 13:20:36 +13:00
e6dcd4a47e Use hermes engine
https://reactnative.dev/docs/hermes
2022-10-28 18:36:47 +13:00
ac0af26f77 Add more date format options
Closes #94
2022-10-28 15:49:03 +13:00
d723bd9745 Make date color grey
Closes #93
2022-10-17 19:57:18 +13:00
636bfa35a4 Remove dates toggle from set item
This feature exists in the settings page,
so duplicating it here might be confusing to users.
2022-10-12 14:10:59 +13:00
3cbabb723a Add sessions page
Related to #82
2022-10-05 23:38:52 +13:00
b0b804eae1 Use react context for settings
Closes #81
2022-10-01 16:01:07 +13:00
9849ef6834 Fix icons on long press menus 2022-09-27 13:35:27 +13:00
4599da7c28 Delete Timer page
Maybe i'll try add this again if anyone wants it.
2022-09-27 11:58:49 +13:00
71d223f0a1 Add current workout progress to title of set editing
Related to #48

Should be thoroughly tested before closing.
2022-09-24 19:09:58 +12:00
39fafa353f Split out some type definitions into their own files 2022-09-24 18:47:31 +12:00
406d8e7738 Prevent blank workouts on new set
Closes #46
2022-09-24 15:33:45 +12:00
85dd2b6d17 Move rest timer and sets per session settings to Workouts
Closes #32
2022-09-21 11:50:20 +12:00
e3b3c6ca09 Split out database logic into service files 2022-09-04 16:56:46 +12:00
259d36d67f Move all database operations into db.ts 2022-09-04 15:28:21 +12:00
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
9006cc0dea Add script to organize all imports 2022-09-02 12:33:53 +12:00
6b617d974f Replace react-native imports of Text with react-native-paper 2022-09-01 23:43:53 +12:00
aac8bba4ec Only add Image tag to SetItem if an image exists 2022-09-01 13:05:58 +12:00
756a2089e9 Prevent race condition with database migrations 2022-08-30 23:21:25 +12:00
f5f2388ed2 Move images in home page to the left 2022-08-29 15:20:04 +12:00
f6dec0c3b2 Add images to sets 2022-08-28 20:55:12 +12:00
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
9e80df7865 Add toggle for showing dates in Set list 2022-08-08 15:34:33 +12:00
400718356c Default unit to kg in SetItem 2022-08-08 15:14:47 +12:00
0fd414c232 Remove date from right of item 2022-07-21 13:53:34 +12:00
bdd712833c Reduce number of colors in theme 2022-07-15 18:06:33 +12:00
f2283669f8 Close menu on copy 2022-07-11 13:03:57 +12:00
e72cdc8db7 Make plans use stack navigation 2022-07-11 12:28:30 +12:00