Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Frontend] activity-content.tsx and incoming-content.tsx duplicate the same fetch/loading/error scaffolding with no shared hook

Aperta
#1,085 12 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

@boluxx123 ci sta già lavorando.

Dal 29/9/2026.

  • #1142 di @abdulqoyumadegoke — aperta
  • #1589 di @boluxx123 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

frontend GrantFox OSS Maybe Rewarded Official Campaign | FWC26 refactor Stellar Wave Third Campaign

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

frontend/src/app/activity/activity-content.tsx and frontend/src/app/incoming/incoming-content.tsx both implement their own loading/error/empty-state handling around a data fetch, following the same shape. Duplicated scaffolding means a bug fix (e.g. an error-state edge case) has to be applied twice and can drift, exactly the kind of duplication already flagged for other pairs in this codebase.

Acceptance criteria

  • Extract a shared useAsyncPageData-style hook or shared presentational wrapper for loading/error/empty states
  • Migrate both pages to use it
  • Confirm existing tests for both pages still pass

Files to touch

  • frontend/src/app/activity/activity-content.tsx
  • frontend/src/app/incoming/incoming-content.tsx
  • frontend/src/hooks/

Out of scope

  • Rewriting the data-fetching library used
  • Changing the visual design of loading/error states
Lingua principale
TypeScript
Stelle
18
Fork
250
Merge medio
5g 6h
PR unite (30g)
82

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LabsCrypt/flowfi

Tutte le issue di LabsCrypt/flowfi

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.