Skip to content

[Update]: workflow documentation for better clarity and system understanding#95

Merged
KanishkSogani merged 2 commits into
StabilityNexus:mainfrom
Nikuunj:main
Mar 23, 2026
Merged

[Update]: workflow documentation for better clarity and system understanding#95
KanishkSogani merged 2 commits into
StabilityNexus:mainfrom
Nikuunj:main

Conversation

@Nikuunj

@Nikuunj Nikuunj commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Addressed Issues:

Fixes #91

Changes Made:

  • Improved workflow documentation with clearer explanations
  • Added more detailed steps to better understand system flow
  • Included reference to contract repository workflows for end-to-end understanding

Check one of the checkboxes below:

  • This PR does not contain AI-generated code at all.
  • This PR contains AI-generated code. I have read the AI Usage Policy and this PR complies with this policy. I have tested the code locally and I am responsible for it.

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • If applicable, I have made corresponding changes or additions to the documentation
  • If applicable, I have made corresponding changes or additions to tests
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contribution Guidelines
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.
  • I have filled this PR template completely and carefully, and I understand that my PR may be closed without review otherwise.

@KanishkSogani

Summary by CodeRabbit

  • Documentation
    • Restructured workflow documentation with expanded sections covering wallet connection, token creation (UI and direct contract methods), endorsement flows, metadata fetching, and verification processes—all with supporting diagrams.
    • Updated README with a direct link to comprehensive workflow documentation for streamlined access.

@vercel

vercel Bot commented Mar 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
identity-tokens-evm-frontend Ready Ready Preview, Comment Mar 23, 2026 9:53am

@coderabbitai

coderabbitai Bot commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request restructures workflow documentation by replacing an embedded diagram and overview in the README with a direct link, while expanding docs/workflow.md with multiple detailed workflow sections, each covering specific operations like wallet connection, token creation, endorsement, and metadata fetching.

Changes

Cohort / File(s) Summary
README Consolidation
README.md
Removed embedded workflow diagram reference and descriptive paragraph; replaced with concise instruction linking to dedicated workflow documentation.
Workflow Documentation Expansion
docs/workflow.md
Restructured content into comprehensive "WORKFLOWS" document with multiple sectioned workflow explanations (wallet connection, DIT token creation, internal flows, metadata operations, endorsement cycles) each accompanied by diagram references. Replaced basic overview bullets with detailed, diagram-driven narrative.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested labels

Documentation

Poem

🐰 A rabbit hops through workflows neat,
With diagrams now complete!
From scattered text to organized flow,
The documentation starts to glow,
Readers find their path with ease!

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating workflow documentation for improved clarity and system understanding, which aligns with the primary objective of enhancing documentation.
Linked Issues check ✅ Passed The PR successfully addresses issue #91 by providing comprehensive workflow documentation with detailed steps and diagram-driven explanations, fulfilling the requirement for more descriptive workflows and improved system flow clarity.
Out of Scope Changes check ✅ Passed All changes are focused on documentation updates to README.md and docs/workflow.md, directly addressing the linked issue requirements with no extraneous modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/workflow.md`:
- Line 12: The workflow images lack alt text; update each <img
src="../public/assets/workflows/connect.png" /> and the seven other workflow
<img> tags to include descriptive alt attributes as suggested (e.g.,
alt="Workflow diagram for creating DIT token using the platform UI",
alt="Workflow diagram for creating DIT token via direct smart contract
interaction", alt="Internal flow diagram showing backend token creation
process", alt="Workflow diagram for fetching token metadata using token URI",
alt="Workflow diagram showing the endorsement process", alt="Workflow diagram
showing the un-endorsement process", alt="Workflow diagram for auto-fetching
metadata via token URI") so screen readers can describe each diagram for
accessibility compliance.
- Around line 1-87: Add a "Related Resources" section to the WORKFLOWS document
that links to the contract repository's workflow docs so readers get end-to-end
coverage; specifically, append a new section with a separator and a heading like
"🔗 Related Resources" and include a bullet/link to the Contract Repository
Workflows (the Contract Repository workflows URL from Issue `#91` / PR
description) so developers can navigate from the "WORKFLOWS" doc to the contract
workflows.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e70b4f68-aa99-4eaa-826c-203d34463b46

📥 Commits

Reviewing files that changed from the base of the PR and between fd6dfc1 and d49a3a6.

⛔ Files ignored due to path filters (9)
  • public/assets/workflows/Internal-flow-create.png is excluded by !**/*.png
  • public/assets/workflows/connect.png is excluded by !**/*.png
  • public/assets/workflows/create-token .png is excluded by !**/*.png
  • public/assets/workflows/create-token-N.png is excluded by !**/*.png
  • public/assets/workflows/create-token.png is excluded by !**/*.png
  • public/assets/workflows/endorsement-flow.png is excluded by !**/*.png
  • public/assets/workflows/fetch-token-metadata.png is excluded by !**/*.png
  • public/assets/workflows/tokenUri.png is excluded by !**/*.png
  • public/assets/workflows/unEndorsement-flow.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • README.md
  • docs/workflow.md

Comment thread docs/workflow.md
Comment on lines +1 to +87
# 📘 WORKFLOWS

![Identity Workflow](./workflow.svg)
This document provides an overview of all major workflows in the system. Each section includes a brief explanation and a visual diagram to help you quickly understand how different parts of the platform interact.

## Overview
---

- **Self-issued identity token minting:** Users create and mint their own identity tokens, optionally attaching metadata. No central issuer is required.
## 🔗 Connect Wallet

- **On-chain identity storage:** Identity tokens and their metadata are stored on-chain (e.g. as ERC-721 NFTs), providing a portable, verifiable record.
This is the entry point for users. By connecting a wallet, users can securely interact with the platform, sign transactions, and access features like token creation and endorsements.

- **Endorsement by other identity holders:** Holders of identity tokens can endorse other identities on-chain, building a graph of attestations and trust.
<p align="center">
<img src="../public/assets/workflows/connect.png" width="600"/>
</p>

- **Optional revocation:** Endorsements or credentials can support revocation (e.g. via a registry or expiry), so trust can be updated or withdrawn when needed.
---

- **Frontend reading on-chain data:** The frontend reads identity and endorsement data from the chain (e.g. via RPC and events) to display profiles, endorsements, and status.
## 🪙 Create DIT Token (Using Platform)

- **External services verifying identity:** Third-party services can verify identity and endorsements by reading the same on-chain data, enabling use cases like access control or credential checks without relying on the frontend alone.
Users can create a DIT token through a simple and guided UI. The platform handles contract interaction, metadata setup, and transaction flow, making it beginner-friendly.

<p align="center">
<img src="../public/assets/workflows/create-token.png" width="600"/>
</p>

---

## ⚙️ Create DIT Token (Without Platform)

This workflow is for advanced users who prefer direct interaction with smart contracts. It involves manually calling contract functions and handling parameters without the platform UI.

<p align="center">
<img src="../public/assets/workflows/create-token-N.png" width="600"/>
</p>

---

## 🔄 Internal Flow for Token Creation

This flow explains what happens behind the scenes when a token is created — including contract deployment/interactions, metadata linking, and backend processes (if any).

<p align="center">
<img src="../public/assets/workflows/Internal-flow-create.png" width="600"/>
</p>

---

## 📦 Fetch Token Metadata

This workflow shows how token metadata is retrieved using the token URI. It includes fetching details like title, description, and other attributes stored off-chain or on-chain.

<p align="center">
<img src="../public/assets/workflows/fetch-token-metadata.png" width="600"/>
</p>

---

## 👍 Endorsement Flow

Users can endorse a token to validate or support it. This process includes wallet confirmation, on-chain verification, and updating the endorsement state.

<p align="center">
<img src="../public/assets/workflows/endorsement-flow.png" width="600"/>
</p>

---

## 🔄 Un-Endorsement Flow

This flow allows users to remove their endorsement. It ensures proper validation and updates the blockchain state accordingly while maintaining data integrity.

<p align="center">
<img src="../public/assets/workflows/unEndorsement-flow.png" width="600"/>
</p>

---

## 🔍 Auto-fetch Metadata via Token URI

Wallets and applications can automatically fetch token metadata using the token URI. This improves usability by displaying token details without manual input.

<p align="center">
<img src="../public/assets/workflows/tokenUri.png" width="600"/>
</p>

---

> 💡 These workflows provide a clear understanding of how users and the system interact, covering both user-facing actions and internal processes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Missing link to contract repository workflows as stated in PR objectives.

Issue #91 and the PR description specifically mention including a reference or link to the contract repository workflows to enable end-to-end understanding of the system. This deliverable appears to be missing from the updated documentation.

Consider adding a section (perhaps at the end or beginning) that links to the contract repository's workflow documentation for developers who need the complete picture.

📎 Suggested addition

Add a new section near the end of the document:

---

## 🔗 Related Resources

For a complete end-to-end understanding of the system, including smart contract workflows and backend processes, please refer to:

👉 [Contract Repository Workflows](https://github.com/StabilityNexus/IdentityTokens-EVM-Contracts/blob/main/docs/workflow.md)

---
🧰 Tools
🪛 markdownlint-cli2 (0.21.0)

[warning] 12-12: Images should have alternate text (alt text)

(MD045, no-alt-text)


[warning] 22-22: Images should have alternate text (alt text)

(MD045, no-alt-text)


[warning] 32-32: Images should have alternate text (alt text)

(MD045, no-alt-text)


[warning] 42-42: Images should have alternate text (alt text)

(MD045, no-alt-text)


[warning] 52-52: Images should have alternate text (alt text)

(MD045, no-alt-text)


[warning] 62-62: Images should have alternate text (alt text)

(MD045, no-alt-text)


[warning] 72-72: Images should have alternate text (alt text)

(MD045, no-alt-text)


[warning] 82-82: Images should have alternate text (alt text)

(MD045, no-alt-text)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/workflow.md` around lines 1 - 87, Add a "Related Resources" section to
the WORKFLOWS document that links to the contract repository's workflow docs so
readers get end-to-end coverage; specifically, append a new section with a
separator and a heading like "🔗 Related Resources" and include a bullet/link to
the Contract Repository Workflows (the Contract Repository workflows URL from
Issue `#91` / PR description) so developers can navigate from the "WORKFLOWS" doc
to the contract workflows.

Comment thread docs/workflow.md

- **Endorsement by other identity holders:** Holders of identity tokens can endorse other identities on-chain, building a graph of attestations and trust.
<p align="center">
<img src="../public/assets/workflows/connect.png" width="600"/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Add alt text to all workflow diagrams for accessibility compliance.

All eight workflow images are missing alt text, which prevents screen readers from describing these diagrams to visually impaired users. This is a WCAG accessibility violation that blocks users with visual disabilities from understanding the documented workflows.

♿ Proposed fix to add descriptive alt text
 <p align="center">
-  <img src="../public/assets/workflows/connect.png" width="600"/>
+  <img src="../public/assets/workflows/connect.png" alt="Workflow diagram showing wallet connection process" width="600"/>
 </p>

Apply similar descriptive alt text to all other images:

  • Line 22: alt="Workflow diagram for creating DIT token using the platform UI"
  • Line 32: alt="Workflow diagram for creating DIT token via direct smart contract interaction"
  • Line 42: alt="Internal flow diagram showing backend token creation process"
  • Line 52: alt="Workflow diagram for fetching token metadata using token URI"
  • Line 62: alt="Workflow diagram showing the endorsement process"
  • Line 72: alt="Workflow diagram showing the un-endorsement process"
  • Line 82: alt="Workflow diagram for auto-fetching metadata via token URI"

Also applies to: 22-22, 32-32, 42-42, 52-52, 62-62, 72-72, 82-82

🧰 Tools
🪛 markdownlint-cli2 (0.21.0)

[warning] 12-12: Images should have alternate text (alt text)

(MD045, no-alt-text)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/workflow.md` at line 12, The workflow images lack alt text; update each
<img src="../public/assets/workflows/connect.png" /> and the seven other
workflow <img> tags to include descriptive alt attributes as suggested (e.g.,
alt="Workflow diagram for creating DIT token using the platform UI",
alt="Workflow diagram for creating DIT token via direct smart contract
interaction", alt="Internal flow diagram showing backend token creation
process", alt="Workflow diagram for fetching token metadata using token URI",
alt="Workflow diagram showing the endorsement process", alt="Workflow diagram
showing the un-endorsement process", alt="Workflow diagram for auto-fetching
metadata via token URI") so screen readers can describe each diagram for
accessibility compliance.

@KanishkSogani KanishkSogani merged commit c008fc3 into StabilityNexus:main Mar 23, 2026
4 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

Development

Successfully merging this pull request may close these issues.

[Update]: more workflows

2 participants