iiitl / iiitl/Event_Dapp

[Medium]: Centralize Graph query layer and improve fetch resilience

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

difficulty:medium frontend help wanted subgraph
Dominant language
JavaScript
Stars
0
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### Problem Statement

Graph query setup and fetch handling are scattered. This should be centralized and made more reliable.

### Proposed Approach

Move Graph URL/query/request logic into shared graphql layer.
Replace inline usage in app with shared functions.
Add clear loading and error handling.
Add retry behavior where appropriate.
Remove placeholder token text from app logic.
Verify data flow remains correct.

### Files and Scope

event-dappp/src/App.js
event-dappp/src/graphql/queries.js

### Acceptance Criteria

- [ ] Graph fetch config is centralized in graphql layer
- [ ] App uses shared query helper instead of duplicated setup
- [ ] User-friendly loading and error states are shown
- [ ] Retry behavior is present and working

### Test Plan

Run app and confirm events and tickets load.
Simulate API/network failure and verify clean error state.
Retry fetch and verify recovery.

### Risks and Edge Cases

Query response shape mismatch can break rendering.
Retry settings may cause unnecessary repeated calls if misconfigured.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the Graph query and fetch setup in event-dappp/src/App.js with event-dappp/src/graphql/queries.js. Move the shared configuration and request behavior into the graphql layer, then run the app and simulate API or network failure. Done means events and tickets load through the shared helper, loading and error states are user-friendly, and retry recovers without unnecessary repeated calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript
Domain
api, frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.