Skip to content

Conversation

@youngkidwarrior
Copy link
Collaborator

@youngkidwarrior youngkidwarrior commented Dec 30, 2025

feat: Display SEND amounts for tasks and multipliers in rewards screen

Display calculated SEND amounts earned for each task and multiplier impact
in the rewards activity screen cards. Provides transparency for users on
how rewards are calculated.

Changes:

  • Add calculateTaskSendAmount() and calculateMultiplierImpact() functions
  • Extract buildVerificationValueMap() helper to eliminate duplication
  • Fix multiplier impact to calculate difference (WITH - WITHOUT)
  • Add comprehensive unit tests (54 tests) for calculation helpers
  • Refactor distributorv2.ts to use calculateSlashPercentage helper
  • Extract constants and hooks for better code organization
  • Restore database-generated.types.ts (was accidentally cleared)

Tests: 54/54 passing in fixed-pool-calculation.test.ts
Lint: 0 errors (biome)

Co-Authored-By: Warp agent@warp.dev

Copy link
Collaborator Author

youngkidwarrior commented Dec 30, 2025

Victor Ginelli and others added 2 commits December 29, 2025 18:23
Why:
Enable developers to override Supabase service ports via
environment variables while maintaining sensible defaults
(54321-54326). This allows running multiple Supabase instances
or avoiding port conflicts without modifying Tiltfile directly.

Changes:
- Tiltfile: Pass SUPABASE_*_PORT env vars to supabase service
- package.json: Add port defaults to test script invocation

Test plan:
- Command 1: tilt up
  Expected: Supabase starts with default ports 54321-54326
- Command 2: SUPABASE_API_PORT=55321 tilt up
  Expected: Supabase API runs on port 55321 instead of 54321
- Command 3: yarn workspace @my/supabase test
  Expected: Tests run against default ports

Co-Authored-By: Warp <agent@warp.dev>
Display calculated SEND amounts earned for each task and multiplier impact
in the rewards activity screen cards. Provides transparency for users on
how rewards are calculated.

Changes:
- Add calculateTaskSendAmount() and calculateMultiplierImpact() functions
- Extract buildVerificationValueMap() helper to eliminate duplication
- Fix multiplier impact to calculate difference (WITH - WITHOUT)
- Add comprehensive unit tests (54 tests) for calculation helpers
- Refactor distributorv2.ts to use calculateSlashPercentage helper
- Extract constants and hooks for better code organization
- Restore database-generated.types.ts (was accidentally cleared)

Tests: 54/54 passing in fixed-pool-calculation.test.ts
Lint: 0 errors (biome)

Co-Authored-By: Warp <agent@warp.dev>
@youngkidwarrior youngkidwarrior changed the base branch from dev to graphite-base/2417 December 30, 2025 02:23
@youngkidwarrior youngkidwarrior force-pushed the display-send-amounts-in-rewards branch from b2c3264 to 232517b Compare December 30, 2025 02:23
@youngkidwarrior youngkidwarrior changed the base branch from graphite-base/2417 to add-percentile-calculation-helper December 30, 2025 02:24
@youngkidwarrior youngkidwarrior changed the title Configure Supabase port environment variables feat: Display SEND amounts for tasks and multipliers in rewards screen Dec 30, 2025
@youngkidwarrior youngkidwarrior marked this pull request as ready for review December 30, 2025 02:24
@github-actions
Copy link

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.

2 participants