dcramer / peated

https://peated.com
Apache License 2.0
64 stars 13 forks source link

Full implementation of badges #201

Closed dcramer closed 3 months ago

dcramer commented 3 months ago

Achieving a new badge level shows up on tasting cards:

image

Badges have dedicated pages, but theres nothing there yet:

image

Badges show on profiles

image

Admin is barebones, but works:

image image image

codecov[bot] commented 3 months ago

Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.

:x: Failed Test Results:

Completed 396 tests with 1 failed, 395 passed and 0 skipped.

View the full list of failed tests ## src/trpc/routes/tastingCreate.test.ts - **Class name:** src/trpc/routes/tastingCreate.test.ts
**Test name:** creates a new tasting with badge award

Error: Snapshot `creates a new tasting with badge award 1` mismatched
❯ .../trpc/routes/tastingCreate.test.ts:281:32
dcramer commented 3 months ago

Reworked this a bit but its mostly still the same.

Made badges => checks, so all badges can have multiple checks. Currently only supports AND across them all, but that's something we could expand in the future.