Skip to content

feat: Add BCOS Badge Generator page#1808

Closed
HuiNeng6 wants to merge 1 commit into
Scottcjn:mainfrom
HuiNeng6:badge-gen
Closed

feat: Add BCOS Badge Generator page#1808
HuiNeng6 wants to merge 1 commit into
Scottcjn:mainfrom
HuiNeng6:badge-gen

Conversation

@HuiNeng6
Copy link
Copy Markdown
Contributor

Summary

  • Added BCOS Badge Generator page at /bcos/badge-generator.html
  • Static HTML/JS implementation with retro terminal aesthetics matching rustchain.org
  • Supports 3 badge styles: flat, flat-square, for-the-badge
  • Generates markdown and HTML embed code for README files
  • Integrates with /bcos/verify API for repository verification

Features

  • Enter repository URL or BCOS certificate ID
  • Live badge preview
  • One-click copy for markdown/HTML code
  • Responsive design for mobile devices
  • Matches rustchain.org terminal-style design

Testing

  • Open docs/bcos/badge-generator.html in browser
  • Enter a BCOS certificate ID (e.g., BCOS-abc123)
  • Select badge style and verify preview
  • Copy generated code to clipboard

Bounty

Solves Bounty #2292 - Badge Generator (15 RTC)

Wallet Address

9dRRMiHiJwjF3VW8pXtKDtpmmxAPFy3zWgV2JY5H6eeT

- Static HTML/JS page for generating BCOS badges
- Retro terminal style matching rustchain.org
- Supports 3 badge styles: flat, flat-square, for-the-badge
- Generates markdown and HTML embed code
- Wallet: 9dRRMiHiJwjF3VW8pXtKDtpmmxAPFy3zWgV2JY5H6eeT
@github-actions
Copy link
Copy Markdown
Contributor

Welcome to RustChain! Thanks for your first pull request.

Before we review, please make sure:

  • Your PR has a BCOS-L1 or BCOS-L2 label
  • New code files include an SPDX license header
  • You've tested your changes against the live node

Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150)

A maintainer will review your PR soon. Thanks for contributing!

@github-actions github-actions Bot added documentation Improvements or additions to documentation size/L PR: 201-500 lines labels Mar 23, 2026
@Scottcjn
Copy link
Copy Markdown
Owner

Closing -- a BCOS Badge Generator was already merged in #1820 (AliaksandrNazaruk). Your implementation is also clean, but we don't need two competing versions. If you'd like to improve on the merged version, submit an enhancement PR that builds on #1820.

@Scottcjn Scottcjn closed this Mar 25, 2026
@FlintLeng
Copy link
Copy Markdown
Contributor

Code Review — PR #1808

Reviewer: FlintLeng

✅ LGTM

— FlintLeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/L PR: 201-500 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants