Commit Graph

39 Commits

Author SHA1 Message Date
bb0d3c253a fix(ci): unblock melos run analyze + test on fusion-app
- Add !context.mounted/!mounted guards in control_panel_screen and
  location_map to clear use_build_context_synchronously info-level
  lints that were failing flutter analyze
- Wrap PrimaryButton's Text in Flexible so TextOverflow.ellipsis
  can truncate when width is constrained (Row was overflowing 44px
  with the "small" golden scenario)
- Regenerate primary_button and secondary_button goldens after the
  layout fix
- Remove empty boilerplate widget_test.dart from
  flutter_treezor_entrust_sdk_bridge/example (referenced an SDK with
  platform channels that crashed in vm test mode)
- Gitignore **/test/failures/ (transient diff artifacts written by
  flutter test when goldens fail)

Also dropped 10 empty test/ directories scaffolded by flutter create
that were failing melos run test with "Test directory does not
contain any test files": auth, dashboard_shell, home, legacy_auth,
notifications, profile, sca_treezor, sf_infrastructure, splash, utils
2026-05-12 06:43:14 -05:00
bd7c47351f chore: ignore flutter auto-generated files
These files are regenerated by flutter pub get and contain machine-
specific paths (FLUTTER_ROOT, FLUTTER_APPLICATION_PATH). They should
not be tracked — the file header itself states "do not check into
version control".

- Update .gitignore: prepend **/ to .flutter-plugins-dependencies so
  it matches in sub-packages, add Generated.xcconfig and
  flutter_export_environment.sh patterns.
- git rm --cached the 4 files that were already tracked (keeps them
  on disk for local builds but removes from repo).
2026-04-26 21:52:50 +02:00
95a03434ca fix(antelop): route FCM pushes through SDK, per-flavor plist on iOS, unify applicationId
- Add AntelopAwareMessagingService so the Antelop SDK gets first dibs on every
  FCM push before delegating to firebase_messaging. Unblocks SCA wallet
  activation on Android, which was waiting forever for pushes that the
  FlutterFirebaseMessagingService was swallowing ever since Firebase was
  integrated. Remove the stock Antelop and firebase_messaging services via
  manifest-merge so only the wrapper handles MESSAGING_EVENT.
- Add Copy AntelopRelease Build Phase in Xcode to copy
  Runner/AntelopRelease-{flavor}.plist over the fixed AntelopRelease.plist
  inside the .app bundle based on CONFIGURATION. Without this the iOS SDK
  silently used the production plist on every flavor.
- Revert the six applicationId values (3 AndroidManifest + 3 AntelopRelease
  plist) to the sample id 4713640103500149457, which is the only one
  provisioned in Antelop's backend today. The four env+platform ids they
  provided all fail with 9999 / cryptography: Error while decrypting data.
  To be updated once Treezor confirms the real ids.
- Add packages/flutter_treezor_entrust_sdk_bridge/example as a pub workspace
  member and bump its Dart SDK and flutter_lints constraints so
  'melos bootstrap' stops failing with 'dependencies for
  flutter_treezor_entrust_sdk_bridge_example missing'.
2026-04-15 11:25:06 +02:00
03998f9cf1 router fixes 2026-04-14 14:44:03 +02:00
c1954497b8 chore: add root .gitignore and untrack auto-generated cache files
The repo had no root-level .gitignore, so .dart_tool/, ephemeral plugin
symlinks and build artifacts were being tracked across the workspace.
Every flutter pub get regenerated them and they polluted PRs as recurring
noise.

- Add root .gitignore covering .dart_tool/, ephemeral plugin symlinks,
  build/, coverage/, IDE files
- Untrack ~39 existing cache files across root, modules and packages
2026-04-07 03:30:35 +02:00
a560e19db2 fix: configure Antelop SDK applicationIds per environment 2026-04-07 00:37:39 +02:00
4a57bb35c5 style: apply dart format tall style and fix curly braces lints 2026-04-06 23:15:32 +02:00
3c4159ae8c chore: upgrade melos to 7.5.1 with pub workspaces and dep catalog
- Upgrade Melos to 7.5.1 using Dart pub workspaces (Melos 7 paradigm).
- Replace per-package pubspec_overrides.yaml with workspace-native resolution. Add dependencies.yaml as a centralized catalog for all external deps with sync_deps.dart tool to propagate and validate versions across the monorepo.
2026-04-06 23:08:51 +02:00
3d267aff37 chore: clean up flutter analyze warnings
Highlights:
- Add publish_to: 'none' to legacy pubspec.yaml files                                                      - Replace print() with dart:developer log() in Treezor SDK
- Add !context.mounted guards in async callbacks (defensive bug fix)                                                       - Add super.key to widget constructors
- Remove redundant @Default(null) from device_model                                     - Fix implementation_imports in legacy_auth datasources                                        - Add ignore comments for scaffolding code
- Add missing shared_preferences dependency in splash module                                                                                                            Mostly code quality improvements, with one defensive bug fix              context.mounted) and one missing dependency fix (shared_preferences).
2026-04-06 22:21:22 +02:00
b63b06ef14 refactor: group payment app modules under payment/ folder 2026-04-06 21:21:15 +02:00
8d453dc980 feature/background-image into fusion-app with fixes
- Fix upload flow: capture photo ID from POST /photos response
  - Fix endpoint: use /devices/identificator/{id}/photos/files for listing
  - Fix setBackgroundImage: use device.id (UUID) instead of identificator
  - Redesign screen as photo gallery with grid view
  - Add image compression on pick (maxWidth: 800, quality: 80%)
  - Fix multipart upload: remove content-type header for FormData auto-detection
  - Replace hardcoded Spanish text with i18n in 6 languages
  - Add typed error/success enums (BackgroundImageErrorEvent, BackgroundImageSuccessEvent)
  - Revert initialLocation to splash
  - Add missing translations for contacts and background-image features
2026-03-25 03:52:24 +01:00
1ffeea8b77 background image screen and state 2026-03-24 11:25:45 +01:00
73927557ca fix: show activation code dialog with qr scan 2026-03-23 13:58:59 +01:00
0088d146f0 feat: enhance location map with route history, animations, follow mode, and fix API models
- Fix position address model nullability (province field missing from API)
  - Fix health query order to sortDirection to match backend API
  - Add pagination to health chart queries to prevent backend timeout
  - Align GetDevicesResponseModel with full backend schema
  - Add route history with gradient polyline, direction arrows, and clustering
  - Add animated map movements
  - Add follow mode with auto-refresh
  - Add share location via Google Maps link
  - Add fit bounds on history load
  - Add expandable action buttons panel
  - Add location list bottom sheet with type filters
  - Add whitelist sync alongside secondary contacts
  - Add loading state to linked devices screen
  - Refactor location_map.dart: extract RouteHistoryLayer, MapActionsPanel
  - Migrate setState to LocationMapViewModel
2026-03-22 02:30:21 +01:00
8e3a27e0d3 feat: add route history, map controls, and geofence/FP management
- Position history with polyline trail and date range picker
  - Map style selector (standard, voyager, light, dark, satellite) persisted via SharedPreferences
  - Geofence and frequent place CRUD with info cards
  - Device banner with swipeable carousel
  - Refresh position button
  - Widget extraction: map controls, info cards, device banner, modal overlay
2026-03-18 19:48:30 +01:00
990266ba95 delete device command and device setup flow 2026-03-18 11:49:05 +01:00
01d9d4241b remote management commands 2026-03-16 12:46:13 +01:00
440bbcac66 device management features, settings module and contact sync
Device management:
  - Activity meter with steps charts and history
  - Apps usage with daily breakdown and top apps
  - Health monitoring (heart rate, oxygen, blood pressure)
  - Scheduled activities with timeline and CRUD
  - Contacts sync to device via contact-lists
  - Locate device, rewards refactor

  Settings (new module):
  - Block phone
  - SOS contacts
  - WiFi networks
  - Alarm refactor with full CRUD
  - Settings menu with feature stubs

  Account:
  - Personal data and account settings refactor

  Shared:
  - 100+ i18n keys in 6 languages
  - New routes in app_router
  - WeekDayChips, TimeRangeSelector shared widgets
  - Legacy dashboard shell simplified
2026-03-16 08:37:52 +01:00
903e1991e1 delete account endpoint 2026-03-12 11:12:13 +01:00
53cadd8499 linked devices state and models fix 2026-03-11 11:56:39 +01:00
5ee7852ee7 rewards ui, state and command 2026-03-10 16:08:33 +01:00
bb666e8ab6 remove duplicated providers, send command basic endpoint 2026-03-09 17:47:24 +01:00
644d1c2abe Legacy modules refactor: auth, control panel, location module, and session persistence 2026-03-09 02:28:31 +01:00
01de94876b legacy login refactor 2026-03-06 00:44:12 +01:00
cf03bbc1b5 Merge commit '014ef1ad2615fe2981f18ed28adcde17edda4f1e' into fusion-app 2026-03-05 12:53:39 +01:00
88275c4ae6 confetti animation 2026-03-03 12:15:50 +01:00
ef0abc2f85 feat: add multi-environment support (development, staging, production)
- Replace dotenv with compile-time dart-define-from-file config per flavor
  - Add Android product flavors with applicationIdSuffix and per-flavor AndroidManifest
  - Add iOS build configurations, schemes, per-flavor plists and entitlements
  - Configure ProGuard rules for R8 compatibility with Entrust/Antelop SDK
  - Restructure assets into shared/ and per-flavor directories
  - Generate per-flavor launcher icons for Android and iOS
  - Refactor app initialization into initApp() with per-flavor entry points
  - Update asset paths across auth, home, profile, splash modules and sf_shared
2026-03-01 00:12:47 +01:00
bb53110b9a fixes 2026-02-27 13:24:10 +01:00
f185acc3d4 sca treezor and auth interceptors, some other fixes and lottie animation for app loading added 2026-02-27 12:34:49 +01:00
7849240ff2 mcc groups, limits to expend, delete child device, card status, responsive states, added some overrides to AppDelegate, router modified, sca wallet fixes 2026-02-26 14:59:51 +01:00
0c93440f9b app state fixed 2026-02-25 18:37:17 +01:00
4b4eb807d7 sca treezor login fixes 2026-02-24 16:29:24 +01:00
722c978674 payin fixes , allowance setup device step modified , sca pin 2fa added, provisioning changes 2026-02-19 14:56:05 +01:00
2ba83a22ac Payout, payin , moves between wallets in same user, childScreens, transactions , card children block and unblock 2026-02-17 20:54:14 +01:00
a221b7a71e payment methods with HiPay, payment profile edited, allowance step in device setup, tio snackbar added and logout from profile settings 2026-02-15 14:05:08 +01:00
d96985bf54 profile settings screen to show user information, move getPaymentProfile,getUserInfo,getChildProfiles request to sf shared, some refactors 2026-02-12 14:32:57 +01:00
417f0021ad create wallet, treezor session heartbeat, get payment profile, device setup refactor, flow management from splash screen, sca pin dynamic 2026-02-12 09:02:43 +01:00
9d1bb6c22a treezor , sca proff and create child profile 2026-01-27 02:28:52 +03:00
ddbfbc1ebf treezor packages and native configs adapted to main app 2026-01-21 12:19:56 +01:00