Skip to content

feat(widget): add prioritizedTokens widget setting entry - #693

Merged
azebuado merged 1 commit into
mainfrom
feat/document-priorityTokens
Nov 25, 2026
Merged

azebuado merged 1 commit into
mainfrom
feat/document-priorityTokens

Conversation

@azebuado

@azebuado azebuado commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Documents the new prioritizedTokens widget parameter from cowprotocol/cowswap#8687, which lets integrators move their own tokens up the token selector on each network.

Fixes FE-1114

Details

What changed

  • Added a prioritizedTokens row after hideFavoriteTokens in the CowSwapWidgetParams table in docs/cow-protocol/tutorials/widget/widget.md.
  • Added a prioritizedTokens section under "Custom tokens":
    • the "All tokens" order: native token, held tokens, prioritized tokens without a balance (in the configured order), then everything else
    • only the order changes; search, "Favorite tokens" and "Recent tokens" are unchanged
    • addresses missing from the active token lists are skipped (add them with customTokens)
    • a code example for Ethereum and Arbitrum, and where to set it in the configurator

Why

  • A partner asked to surface their tokens in the embedded selector without hiding the rest. The parameter needs a docs entry before integrators can find it.

Risks

  • The parameter only works once a widget build with cowswap#8687 is deployed, and that PR is still open. If this lands first, the docs list an option that has no effect yet.
  • The cowswap PR also says sellTokensFilter / buyTokensFilter apply before prioritization. Those params aren't documented here, so this PR doesn't mention them.

To test

  1. Open /cow-protocol/tutorials/widget#cowswapwidgetparams
  2. Make sure the table has a prioritizedTokens row right after hideFavoriteTokens, and the table still renders normally
  3. Click "Prioritized tokens" in that row
  4. Make sure it jumps to the prioritizedTokens section after customTokens, with the numbered order and the code example
  5. In that section, click customTokens
  6. Make sure it jumps back to the customTokens section

Preview URLs

Self-checks

  • I have read CONTRIBUTING.md
  • I have manually tested changes on Vercel preview deployment
  • I have done self-review and (or) AI review
  • I have addressed all comments from @coderabbitai
  • I have less than three open PRs/Stacks in this repo at the moment of creating this PR

@vercel

vercel Bot commented Nov 20, 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 20, 2026 4:31pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 20, 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: 61bae5ae-15bd-43f1-8bbe-88ff5bb11a35
  • 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

@linear-code

linear-code Bot commented Nov 20, 2026

Copy link
Copy Markdown

FE-1114

@azebuado
azebuado marked this pull request as ready for review November 20, 2026 16:34
@azebuado
azebuado requested a review from a team as a code owner November 20, 2026 16:34
@azebuado
azebuado requested a review from a team November 20, 2026 16:34
@azebuado
azebuado merged commit 29de48d into main Nov 25, 2026
5 checks passed
@azebuado
azebuado deleted the feat/document-priorityTokens branch November 25, 2026 17:53
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 25, 2026

This branch was successfully deployed

1 active deployment
Preview — c6ac9283 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants