@dappermountain/payload-plugin-achievements 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -294,9 +294,9 @@ achievementPlugin({
294
294
  canReview,
295
295
  extensions: {
296
296
  metricAnchors: {
297
- 'membership-granted': {
297
+ 'enrollment-started': {
298
298
  // Admin UI i18n (Payload label / OptionLabel)
299
- label: ({ t }) => t('custom:achievements:anchors:membershipGranted'),
299
+ label: ({ t }) => t('custom:achievements:anchors:enrollmentStarted'),
300
300
  resolve: async ({ payload, userId, scopeId }) => {
301
301
  // return a Date from host data, or null
302
302
  return null
@@ -371,12 +371,12 @@ await reconcileProgression({
371
371
  payload,
372
372
  userId: '…',
373
373
  scopeId: '…',
374
- achievementSlug: 'ring-grim',
375
- tierSlug: 'ring-solid',
374
+ achievementSlug: 'path-complete',
375
+ tierSlug: 'veteran',
376
376
  })
377
377
 
378
378
  // Host CLI (only boot config in the app — flags live in the plugin):
379
- // bun --env-file=.env ./scripts/reconcile-achievements.ts -- --user=<id> --achievement=ring-grim
379
+ // bun --env-file=.env ./scripts/reconcile-achievements.ts -- --user=<id> --achievement=path-complete
380
380
  import { runReconcileCli } from '@dappermountain/payload-plugin-achievements/cli'
381
381
  await runReconcileCli({ config })
382
382
  ```
@@ -440,8 +440,8 @@ await seedAchievements(payload, {
440
440
  metrics: [{ name: 'Streak days', slug: 'streak-days' }],
441
441
  tiers: [
442
442
  {
443
- name: 'Prospect',
444
- slug: 'prospect',
443
+ name: 'Novice',
444
+ slug: 'novice',
445
445
  rank: 0,
446
446
  unlockRules: [], // open
447
447
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dappermountain/payload-plugin-achievements",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "A robust, Admin-configured achievements engine for Payload: composable unlock rules, derived rank progress, request/review grants, metrics, and scoped multi-tenant support.",
5
5
  "license": "MIT",
6
6
  "type": "module",