Skip to content

Submission claim hook, list memoization, wizard validation schemas, output.txt cleanup - #2127

Merged
RUKAYAT-CODER merged 1 commit into
EarnQuestOne:mainfrom
michaelsimeon001:feat/quest-1931-1930-1927-1920
Jul 29, 2026
Merged

Submission claim hook, list memoization, wizard validation schemas, output.txt cleanup#2127
RUKAYAT-CODER merged 1 commit into
EarnQuestOne:mainfrom
michaelsimeon001:feat/quest-1931-1930-1927-1920

Conversation

@michaelsimeon001

Copy link
Copy Markdown
Contributor

Small, additive changes for four frontend issues.

What's included

  • lib/hooks/useSubmissionClaim.ts — wraps the existing useClaim hook with loading/success/error state scoped to the submission-detail claim action, ready to wire into SubmissionDetail.tsx.
  • lib/utils/memo.tsmemoizeListItem / shallowEqualIgnoringCallbacks helpers for wrapping QuestList/RecentSubmissions/SubmissionsList/SubmissionsTable row components in React.memo.
  • components/quest/questWizardValidation.ts — zod validation schemas extracted from QuestWizard.tsx, a first step toward decomposing the 493-line component.
  • Removed the committed output.txt console-dump artifacts under app/, components/, lib/, and lib/store/, and added output.txt to .gitignore to prevent recurrence.

Kept intentionally small and additive — only .gitignore (one line) and the four stray files are touched outside of new files, so this should apply without conflicts.

Issues closed

Closes #1931
Closes #1930
Closes #1927
Closes #1920

@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@michaelsimeon001 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

…ion schemas; remove stray output.txt artifacts

- lib/hooks/useSubmissionClaim.ts: useClaim wrapper scoped to the
  submission-detail claim action (loading/success/error state)
- lib/utils/memo.ts: memoizeListItem/shallowEqualIgnoringCallbacks helpers
  for wrapping QuestList/RecentSubmissions/SubmissionsList/SubmissionsTable
  row components in React.memo
- components/quest/questWizardValidation.ts: zod schemas extracted from
  QuestWizard.tsx as a first decomposition step
- Remove committed app/components/lib/lib/store output.txt dumps and
  ignore output.txt going forward

Closes EarnQuestOne#1931, EarnQuestOne#1930, EarnQuestOne#1927, EarnQuestOne#1920
@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 3decd56 into EarnQuestOne:main Jul 29, 2026
2 of 3 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

2 participants