Skip to content

fix: rename ePN#18

Merged
rongquan1 merged 1 commit intomainfrom
fix/document-name
Aug 15, 2025
Merged

fix: rename ePN#18
rongquan1 merged 1 commit intomainfrom
fix/document-name

Conversation

@isaackps
Copy link
Copy Markdown
Contributor

@isaackps isaackps commented Aug 15, 2025

Summary

document naming wrongly, so did a swap

Changes

  • update document name, as it was name wrongly

Issues

document naming wrong:
operative as inoperative
inoperative as operative

Releases

Channels: latest
ETA: Any target release date

Summary by CodeRabbit

  • Bug Fixes

    • Corrected QR codes in electronic promissory note samples so each version (operative and inoperative) links to its corresponding document, ensuring scans resolve correctly.
  • Chores

    • Refreshed credential metadata (identifiers, status tokens) and regenerated cryptographic proofs and timestamps to align with the updated artifacts. No changes to issuers, issuance dates, or verification method.

@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 15, 2025

Deploy Preview for tradetrust-gallery ready!

Name Link
🔨 Latest commit d1da107
🔍 Latest deploy log https://app.netlify.com/projects/tradetrust-gallery/deploys/689ef9fe43a095000813ecf9
😎 Deploy Preview https://deploy-preview-18--tradetrust-gallery.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 15, 2025

Walkthrough

Two static Verifiable Credential JSONs for electronic promissory notes were updated. Both swapped QR code URIs between operative/inoperative variants and refreshed identifiers (top-level id, credentialStatus.tokenId) and BBS+ proof fields (proof.created, proofValue). No schema, issuer, or verificationMethod changes.

Changes

Cohort / File(s) Summary of Changes
Promissory note VC JSONs
public/static/electronic-promissory-note-inoperative.json, public/static/electronic-promissory-note-operative.json
Swapped qrCode.uri targets between operative/inoperative documents; updated credentialStatus.tokenId, top-level id, and BBS+ proof fields (proof.created, proofValue). All other fields unchanged.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15–20 minutes

Possibly related PRs

Poem

A rabbit taps with tidy paws,
Two notes now swap their QR laws.
New tokens, proofs—signatures bright,
IDs refreshed in morning light.
I twitch my nose, approve the pair—
Operative here, inoperative there.
Hop! The ledger’s crisp and fair.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/document-name

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
public/static/electronic-promissory-note-inoperative.json (2)

47-48: Gitleaks warning is a false positive

The tokenRegistry address and tokenId are public on-chain identifiers, not secrets. Consider allowlisting this path/pattern to avoid noise in CI.


42-42: Confirm intent: QR codes cross-link between operative and inoperative variants

I ran the helper script — both JSON files' qrCode payloads point to the other variant (they're cross-linked). Please confirm intended UX or change to self-referencing QR for reproducibility.

If cross-linking is intentional, no change needed. If not, update each file's qrCode.payload.uri to reference its own JSON.

public/static/electronic-promissory-note-operative.json (2)

42-42: Confirm intent: QR code now links to the inoperative variant

Mirrors the other file by cross-linking. If the QR should resolve to itself instead, swap to the operative JSON URI.

You can use the same verification script provided in the other comment to inspect what the QR resolves to.


47-48: Gitleaks “generic API key” — likely false positive

These fields are public blockchain identifiers. Recommend adding an ignore rule for these sample static JSONs to reduce CI noise.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 154be4e and d1da107.

📒 Files selected for processing (2)
  • public/static/electronic-promissory-note-inoperative.json (1 hunks)
  • public/static/electronic-promissory-note-operative.json (1 hunks)
🧰 Additional context used
🪛 Gitleaks (8.27.2)
public/static/electronic-promissory-note-operative.json

47-47: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


48-48: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

public/static/electronic-promissory-note-inoperative.json

47-47: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


48-48: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

🔇 Additional comments (6)
public/static/electronic-promissory-note-inoperative.json (3)

48-48: tokenId rotation looks fine; ensure it maps to the intended sample state

New tokenId set. Sanity check that:

  • It corresponds to the intended sample token on chain 101010 in the given registry.
  • It’s unique across the two variants (no accidental reuse).

52-52: New VC id assigned — LGTM

Top-level id rotated to a new urn. No issues.


55-55: Proof metadata refreshed — ensure verifiability passes

BBS+ proof timestamp and value updated to match content changes. Looks correct. Please verify in the gallery/trust viewer that the credential still verifies end-to-end.

Also applies to: 57-57

public/static/electronic-promissory-note-operative.json (3)

48-48: tokenId rotation — LGTM, but verify registry mapping

New tokenId is a distinct 32-byte hex. Validate it reflects the correct sample state in the configured FREE/101010 network.


52-52: New VC id assigned — LGTM


55-55: Proof metadata updated — LGTM; perform a viewer verification

Proof timestamp and value updated. Please sanity-check in the viewer that the signature validates with the existing verificationMethod.

Also applies to: 57-57

@rongquan1 rongquan1 merged commit 529204c into main Aug 15, 2025
6 checks passed
@rongquan1 rongquan1 deleted the fix/document-name branch August 15, 2025 09:25
@coderabbitai coderabbitai Bot mentioned this pull request Aug 18, 2025
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.

2 participants