Skip to content

docs: add API & notification sequence diagrams (#354)#423

Open
Dami24-hub wants to merge 1 commit into
Core-Foundry:mainfrom
Dami24-hub:docs/api-sequence-diagrams
Open

docs: add API & notification sequence diagrams (#354)#423
Dami24-hub wants to merge 1 commit into
Core-Foundry:mainfrom
Dami24-hub:docs/api-sequence-diagrams

Conversation

@Dami24-hub

Copy link
Copy Markdown
Contributor

This pull request resolves issue #354 by enhancing the developer documentation with interactive Mermaid sequence diagrams. These diagrams map out the end-to-end data flow between Clients, Backend Services, Smart Contracts, and Subscribers to improve architecture visibility for new and existing contributors.

Related Issue
Closes #354

Summary of Changes
Notification Request Flow Diagram: Visualized client-initiated notification requests, backend validation, job queuing, smart contract interactions, and dispatch to subscribers.

Event Processing Lifecycle Diagram: Visualized on-chain event emissions, backend indexer detection, worker processing, and subscriber alert delivery.

Documentation Navigation: Embedded and cross-linked the sequence diagrams within README.md and ARCHITECTURE.md.

Rendering & Navigation Verification: Confirmed all Mermaid syntax renders properly on GitHub and verified all relative file links function correctly.

Checklist
[x] Work committed on branch docs/api-sequence-diagrams

[x] Mermaid sequence diagrams added for all required system flows

[x] Diagrams verified to render correctly on GitHub

[x] Relative links between README.md and ARCHITECTURE.md validated

[x] Explanatory documentation added alongside diagrams

- Add API_SEQUENCE_DIAGRAMS.md with five Mermaid sequence diagrams:
  1. Notification Request Flow (webhook verify + scheduled delivery)
  2. Event Processing Lifecycle (on-chain event → dedup → Discord)
  3. Scheduled Notification Delivery (POST /api/schedule → states)
  4. Retry & Failure Recovery (in-memory vs DB-backed retry paths)
  5. Dashboard Data Fetch (React polling /api/events, /health, /analytics)

- All diagrams reference actual source files, function names, and
  HTTP endpoints as implemented in the codebase

- Update ARCHITECTURE_OVERVIEW.md §9 with a navigation table linking
  to each diagram by anchor

- Update README.md Architecture Overview block and Event Flow section
  with prominent cross-links to API_SEQUENCE_DIAGRAMS.md

Closes Core-Foundry#354
@drips-wave

drips-wave Bot commented Jul 23, 2026

Copy link
Copy Markdown

@Dami24-hub 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

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.

[Docs] Improve API Documentation with Sequence Diagrams

1 participant