This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
gitgram-ai/gitgram/mobile/package.json
caelum0x ca5c909077 fix(mobile): wire data-export button to real API, matching web fix 842be56e
The mobile GDPR export screen (app/backup/export.tsx) called
backupService.exportData -> POST /compliance/export-data, an endpoint that
never existed on the backend and always 404'd silently (same bug class as
the web buttons fixed in 842be56e).

Added requestDataExport/getDataExportStatus to backupService.ts and a new
utils/dataExportFlow.ts (mirroring web/utils/dataExportFlow.ts) that drives
the real async pipeline at /api/v1/data-export (request -> poll status ->
download), confirmed live via backend/src/routes/dataExport.ts. Downloads
the ready file to local storage with expo-file-system (already a
dependency) and hands it to expo-sharing (newly added; no suitable
dependency for file sharing already existed) so the user can save or share
it via the OS share sheet.

Collapsed the screen's fake JSON/CSV format picker to the one format the
backend actually produces (JSON) and surfaces every failure (request,
poll timeout, download, share) as a visible alert instead of failing
silently. Added unit tests for the service calls and the export flow, plus
a screen-level test for the button wiring and error paths.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-21 03:15:07 +03:00

83 lines
2.6 KiB
JSON

{
"name": "mobile",
"version": "1.0.0",
"main": "index.ts",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchman=false",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix"
},
"dependencies": {
"@expo/vector-icons": "^15.1.1",
"@octokit/rest": "^22.0.1",
"@react-native-async-storage/async-storage": "^2.2.0",
"@react-native-community/datetimepicker": "^8.0.1",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-picker/picker": "^2.11.4",
"@react-navigation/bottom-tabs": "^7.8.6",
"@react-navigation/drawer": "^7.7.4",
"@react-navigation/native": "^7.1.21",
"@react-navigation/native-stack": "^7.7.0",
"axios": "^1.13.2",
"buffer": "^6.0.3",
"date-fns": "^4.1.0",
"expo": "~54.0.25",
"expo-av": "^16.0.7",
"expo-camera": "^17.0.9",
"expo-clipboard": "^8.0.8",
"expo-constants": "^18.0.10",
"expo-device": "^8.0.9",
"expo-document-picker": "^14.0.7",
"expo-file-system": "^19.0.21",
"expo-haptics": "~15.0.8",
"expo-image": "^3.0.10",
"expo-image-manipulator": "^14.0.7",
"expo-image-picker": "^17.0.8",
"expo-linking": "~8.0.9",
"expo-location": "^19.0.7",
"expo-media-library": "^18.2.0",
"expo-notifications": "^0.32.13",
"expo-router": "^6.0.15",
"expo-sharing": "~14.0.8",
"expo-status-bar": "~3.0.8",
"expo-video": "^3.0.14",
"expo-web-browser": "^15.0.9",
"react": "19.1.0",
"react-native": "0.81.5",
"react-native-elements": "^3.4.3",
"react-native-gesture-handler": "^2.29.1",
"react-native-image-viewing": "^0.2.2",
"react-native-maps": "^1.26.18",
"react-native-safe-area-context": "^5.6.2",
"react-native-screens": "^4.18.0",
"react-native-svg": "^15.15.5",
"react-native-vector-icons": "^10.3.0",
"socket.io-client": "^4.8.1",
"zustand": "^5.0.8"
},
"devDependencies": {
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^13.3.3",
"@types/react": "~19.1.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint-config-expo": "^10.0.0",
"eslint-config-prettier": "^10.1.8",
"jest": "^30.2.0",
"jest-expo": "^54.0.13",
"prettier": "^3.6.2",
"typescript": "~5.9.2"
},
"overrides": {
"@tootallnate/once": "^3.0.1",
"postcss": "^8.5.10"
},
"private": true
}