Skip to content

feat(product): build dark mode IDE mockup with syntax highlighting - #354

Merged
johdanike merged 2 commits into
SwiftChainn:mainfrom
amoduenechojo:feat/product-contract-mockup
Jul 29, 2026
Merged

feat(product): build dark mode IDE mockup with syntax highlighting#354
johdanike merged 2 commits into
SwiftChainn:mainfrom
amoduenechojo:feat/product-contract-mockup

Conversation

@amoduenechojo

Copy link
Copy Markdown
Contributor

Summary

Implements the Solidity contract IDE mockup for the product/marketing page:

  • components/product/ContractMockup.tsx — MacOS-style window frame (traffic-light
    dots, title bar), dark-mode-optimized Solidity/TypeScript syntax highlighting via
    PrismJS, loading skeleton, error state with retry, and copy-to-clipboard.
  • hooks/useContractMockup.ts — fetches the snippet (TanStack Query) and manages
    copy-to-clipboard state.
  • services/contractMockupService.ts — API client; no inline mock data in the
    component.
  • app/api/product/contract-mockup/route.ts — backend data source for the snippet.
  • types/contractMockup.ts — shared ContractSnippet type.

Architecture follows the existing Component → Hook → Service layering used
throughout the codebase (e.g. PaymentLockuseCurrencyConversionfxService).

Testing

  • Added unit tests for the component, hook, and service (11 tests, all passing).
  • tsc --noEmit and ESLint clean on all new/changed files.
  • Manually verified in the dev server: window chrome, dark syntax highlighting,
    loading/error states, and copy button all behave correctly.

Closes #325

@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@amoduenechojo 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

@johdanike

Copy link
Copy Markdown
Contributor

Fix cicd build issues

@johdanike
johdanike merged commit 8103c54 into SwiftChainn:main Jul 29, 2026
0 of 2 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.

Frontend: Smart Contract Escrow IDE Mockup

2 participants