Skip to content

refactor: replace claims/rewards with items system - #12

Merged
mozyonee merged 4 commits into
devfrom
feature/items-system-refactor
Mar 5, 2026
Merged

refactor: replace claims/rewards with items system#12
mozyonee merged 4 commits into
devfrom
feature/items-system-refactor

Conversation

@mozyonee

@mozyonee mozyonee commented Mar 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace the legacy claims module (client, server, types) with a unified items system
  • Remove shared/rewards.service.ts, shared/constants.ts, and shared/shared.module.ts; consolidate shared logic into ItemsService
  • Move pet needs decay logic into a shared calculateDecayedNeeds() utility in @widgetable/types
  • Add notifications.constants.ts and users.constants.ts to separate magic values from service files
  • Update i18n locale files (en/ru) with item-related keys

Test plan

  • Daily and quick item claims work end-to-end via the new ItemsService
  • Pet needs decay correctly using the new calculateDecayedNeeds() utility
  • Expedition slot calculation uses MAX_EXPEDITION_SLOTS_RATIO from types
  • No TypeScript or lint errors (npm run tsc && npm run lint)
  • i18n keys resolve correctly in both en and ru locales

…d modules

- Add new items system (client features/items, server src/items, types src/items)
- Remove legacy claims module (client + server + types/claims)
- Remove shared/rewards.service.ts, shared/constants.ts, shared/shared.module.ts
- Move pet decay logic to shared calculateDecayedNeeds() utility in types
- Replace RewardsService with ItemsService in PetsService
- Remove pet actions/valentine modules and PetActionCategory type
- Add MAX_EXPEDITION_SLOTS_RATIO and ItemResult to types exports
- Add notifications.constants.ts and users.constants.ts
- Update i18n locale files (en/ru) for new item-related keys
- Update actionSprites data and pet entity with needsUpdatedAt field

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to widgetable / widgetable-pr-12 March 5, 2026 01:46 Destroyed
@railway-app

railway-app Bot commented Mar 5, 2026

Copy link
Copy Markdown

🚅 Deployed to the widgetable-pr-12 environment in widgetable

Service Status Web Updated (UTC)
Client ✅ Success (View Logs) Web Mar 5, 2026 at 2:17 am
Server ✅ Success (View Logs) Web Mar 5, 2026 at 2:05 am

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to widgetable / widgetable-pr-12 March 5, 2026 02:03 Destroyed
@mozyonee mozyonee self-assigned this Mar 5, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to widgetable / widgetable-pr-12 March 5, 2026 02:10 Destroyed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to widgetable / widgetable-pr-12 March 5, 2026 02:15 Destroyed
@mozyonee
mozyonee merged commit a58fe25 into dev Mar 5, 2026
3 checks passed
@mozyonee
mozyonee deleted the feature/items-system-refactor branch March 5, 2026 02:22
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