Skip to content

Releases

v1.0

Choose a tag to compare

@NadmanFaisal NadmanFaisal released this 16 Dec 21:54

Summary

This release introduces the core "Caddy" functionality. The app now successfully authenticates users, retrieves location-based weather data to recommend playable holes, and supports fully offline score tracking for groups (including NPCs).

New Features

Authentication & Security

  • User Login/Signup: Fully functional flow using JWT tokens.
  • Secure Storage: Tokens are encrypted using expo-secure-store for auto-login.
  • Session Management: Users remain logged in across app restarts.

Smart Weather Recommendations

  • Playability Engine: Analyzes real-time temperature, wind, and precipitation to suggest if it's safe to play 18 holes.
  • Hourly Forecasts: Fetches weather data specifically for golf courses in Bangladesh.
  • Tee-Off Scheduler: Visual indicators for the best time to start a round.

Game & Score Management

  • Offline-First Scoring: Start games and track strokes without an internet connection.
  • NPC Support: Add non-playable characters (friends without accounts) to the scorecard.
  • Dynamic Scorecard: Edit scores mid-game with immediate local saving.
  • Sync Logic: Completed games are stored locally and prepared for backend sync when online.

History

  • Game Logs: Browse a history of past game sessions.
  • Score Review: View detailed stroke breakdowns for previous rounds.

Technical Highlights

  • Architecture: Implemented a robust offlineGameStore using AsyncStorage to ensure no data is lost during connectivity drops.
  • Background Jobs: Server-side cron jobs configured to fetch weather data at midnight daily.

### Known Issues / Roadmap (Upcoming Refactors)

  • Navigation: Currently using a custom Footer; migrating to Native Tabs for better performance in v0.2.0.
  • File Structure: Optimizing styles folders to prevent "ghost routes" in Expo Router.
  • Performance: Reducing unnecessary re-renders by moving token logic to a central AuthContext.

### How to Test

  1. Login with your credentials.
  2. Go to Home and check the "Recommended Game" tile.
  3. Tap "Start a Game", add a dummy player (NPC), and verify the offline scorecard works.
  4. Kill the app and reopen it to verify you stay logged in.

What's Changed

New Contributors

Full Changelog: https://github.com/NadmanFaisal/31Golfers/commits/1.0