Commit Graph

124 Commits

Author SHA1 Message Date
Ichitux 5b75321406 fix(mobile): lock viewport, disable iOS bounce, fix 100vh reflow
Build & Push Docker Images / test-backend (push) Successful in 20s
Build & Push Docker Images / test-frontend (push) Successful in 22s
Build & Push Docker Images / build-backend (push) Successful in 17s
Build & Push Docker Images / build-frontend (push) Successful in 27s
Root cause: html/body had no height/overflow constraint, so the
webview allowed rubber-band overscroll. .app used min-height: 100vh
which on iOS resolves to the larger viewport (behind URL bar), causing
layout to reflow when the bar collapses.

- index.css: html/body locked to 100% height, overflow hidden,
  overscroll-behavior none; #root set to exact 100dvh
- App.css: .app height: 100dvh (was min-height: 100vh) with
  overflow-y: auto + overscroll-behavior: contain so the .app
  becomes the scroll container
- capacitor.config.json: ios.bounces false, contentInset never

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-27 13:16:44 +02:00
Ichitux 803eaab134 ci(bitrise): split deploy by tag prefix and add iOS code-signing step
Build & Push Docker Images / test-backend (push) Successful in 21s
Build & Push Docker Images / test-frontend (push) Successful in 23s
Build & Push Docker Images / build-backend (push) Successful in 17s
Build & Push Docker Images / build-frontend (push) Successful in 15s
- Tag triggers split: ios-v* -> deploy_ios, android-v* -> deploy_android.
  The blanket tag: "*" trigger that ran both platforms on every tag is gone.
- Add certificate-and-profile-installer@1 before xcode-archive@4 in
  deploy_ios and combined deploy. Reads Bitrise's auto-injected
  BITRISE_IOS_CODE_SIGNING_* env vars; no-op if not configured.
- Harden test_ios simulator destination to generic/platform=iOS Simulator
  (was iPhone 15, OS=latest, which breaks when the runner ships a
  different Xcode).
- Enable swift build cache on xcode-archive steps.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-27 11:12:21 +02:00
Ichitux 0f2933586f fix(ios): bump deployment target to 15.5 for GoogleMLKit/BarcodeScanning
Build & Push Docker Images / test-backend (push) Successful in 21s
Build & Push Docker Images / test-frontend (push) Successful in 22s
Build & Push Docker Images / build-backend (push) Successful in 16s
Build & Push Docker Images / build-frontend (push) Successful in 16s
GoogleMLKit/BarcodeScanning ~> 8.0.0 requires iOS 15.5 (per the Sept 2024
ML Kit release notes). pod install failed with "Specs satisfying the
dependency were found, but they required a higher minimum deployment
target" when the app was set to 15.0.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-27 11:07:07 +02:00
Ichitux ef5d33a595 fix(ios): align deployment target to 15.0 and link mlkit barcode pod
Build & Push Docker Images / test-backend (push) Successful in 21s
Build & Push Docker Images / test-frontend (push) Successful in 22s
Build & Push Docker Images / build-backend (push) Successful in 17s
Build & Push Docker Images / build-frontend (push) Successful in 17s
- All four IPHONEOS_DEPLOYMENT_TARGET entries in project.pbxproj bumped
  from 13.0 to 15.0 to match Podfile's 'platform :ios, 15.0' and
  Capacitor 8's minimum. Mismatched target caused Swift compile errors
  for iOS-15-only APIs in linked pods.
- Add CapacitorMlkitBarcodeScanning pod to Podfile and the package to
  root package.json (already in frontend/package.json). Without this,
  cap sync never linked the pod and the build failed with
  'No such module CapacitorMLKitBarcodeScanning'.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-27 10:55:13 +02:00
Antoni Nuñez Romeu c0b3b1fc94 Scanner view
Build & Push Docker Images / test-backend (push) Successful in 21s
Build & Push Docker Images / test-frontend (push) Successful in 24s
Build & Push Docker Images / build-backend (push) Successful in 18s
Build & Push Docker Images / build-frontend (push) Successful in 26s
2026-06-26 23:28:01 +02:00
Antoni Nuñez Romeu 1aad9761d1 fix: suppress CocoaPods master specs repo warning in iOS build
Build & Push Docker Images / test-frontend (push) Has been cancelled
Build & Push Docker Images / build-backend (push) Has been cancelled
Build & Push Docker Images / build-frontend (push) Has been cancelled
Build & Push Docker Images / test-backend (push) Has been cancelled
2026-06-26 23:27:37 +02:00
Antoni Nuñez Romeu 2c1b3cfca6 Documentos + Homepage rediseñada
Build & Push Docker Images / test-backend (push) Successful in 24s
Build & Push Docker Images / test-frontend (push) Successful in 23s
Build & Push Docker Images / build-backend (push) Successful in 2m22s
Build & Push Docker Images / build-frontend (push) Successful in 57s
2026-06-26 16:59:20 +02:00
Antoni Nuñez Romeu 14e9c16310 Fixed html body
Build & Push Docker Images / test-backend (push) Successful in 1m10s
Build & Push Docker Images / test-frontend (push) Successful in 1m3s
Build & Push Docker Images / build-backend (push) Successful in 1m6s
Build & Push Docker Images / build-frontend (push) Successful in 1m51s
2026-06-05 23:08:05 +02:00
Ichitux 2048a695f1 Frontend fix
Build & Push Docker Images / test-backend (push) Successful in 1m17s
Build & Push Docker Images / test-frontend (push) Successful in 1m6s
Build & Push Docker Images / build-backend (push) Successful in 1m6s
Build & Push Docker Images / build-frontend (push) Successful in 1m17s
2026-05-26 20:18:14 +02:00
Ichitux 54cd44b666 Fix building
Build & Push Docker Images / test-backend (push) Successful in 48s
Build & Push Docker Images / test-frontend (push) Successful in 56s
Build & Push Docker Images / build-backend (push) Successful in 1m3s
Build & Push Docker Images / build-frontend (push) Successful in 2m23s
2026-05-26 19:33:38 +02:00
Ichitux c3f0f3c35c Add iOS & Android build + frontend fixes for desktop
Build & Push Docker Images / test-backend (push) Successful in 53s
Build & Push Docker Images / test-frontend (push) Successful in 58s
Build & Push Docker Images / build-backend (push) Successful in 1m4s
Build & Push Docker Images / build-frontend (push) Failing after 56s
2026-05-26 19:12:31 +02:00
Antoni Nuñez Romeu 53f81eeb01 Hotfix workflows
Build & Push Docker Images / test-backend (push) Successful in 47s
Build & Push Docker Images / test-frontend (push) Successful in 58s
Build & Push Docker Images / build-backend (push) Successful in 1m32s
Build & Push Docker Images / build-frontend (push) Successful in 58s
2026-05-25 18:00:28 +02:00
Antoni Nuñez Romeu 31b3eb21b4 feat(auth): migrate user store from SQLite to PostgreSQL
Build & Push Docker Images / test-backend (push) Successful in 44s
Build & Push Docker Images / test-frontend (push) Successful in 53s
Build & Push Docker Images / build-backend (push) Failing after 50s
Build & Push Docker Images / build-frontend (push) Successful in 54s
Users were wiped on container recreation because they shared the
backend_data volume with ephemeral pharmacy/medicine data. Postgres
gets its own named volume (postgres_data) that survives deploys.

- Add postgres:16-alpine service + postgres_data volume to compose
- Add pg + connect-pg-simple deps
- userDbGet/userDbRun helpers: PG when PG_URL set, SQLite fallback
- Sessions use connect-pg-simple when pgPool available
- create-admin.js: PG-aware, SQLite fallback for local dev
- push_subscriptions.user_id: plain INTEGER (cross-DB FK dropped)
- Tests unchanged — no PG_URL in test env = SQLite fallback

Set PG_PASSWORD in server .env before next deploy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 17:50:34 +02:00
Antoni Nuñez Romeu 34733c121c fix: include API/ in backend Docker image
Build & Push Docker Images / test-backend (push) Successful in 49s
Build & Push Docker Images / test-frontend (push) Successful in 58s
Build & Push Docker Images / build-backend (push) Failing after 1m7s
Build & Push Docker Images / build-frontend (push) Successful in 1m13s
Build context was ./backend so API/ was never copied into the image.
server.js imports ../API/index.js which resolves to /API/index.js at runtime.
Expand build context to project root and explicitly copy API/ to /API/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 16:09:06 +02:00
Antoni Nuñez Romeu 3dc2c4c9f2 fix front dockerfile
Build & Push Docker Images / test-backend (push) Successful in 43s
Build & Push Docker Images / test-frontend (push) Successful in 52s
Build & Push Docker Images / build-backend (push) Successful in 57s
Build & Push Docker Images / build-frontend (push) Successful in 2m18s
2026-05-21 16:39:11 +02:00
Antoni Nuñez Romeu 58ba68e0e1 cicd fix
Build & Push Docker Images / test-backend (push) Successful in 45s
Build & Push Docker Images / test-frontend (push) Successful in 1m0s
Build & Push Docker Images / build-backend (push) Successful in 1m56s
Build & Push Docker Images / build-frontend (push) Failing after 1m54s
2026-05-21 15:55:51 +02:00
Ichitux 2eff93e66a More changes than expected. Mobile version improvements & PWA
Build & Push Docker Images / test-backend (push) Successful in 44s
Build & Push Docker Images / test-frontend (push) Successful in 52s
Build & Push Docker Images / build-backend (push) Failing after 34s
Build & Push Docker Images / build-frontend (push) Failing after 30s
2026-05-20 22:28:17 +02:00
Antoni Nuñez Romeu 7b288d33cb Remove tests, doing in one
Build & Push Docker Images / test-backend (push) Successful in 45s
Build & Push Docker Images / test-frontend (push) Successful in 41s
Build & Push Docker Images / build-backend (push) Failing after 27s
Build & Push Docker Images / build-frontend (push) Failing after 23s
2026-05-19 18:28:31 +02:00
Antoni Nuñez Romeu a1e52aa910 Plan.md for later
Build & Push Docker Images / test-backend (push) Successful in 42s
Build & Push Docker Images / build-frontend (push) Has been cancelled
Build & Push Docker Images / test-frontend (push) Has been cancelled
Run Tests / test-frontend (push) Has been cancelled
Run Tests / test-backend (push) Has been cancelled
Build & Push Docker Images / build-backend (push) Has been cancelled
2026-05-19 18:27:16 +02:00
Antoni Nuñez Romeu cc9a24d6d6 Plan Done, Dockerization and cleanup
Build & Push Docker Images / test-backend (push) Successful in 55s
Build & Push Docker Images / test-frontend (push) Successful in 43s
Run Tests / test-backend (push) Successful in 48s
Run Tests / test-frontend (push) Successful in 42s
Build & Push Docker Images / build-backend (push) Failing after 4m7s
Build & Push Docker Images / build-frontend (push) Failing after 32s
2026-05-19 18:16:28 +02:00
Ichitux 93ec8e6a6c Enable test cases for both apps
Run Tests / test-backend (push) Successful in 40s
Run Tests / test-frontend (push) Successful in 37s
2026-04-01 01:58:43 +02:00
Ichitux b5d1cb12bf Add tests in workflow
Run Tests / test-backend (push) Failing after 48s
Run Tests / test-frontend (push) Failing after 24s
2026-04-01 01:24:17 +02:00
Ichitux 0fe8ec9bc0 API, Backend & Frontend 2026-04-01 01:18:21 +02:00
Ichitux 331c04fbef first commit 2026-04-01 01:17:33 +02:00