Skip to content

Sort waitlist signups - #107

Merged
ralyodio merged 1 commit into
moshcoder:masterfrom
phucnguyen1707:feature/waitlist-sort
Aug 6, 2026
Merged

Sort waitlist signups#107
ralyodio merged 1 commit into
moshcoder:masterfrom
phucnguyen1707:feature/waitlist-sort

Conversation

@phucnguyen1707

Copy link
Copy Markdown
Contributor

Summary

  • add newest, oldest, and email sorting to waitlist management
  • apply ordering in the database before limits and carry it through the API, dashboard, and CSV export
  • preserve active search and status filters when the sort changes

Tests

  • bun test tests/ (200 passed)
  • npx tsc --noEmit
  • npm run build

Comment thread lib/db.ts
};
const res = await db().execute({
sql: `SELECT email, verified_at, ref, created_at FROM signups WHERE dn = ? ORDER BY created_at DESC LIMIT ?`,
sql: `SELECT email, verified_at, ref, created_at FROM signups WHERE dn = ? ORDER BY ${orderBy[sort]} LIMIT ?`,
@ralyodio
ralyodio merged commit d223819 into moshcoder:master Aug 6, 2026
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

Development

Successfully merging this pull request may close these issues.

3 participants