Skip to content

docs: add JSDoc comments to recurring, address-book, error-messages, and use-streams Issues/772 773 774 776 - #880

Merged
Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
kossyomma-beep:issues/772-773-774-776
Sep 27, 2026
Merged

Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
kossyomma-beep:issues/772-773-774-776

Conversation

@kossyomma-beep

Copy link
Copy Markdown
Contributor

Summary

This PR adds JSDoc doc comments to all previously undocumented exported functions across four frontend utility files, completing a documentation pass requested in the linked issues.

Changes

lib/recurring.ts — added doc comments to 5 exports:

  • getRecurringRules — describes SSR safety and return shape
  • saveRecurringRule — documents the 25-entry cap and deduplication behaviour
  • removeRecurringRule — documents the streamId-based removal
  • getUpcomingRenewals — explains the future-only filter and sort order
  • createRenewalPreset — documents parameters, side-effect (auto-saves), and return value

lib/address-book.ts — added doc comments to 5 exports:

  • getAddressBookEntries — describes sort order and SSR safety
  • addAddressBookEntry — documents ID/timestamp generation, trimming, deduplication, and 50-entry cap
  • updateAddressBookEntry — documents partial-patch semantics and null return on miss
  • deleteAddressBookEntry — documents silent no-op on missing ID
  • touchAddressBookEntry — documents the upsert logic (update vs. create), field fallback rules, and blank-address guard

lib/error-messages.ts — added doc comments to 3 exports:

hooks/use-streams.ts — added doc comments to 3 exports:

  • invalidateStreams — explains the listener-bus mechanism and when to call it
  • useStreams — fully documents all return fields including the non-obvious stale (offline cache fallback) and isRefreshingAfterHidden (tab-focus refresh indicator) fields, plus polling behaviour and options
  • useStream — documents single-stream fetch semantics, absence of polling, and return shape

Issues

Closes #772
Closes #773
Closes #774
Closes #776

@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@kossyomma-beep 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

@Austinaminu2
Austinaminu2 merged commit 121bbb6 into FlowwStar:main Sep 27, 2026
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