feat(backend): add goals module with CRUD, progress tracking, and com… - #1134
Merged
Akanimoh12 merged 1 commit intoJul 27, 2026
Conversation
…pletion detection Implements creator funding goals feature with: - CRUD operations (create, read, update, delete) - Real-time progress calculation (percentage, days remaining) - Automatic completion detection and notification - Ownership enforcement (users can only modify their own goals) - OpenAPI documentation for Swagger UI - 23 unit tests covering all functionality Closes #issues-goals-crud, #issues-goal-progress, #issues-goal-completion
ExcelDsigN-tech
had a problem deploying
to
preview
July 27, 2026 11:20 — with
GitHub Actions
Failure
|
@ExcelDsigN-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Akanimoh12
merged commit Jul 27, 2026
d76f496
into
Akanimoh12:test-implement-drips
4 of 5 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1021, Closes #1022, Closes #1023, Closes #1025
Overview
This PR implements the complete goals feature set within the real-time off-chain backend for Stellar Tipz (
backend/src/modules/goals/). Target PR base branch:test-implement-drips.The changes add secure CRUD operations for creator goals, automatic real-time progress calculations based on incoming tips, automatic goal completion detection with notification triggers, and comprehensive OpenAPI/Swagger documentation for all goals endpoints.
Feature Summary
Technical Implementation
backend/src/modules/goals/goals.controller.ts: Defined routes for goals CRUD, progress lookups, and manual adjustments, protected by JWT authentication and owner authorization guards.backend/src/modules/goals/goals.service.ts: Implemented business logic for goal lifecycle management, tip calculation aggregations, percentage completion computations, and idempotent state transitions upon goal completion.backend/src/modules/goals/goals.listener.ts/ Event Bus: Subscribed to incoming tip events to automatically update goal progress, check completion thresholds, and dispatch goal completion notification triggers.backend/src/modules/goals/dto/: Created validated request DTOs (create-goal.dto.ts,update-goal.dto.ts) with class-validator decorators and OpenAPI properties.Test Coverage
npm run typecheck,npm run lint, andnpm run testall execute successfully with zero errors or warnings.Checklists