Skip to content

Auto-save drafts, toast dedup, leaderboard upsert, fuzzy search - #1753

Merged
Olowodarey merged 4 commits into
Arena1X:mainfrom
nonsobethel0-dev:feat/issues-1574-1575-1614-1633
Aug 27, 2026
Merged

Auto-save drafts, toast dedup, leaderboard upsert, fuzzy search#1753
Olowodarey merged 4 commits into
Arena1X:mainfrom
nonsobethel0-dev:feat/issues-1574-1575-1614-1633

Conversation

@nonsobethel0-dev

Copy link
Copy Markdown
Contributor

What changed

Why

  • Users abandoned long event forms without draft persistence
  • Screen flooded with duplicate toasts during retry loops
  • Concurrent leaderboard inserts could create duplicates
  • No typo-tolerant search despite pg_trgm indexes being present

How to test

  • Event form: fill step 1, refresh page, draft restores automatically
  • Toasts: trigger same error twice quickly, only one toast shown
  • Leaderboard: concurrent inserts resolve to single entry per user/season
  • Fuzzy search: /search/fuzzy?query=preidction returns "prediction" markets

Closes #1574
Closes #1575
Closes #1614
Closes #1633

…ena1X#1575)

- CreateEventForm: auto-save draft to localStorage on every change
- ToastContext: deduplicate identical messages within 3s window,
  cap concurrent toasts at 5 with priority-based eviction

Closes Arena1X#1574
Closes Arena1X#1575
…#1614, Arena1X#1633)

- LeaderboardService: add upsertEntry method that handles unique-violation
  (pg error 23505) as an update, preventing duplicate entries per user/season
- SearchController: add GET /search/fuzzy endpoint using trigram similarity
  with configurable threshold and score-ranked results

Closes Arena1X#1614
Closes Arena1X#1633
…t, fuzzy search

- CreateEventForm: step gating blocks advance on invalid input, draft restores
- ToastContext: duplicates collapse, cap enforced
- LeaderboardService: unique-violation handled as update
- SearchController: fuzzy endpoint delegates to trigram similarity

Closes Arena1X#1574
Closes Arena1X#1575
Closes Arena1X#1614
Closes Arena1X#1633
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@nonsobethel0-dev 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

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview Aug 27, 2026 1:59pm

@Olowodarey
Olowodarey merged commit 883db07 into Arena1X:main Aug 27, 2026
5 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