Skip to content

fix: mobile improvements - env handling, logging, dark mode, pull-to-refresh#84

Merged
phertyameen merged 1 commit into
bridgelet-org:mainfrom
BigBen-7:fix/issues-80-81-82-83-mobile-improvements
Apr 27, 2026
Merged

fix: mobile improvements - env handling, logging, dark mode, pull-to-refresh#84
phertyameen merged 1 commit into
bridgelet-org:mainfrom
BigBen-7:fix/issues-80-81-82-83-mobile-improvements

Conversation

@BigBen-7
Copy link
Copy Markdown
Contributor

Summary

Resolves four open issues assigned to bigben-7 in the mobile app.

Changes

#80 — Improve environment variable handling

  • Added mobile/.env.example with documented env vars
  • Created mobile/app/src/config/env.ts as the single source of truth for env config using EXPO_PUBLIC_ prefix (required by Expo)
  • Updated apiClient.ts to read API_BASE_URL from the env config instead of a hardcoded string

#81 — Standardize logging across mobile application

  • Created mobile/services/logger/index.ts with structured log levels (debug, info, warn, error)
  • Logs are suppressed below warn in production, safe for all environments
  • Replaced console.log in apiClient.ts with the new logger

#82 — Implement full dark mode across mobile app

  • Added mobile/app/src/constants/Colors.ts with complete dark/light palettes
  • Created useThemeColors hook that reads from the existing ThemeProvider
  • Added ThemeToggle component (light / dark / system switcher)
  • Updated all screens (send, claim, claim/success, security, onboarding, index) to use dynamic theme colors — no more hardcoded hex values

#83 — Add pull-to-refresh functionality

  • Added RefreshControl to send/index.tsx, claim/index.tsx, and security/index.tsx
  • Refresh reloads data and resets state; loading indicator uses the theme primary color

Testing

  • All screens respond to system dark/light mode changes via ThemeProvider
  • Pull-to-refresh works on all data screens
  • Logger output is structured and suppressed in production builds
  • Env vars are isolated per environment via .env files

Closes #80
Closes #81
Closes #82
Closes #83

, bridgelet-org#83 - mobile improvements

- bridgelet-org#80: Add env config (mobile/app/src/config/env.ts) with EXPO_PUBLIC_
  prefixed vars; update apiClient to use env.apiUrl; add .env.example
- bridgelet-org#81: Create structured logger (mobile/services/logger/) with log levels
  and production-safe output; replace console.log in apiClient
- bridgelet-org#82: Add Colors constants, useThemeColors hook, ThemeToggle component;
  update all screens to use dynamic theme colors from ThemeProvider
- bridgelet-org#83: Add RefreshControl to send, claim, and security screens

Closes bridgelet-org#80, Closes bridgelet-org#81, Closes bridgelet-org#82, Closes bridgelet-org#83
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 27, 2026

@BigBen-7 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

@phertyameen phertyameen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awsome

@phertyameen phertyameen merged commit e3ce8f3 into bridgelet-org:main Apr 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants