Commit Graph

22 Commits

Author SHA1 Message Date
Christian Krakau-Louis 6fc00b8de1 fix: resolve dependabot npm alerts 2026-05-23 02:37:54 +02:00
copilot-swe-agent[bot] 2f3c22000c restore(mobile): restore mobile/ directory to pre-d2217531 state
Restored mobile/ from d22175310a711e7ebdd8062ae29a54f0136dc3f6^
(parent commit d94e9ca4bc).

Commit d22175310a (google-labs-jules[bot], 2026-03-23T14:45:22Z) introduced
an SSRF security fix for IMAP connections but unintentionally deleted or
truncated a large number of files across the repository, including 24 files
under mobile/.

This commit targets only the mobile/ directory and restores the following
files to their pre-d2217531 state:

- mobile/README.md
- mobile/app.json
- mobile/app/(tabs)/_layout.tsx
- mobile/app/(tabs)/file-detail.tsx  (re-added)
- mobile/app/+not-found.tsx          (re-added)
- mobile/app/_layout.tsx
- mobile/eslint.config.js            (re-added)
- mobile/package-lock.json
- mobile/package.json
- mobile/src/context/ShareContext.tsx
- mobile/src/i18n/de.json            (re-added)
- mobile/src/i18n/en.json            (re-added)
- mobile/src/i18n/es.json            (re-added)
- mobile/src/i18n/fr.json            (re-added)
- mobile/src/i18n/index.ts           (re-added)
- mobile/src/i18n/it.json            (re-added)
- mobile/src/screens/FileDetailScreen.tsx (re-added)
- mobile/src/screens/FilesScreen.tsx
- mobile/src/screens/LoginScreen.tsx
- mobile/src/screens/ProfileScreen.tsx
- mobile/src/screens/UploadScreen.tsx
- mobile/src/screens/WelcomeScreen.tsx
- mobile/src/services/api.ts
- mobile/src/utils/mimeTypes.ts      (re-added)
- mobile/src/utils/normalizeUri.ts   (re-added)

Security fixes introduced by d2217531 that are unrelated to mobile/
(IMAP SSRF fix in app/utils/network.py and app/tasks/imap_tasks.py)
are preserved — this restore targets only files under mobile/.
2026-03-24 12:14:14 +00:00
google-labs-jules[bot] d22175310a 🛡️ Sentinel: [HIGH] Fix Server-Side Request Forgery in IMAP connections
🚨 Severity: HIGH
💡 Vulnerability: User-provided IMAP `host` in `_test_imap_connection` and `pull_inbox` was not validated against private IPs, creating an SSRF risk.
🎯 Impact: Attackers could abuse the endpoints to port-scan or interact with internal/private network services.
🔧 Fix: Integrated `is_private_ip` from `app.utils.network` to block connections resolving to private, loopback, link-local, or reserved IPs.
 Verification: Ran `test_imap_tasks.py` and `test_api_imap_accounts.py` successfully. Checked `ruff` output and diffs. Removed all scratch files from the commit.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-23 14:45:22 +00:00
copilot-swe-agent[bot] 0e6a4c5084 chore(mobile): upgrade ESLint to v9 with flat config and fix expo-localization version
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-20 08:12:05 +00:00
copilot-swe-agent[bot] 78c3717661 fix(mobile): update expo-localization version from ~16.0.6 to ~16.1.0
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-20 07:57:45 +00:00
copilot-swe-agent[bot] 67c17e7baa feat(mobile): add pre-login legal pages, multi-image selection, file detail view, search, i18n, HEIC support
- Add Privacy Policy, Terms of Service, and Imprint links to WelcomeScreen
  and LoginScreen for GDPR/Apple compliance (pre-login access)
- Enable multiple image selection in photo library picker
- Add HEIC/HEIF image support to backend (allowed_types, convert_to_pdf, upload handler)
- Create FileDetailScreen with processing status and logs
- Add search bar to FilesScreen with debounced search
- Set up i18n with expo-localization (EN, DE, ES, FR, IT)
- Add language selector to ProfileScreen settings
- Add Imprint link to ProfileScreen legal section
- Update docs and tests

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-19 19:11:44 +00:00
copilot-swe-agent[bot] 04c6823079 fix(mobile): rename notification sound for Android, add LSSupportsOpeningDocumentsInPlace, update deps
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-16 16:21:06 +00:00
copilot-swe-agent[bot] 073627884c fix(mobile): align React version with react-native-renderer to fix version mismatch crash
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-15 16:28:36 +00:00
copilot-swe-agent[bot] 82d90b48e2 fix(mobile): correct asset logo path depth and add expo-router app/ routes for web support
- Fix fatal crash: require('../../../assets/logo.png') in LoginScreen and
  WelcomeScreen resolved 3 levels above mobile/src/screens/ — outside the
  mobile/ directory. Changed to ../../assets/logo.png which correctly
  resolves to the existing mobile/assets/logo.png.
- Add expo-router app/ directory (root cause of missing welcome screen and
  web support): app/_layout.tsx, (auth)/, (tabs)/ with all route files
- Add WelcomeScreen.tsx: branded intro screen with feature highlights
- Update LoginScreen/WelcomeScreen to use useRouter() (expo-router style)
- Add react-native-web ~0.20.0 and react-dom 19.2.4 for web channel
- Add expo-device ~7.0.3 (was imported but missing from package.json)
- Remove android.googleServicesFile from app.json (file is gitignored;
  README documents how to restore it for Android FCM builds)
- Add web.bundler: metro and web.output: single to app.json
- Fix aria-hidden to explicit boolean value in WelcomeScreen

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-15 16:02:02 +00:00
copilot-swe-agent[bot] b4b50e8340 fix(mobile): update Node.js minimum requirement to 20.19.4
metro-config@0.83.3 uses Array.prototype.toReversed() which was added
in Node.js 20.0.0. The README incorrectly stated "Node.js 18+" causing
users to run `npx expo start` with Node 18 and hit:
  TypeError: configs.toReversed is not a function

- Update README.md to say "Node.js 20.19.4+" with nvm hint
- Update package.json engines from >=20.16.0 to >=20.19.4 to match
  metro-config's exact minimum (as declared in package-lock.json)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-15 15:34:12 +00:00
copilot-swe-agent[bot] f983b20a8f fix(mobile): fix iOS TurboModule crash and npm install peer dep conflict
- UploadScreen.tsx: replace deprecated ImagePicker.MediaTypeOptions.Images
  with new array syntax ['images'] — the old enum is not accepted by the
  expo-image-picker v17 TurboModule on iOS, causing SIGABRT on Thread 2
- package.json: bump react 19.1.0 → 19.2.4 so react-dom@19.2.4 (peerOptional
  of @expo/metro-runtime) no longer conflicts; update @types/react to ~19.2.0
- package-lock.json: update react entry to 19.2.4 (integrity removed, will be
  regenerated by npm install on the next EAS build)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-15 13:53:27 +00:00
Christian Krakau-Louis d352324f58 Merge pull request #672 from christianlouis/copilot/debug-build-archive-error
fix(mobile): resolve iOS build failures caused by Expo SDK 54 precompiled XCFrameworks
2026-03-15 11:10:31 +01:00
copilot-swe-agent[bot] 3372a93f71 fix(mobile): resolve iOS build errors by enabling buildReactNativeFromSource for Expo SDK 54
Expo SDK 54 switched to precompiled React Native XCFrameworks by default
for faster iOS builds. However, the precompiled frameworks do not expose
legacy bridge headers (RCTBridge, RCTViewManager, RCTSurfaceHostingProxyRootView,
RCTPackagerConnection, RCTDevSettings.isDebuggingRemotely, rootViewFactory)
that some native modules (e.g. expo-dev-client) still reference.

Add expo-build-properties (v1.0.10, the SDK 54-compatible version) and
configure buildReactNativeFromSource: true for iOS. This compiles React
Native from source, making all native headers available to linked modules
and resolving the Xcode compilation errors seen in the EAS production build.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 22:50:29 +00:00
copilot-swe-agent[bot] f6e955acce fix(mobile): fix expo doctor dependency version mismatches for SDK 54
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 20:45:03 +00:00
copilot-swe-agent[bot] 3bf9589462 fix(mobile): resolve EAS CI build failures – wrap app.json, update deps, pin Xcode image
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 15:02:08 +00:00
copilot-swe-agent[bot] 8653247e44 fix(mobile): update react to 19.2.4 and add package-lock.json to fix npm ERESOLVE build failure
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 14:32:18 +00:00
copilot-swe-agent[bot] 4c6596b561 fix(mobile): bump Node to 20.19.4 and fix react-navigation peer dependency
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 14:06:52 +00:00
copilot-swe-agent[bot] 6834f3ef1b fix(mobile): add expo-dev-client, pin Node version, and fix EAS build config
- Add expo-dev-client ~5.0.0 to dependencies (required for developmentClient:true profile)
- Add node: 18.19.1 to all EAS build profiles (matches .nvmrc, silences version warning)
- Add appVersionSource: local to cli section in eas.json (silences future-required warning)
- Add ITSAppUsesNonExemptEncryption: false to ios.infoPlist in app.json (eliminates App Store Connect manual config warning)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 13:51:50 +00:00
copilot-swe-agent[bot] f148785079 fix(mobile): upgrade Expo SDK from 51 to 54 and fix EAS project ID
- Update mobile/app.json: replace YOUR_EAS_PROJECT_ID placeholder with
  the real EAS project ID (8455f39d-ef0d-4850-98e4-f79e388642c1)
- Update mobile/package.json: upgrade all dependencies to Expo SDK 54
  compatible versions (react 19.1.0, react-native 0.81.5, expo ~54.0.0,
  all expo-* packages, react-navigation v6 → v7, @types/react ~19.1.10)
- Update mobile/README.md: remove outdated eas init step, document that
  the EAS project ID is already configured and explain when to update it

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 13:28:01 +00:00
copilot-swe-agent[bot] fb5d494e42 fix(mobile): relax Node.js engine constraint to >=18.0.0
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 13:05:02 +00:00
copilot-swe-agent[bot] 8717538967 fix(mobile): fix EAS build Node.js version incompatibility for iOS and Android
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 12:28:06 +00:00
copilot-swe-agent[bot] d538c0879d feat(mobile): add iOS/Android mobile app with SSO login, camera upload, and push notifications
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-10 09:52:02 +00:00