Skip to content

feat: add RWA app tutorial - #694

Open
shoom3301 wants to merge 2 commits into
mainfrom
feat/rwa-tutorial
Open

shoom3301 wants to merge 2 commits into
mainfrom
feat/rwa-tutorial

Conversation

@shoom3301

Copy link
Copy Markdown
Contributor

Summary

Adds a CoW Swap tutorial for CoW RWA, the app for tokenized stocks, ETFs and commodities, in the same style as the other CoW Swap tutorials.

New page: cow-protocol/tutorials/cow-swap/rwa (sidebar: Tokenized stocks (RWA)). It covers:

  • connecting a wallet (shared with CoW Swap) and the supported networks
  • finding an asset: market overview, asset type tabs, search, issuer/network filters, watchlist
  • the asset page: Stock / Tokenized stock chart, Stock tokens table, prices per share and how issuers pass on dividends
  • picking a token in the trade panel, with quotes compared across issuers
  • placing an order in the embedded CoW Swap widget, with the token-specific rules (xStocks $10 minimum, US market hours, trading pauses, regional restrictions)
  • the portfolio (positions, open orders, activity) and cancelling an order

Screenshots were taken on dev.swap.cow.fi with a connected wallet (8 images in static/img/cowswap/rwa/).

Notes for reviewers

  • The "Connect wallet" and "Cancel your order" sections have no screenshot. The wallet was already connected, and it had no open orders.
  • The trading rules in the info box (xStocks minimum, Ondo weekends, trading pauses, regional restrictions) come from the app's source and QA notes, not from screenshots. Please check the wording with product.

Test plan

  • yarn build succeeds, and the page and images are generated

🤖 Generated with Claude Code

@shoom3301
shoom3301 requested a review from a team as a code owner November 23, 2026 07:31
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Nov 23, 2026 7:41am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6a77a4cc-93c1-4099-86ca-81873eab5c1e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@shoom3301

shoom3301 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author
✅ AI Review (Claude Opus 5.5, worked ~10m): page matches the app; two nitpicks left

Rechecked (head ae9facf, against apps/rwa-frontend and the widget code in cowswap develop)

  • Weekend rule (rwa.mdx:108): now covers all stock and ETF tokens and says that CoW Swap tells you when trading resumes. This matches useTokenCustomTradeError and useMarketHoursRwaToken. ✅
  • Best-quote labels (:73): Lowest/Highest verified price first, with the plain label as the fallback. This matches quotedTokens.ts. ✅
  • Asset page tabs and news (:51-53): Overview is the default tab, and the profile, news and related assets are optional. This matches AssetAccount.tsx and AssetNews.tsx. ✅
  • Trading pauses (xStocks only, upcoming and active), Activity showing completed trades, the 24h total volume column and the extra Filters: all match the source. ✅
  • Paying only with tokens you hold when buying: matches tradeTokensFilters.ts. ✅
  • Unchanged claims checked again: the 9 networks, the shared wallet connection, the xStocks $10 minimum ($10 per TWAP part), the region block and consent prompt, and the portfolio tabs.

Finding: [NITPICK] The TWAP cancel label differs

  • Location: rwa.mdx:135
  • For a TWAP placed through CoW Shed, the row menu shows Cancel TWAP on-chain, not Cancel on-chain (CancelOrderCell.tsx). A Safe TWAP has no row menu, which the page already covers.

Suggested fix

  • "TWAP orders are cancelled on-chain with Cancel TWAP on-chain. For a TWAP order placed from a Safe, cancel it in the widget instead."

Finding: [NITPICK] "The stock token stays selected" is slightly too strong

  • Location: rwa.mdx:85
  • The buy-side filter lets you switch to another token of the same asset, on any of its networks. What you can't do is swap the two sides.

Suggested fix

  • "…you can't switch the two sides, but you can pick another token of the same asset."
Review scope and related context
  • No other review threads; CodeRabbit skipped this repo.
  • Links and anchors are checked at build time (onBrokenLinks / onBrokenAnchors: 'throw'). yarn build passes locally with the fixes.
  • Optional polish: the mouse cursor is visible in home.png, asset_page.png, token_selector.png and portfolio.png.
🤖 Prompt for AI agents
Edit docs/cow-protocol/tutorials/cow-swap/rwa.mdx only.
- Cancel section: CoW Shed TWAP orders show `Cancel TWAP on-chain` in the row menu (apps/rwa-frontend/src/widgets/account/ui/CancelOrderCell.tsx).
- Place your order: replace "The stock token stays selected, so you can't switch the two tokens" with wording saying the two sides can't be switched, but another token of the same asset can be picked.
Validate with `yarn build`.

Generated using the pr-review skill from the CoW Protocol skills repo.

This branch was successfully deployed

1 active deployment
Preview — ae9facfd Deployed Nov 23, 2026 by vercel[bot]
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.

1 participant