From 5da8724a7b8b88f96388a3121b7425643484927a Mon Sep 17 00:00:00 2001 From: Mohamad Tarbin Date: Sun, 2 Aug 2026 23:16:23 -0400 Subject: [PATCH] Update release script to add --upload-only option and adjust build conditions; enhance ChoreCard styles for better layout (#188) --- scripts/release.sh | 37 +++++++++++++++++++++------------- src/views/Chores/ChoreCard.jsx | 6 ++++++ 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 21a6a2a..5e62813 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -8,11 +8,12 @@ PLATFORM="both" BUMP="patch" SKIP_BUMP=false UPLOAD=false +UPLOAD_ONLY=false ANDROID_TRACK="internal" usage() { cat <&2; usage; exit 1 ;; @@ -51,17 +54,19 @@ if [ -f "$REPO_ROOT/.env.production" ]; then set +a fi -if [ "$SKIP_BUMP" = false ]; then - echo "→ Bumping version ($BUMP)" - node bump-version.js "$BUMP" +if [ "$UPLOAD_ONLY" = false ]; then + if [ "$SKIP_BUMP" = false ]; then + echo "→ Bumping version ($BUMP)" + node bump-version.js "$BUMP" + fi + + echo "→ Building web assets" + npm run build + + echo "→ Syncing Capacitor" + npx cap sync fi -echo "→ Building web assets" -npm run build - -echo "→ Syncing Capacitor" -npx cap sync - if [ -f Gemfile ] && command -v bundle >/dev/null 2>&1; then RUN="bundle exec fastlane" else @@ -69,8 +74,10 @@ else fi if [ "$PLATFORM" = "android" ] || [ "$PLATFORM" = "both" ]; then - echo "→ Building signed Android release (.aab)" - $RUN android release + if [ "$UPLOAD_ONLY" = false ]; then + echo "→ Building signed Android release (.aab)" + $RUN android release + fi if [ "$UPLOAD" = true ]; then echo "→ Uploading Android release to Play Store ($ANDROID_TRACK track)" @@ -79,8 +86,10 @@ if [ "$PLATFORM" = "android" ] || [ "$PLATFORM" = "both" ]; then fi if [ "$PLATFORM" = "ios" ] || [ "$PLATFORM" = "both" ]; then - echo "→ Building signed iOS release (.ipa)" - $RUN ios release + if [ "$UPLOAD_ONLY" = false ]; then + echo "→ Building signed iOS release (.ipa)" + $RUN ios release + fi if [ "$UPLOAD" = true ]; then echo "→ Uploading iOS release to TestFlight" diff --git a/src/views/Chores/ChoreCard.jsx b/src/views/Chores/ChoreCard.jsx index 263eba8..930de70 100644 --- a/src/views/Chores/ChoreCard.jsx +++ b/src/views/Chores/ChoreCard.jsx @@ -400,8 +400,10 @@ const ChoreCard = ({ }} sx={{ borderRadius: '50%', + width: 50, minWidth: 50, height: 50, + flexShrink: 0, zIndex: 1, transition: 'all 0.2s ease', '&:hover': { @@ -449,8 +451,10 @@ const ChoreCard = ({ disabled={true} sx={{ borderRadius: '50%', + width: 50, minWidth: 50, height: 50, + flexShrink: 0, zIndex: 1, opacity: 0.5, }} @@ -481,8 +485,10 @@ const ChoreCard = ({ disabled={notInCompletionWindow(chore)} sx={{ borderRadius: '50%', + width: 50, minWidth: 50, height: 50, + flexShrink: 0, zIndex: 1, transition: 'all 0.2s ease', '&:hover': {