Skip to content

Conversation

@akintewe
Copy link
Contributor

@akintewe akintewe commented Apr 27, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Related Tickets & Documents

Screenshots, Recordings, QA Instructions (if applicable)
r (31938): [🌎 Easy Localization] [WARNING] Localization key [Stake] not found
I/flutter (31938): *** Response ***
I/flutter (31938): uri: https://starkwager-backend.onrender.com/hashtags
I/flutter (31938): statusCode: 200
I/flutter (31938): headers:
I/flutter (31938): connection: keep-alive
I/flutter (31938): x-render-origin-server: Render
I/flutter (31938): access-control-allow-origin: *
I/flutter (31938): transfer-encoding: chunked
I/flutter (31938): date: Sun, 27 Apr 2025 13:07:18 GMT
I/flutter (31938): content-encoding: gzip
I/flutter (31938): vary: Accept-Encoding
I/flutter (31938): cf-cache-status: DYNAMIC
I/flutter (31938): content-type: application/json; charset=utf-8
I/flutter (31938): rndr-id: de607783-b94b-4a74
I/flutter (31938): server: cloudflare
I/flutter (31938): x-powered-by: Express
I/flutter (31938): alt-svc: h3=":443"; ma=86400
I/flutter (31938): cf-ray: 936e8ac5ccfc6fe8-CDG
I/flutter (31938): etag: W/"2-l9Fw4VUO7kr8CvBlt4zaMCqXZ0w"
I/flutter (31938): Response Text:
I/flutter (31938): []

38): *** Request ***
I/flutter (31938): uri: https://starkwager-backend.onrender.com/hashtags
I/flutter (31938): method: GET
I/flutter (31938): responseType: ResponseType.json
I/flutter (31938): followRedirects: true
I/flutter (31938): persistentConnection: true
I/flutter (31938): connectTimeout: 0:00:30.000000
I/flutter (31938): sendTimeout: null
I/flutter (31938): receiveTimeout: 0:00:30.000000
I/flutter (31938): receiveDataWhenStatusError: true
I/flutter (31938): extra: {}
I/flutter (31938): headers:
I/flutter (31938): data:
I/flutter (31938): null

This PR implements API integration for fetching categories and hashtags in the Create Wager screen.

Testing Instructions:

  1. Use a physical device
  2. On the Connect Wallet screen, click on the MetaMask option
  3. Complete the wallet connection process
  4. After successful connection, the app will call the create-login endpoint and store the token
  5. Navigate to the Create Wager screen to see categories and hashtags loaded from the API

Key Changes:

  • Created data models for Categories and Hashtags
  • Implemented repository interfaces and remote datasources
  • Added loading states and error handling in UI
  • Fixed hashtag dialog UI overflow issue
  • Implemented fallback to hardcoded values if API calls fail

Copy link
Contributor

@Hoossayn Hoossayn left a comment

Choose a reason for hiding this comment

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

Good work on the api implementation @akintewe

however, your changes affected the UI
WhatsApp Image 2025-04-30 at 22 19 32

WhatsApp Image 2025-04-30 at 22 19 32

@akintewe akintewe requested a review from Hoossayn April 30, 2025 22:01
@akintewe akintewe changed the base branch from main to dev April 30, 2025 22:38
@akintewe
Copy link
Contributor Author

WhatsApp Image 2025-04-30 at 11 52 00 PM
WhatsApp Image 2025-04-30 at 11 52 01 PM
WhatsApp Image 2025-04-30 at 11 52 01 PM (1)
@Hoossayn

@Hoossayn Hoossayn merged commit 90e8506 into stakepoint:dev Apr 30, 2025
1 of 2 checks 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

Development

Successfully merging this pull request may close these issues.

STRKWAGR-42 [Mobile] : IMPLEMENT GET ALL CATEGORIES & HASHTAG ENDPOINT

2 participants