Skip to content

Upgrade inventory UX + input-guard bug fixes#108

Merged
NovaDrake76 merged 2 commits into
mainfrom
feat/upgrade-ux-and-fixes
May 29, 2026
Merged

Upgrade inventory UX + input-guard bug fixes#108
NovaDrake76 merged 2 commits into
mainfrom
feat/upgrade-ux-and-fixes

Conversation

@NovaDrake76

Copy link
Copy Markdown
Owner

Fixes (the two prod error-log lines):

  • guard non-ObjectId ids on /users/:id and /users/inventory/:userId (no more Cast 500s)
  • validate caseId, escape the inventory name search
  • reject password login for passwordless (Google) accounts instead of a bcrypt 500

Upgrade inventory UX:

  • default sort newest-first, add debounced search + rarity filter
  • reset pagination on filter change, show total pages

Integration tests added for the guards.

guard /users/:id and /users/inventory/:userId against non-ObjectId ids (the
'Cast to ObjectId failed' 500s), validate caseId and escape the inventory name
search so malformed filters can't throw, and reject password login for accounts
with no password (Google sign-ins) instead of letting bcrypt throw 'Illegal
arguments'. covered by integration tests.
default to newest-first, add a debounced name search and a rarity filter
alongside the sort options, reset to page 1 whenever a filter changes, and show
the total page count.
@NovaDrake76
NovaDrake76 merged commit 7dbaf2e into main May 29, 2026
4 checks passed
@NovaDrake76
NovaDrake76 deleted the feat/upgrade-ux-and-fixes branch May 29, 2026 10:44
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.

1 participant