Skip to content

docs: add JSDoc to service classes and database schema docs (#702 #703 #704 #705) - #902

Merged
Jayy4rl merged 1 commit into
StellarYield:mainfrom
Marvy247:feat/jsdoc-schema-702-703-704-705
Jul 26, 2026
Merged

docs: add JSDoc to service classes and database schema docs (#702 #703 #704 #705)#902
Jayy4rl merged 1 commit into
StellarYield:mainfrom
Marvy247:feat/jsdoc-schema-702-703-704-705

Conversation

@Marvy247

Copy link
Copy Markdown
Contributor

Summary

Adds JSDoc documentation to three service classes and creates a comprehensive database schema reference.

Changes

Issue #702 — YieldService JSDoc

  • Added JSDoc to getVaultEpochs, getUserPendingYield, recordEpoch, getYieldSummary
  • Added @remarks tag documenting the BigInt arithmetic in getUserPendingYield

Issue #703 — UserService JSDoc

  • Added JSDoc to getUser, upsertUser, getUserPortfolio, countUsers, getTotalPendingYield

Issue #704 — NotificationService JSDoc

  • Added JSDoc to notify, getWebhooks, createWebhook, deleteWebhook
  • Added @remarks tag documenting HMAC-SHA256 signing behaviour in notify
  • Added getWebhooks, createWebhook, deleteWebhook as proper service methods

Issue #705 — Database Schema Docs

  • Created backend/docs/schema.md covering all 15 application tables
  • Includes Mermaid ER diagram showing relationships
  • Per-table reference: columns (name, type, nullable, default), primary keys, foreign keys, unique constraints, indexes, and descriptions

Closes #702
Closes #703
Closes #704
Closes #705

… database schema docs

- StellarYield#702: Add JSDoc to all YieldService public methods (getVaultEpochs,
  getUserPendingYield, recordEpoch, getYieldSummary) with @remarks for
  BigInt arithmetic in getUserPendingYield
- StellarYield#703: Add JSDoc to all UserService public methods (getUser, upsertUser,
  getUserPortfolio, countUsers, getTotalPendingYield)
- StellarYield#704: Add JSDoc to all NotificationService public methods (notify,
  getWebhooks, createWebhook, deleteWebhook) with @remarks for HMAC
  signing in notify; add getWebhooks/createWebhook/deleteWebhook methods
- StellarYield#705: Create backend/docs/schema.md with full database schema docs
  including ER diagram (Mermaid), per-table column reference, PKs, FKs,
  unique constraints, indexes, and descriptions

Closes StellarYield#702
Closes StellarYield#703
Closes StellarYield#704
Closes StellarYield#705
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@Marvy247 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! 🚀

Learn more about application limits

@Jayy4rl
Jayy4rl merged commit 6c61db6 into StellarYield:main Jul 26, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants