Skip to content

Add safe area to WDOS token icon - #3

Merged
JOY (JOY) merged 1 commit into
mainfrom
codex/wdos-icon-padding
Aug 13, 2026
Merged

Add safe area to WDOS token icon#3
JOY (JOY) merged 1 commit into
mainfrom
codex/wdos-icon-padding

Conversation

@JOY

Copy link
Copy Markdown

Summary

  • add 10% transparent safe area around the WDOS artwork
  • add a regression test for circular-crop padding

Validation

  • python -B -m unittest discover -s tools/token-list-validator -p 'test_*.py'n- python -B tools/token-list-validator/validate_assets.py configs/token-lists/mainnet.jsonn- yarn eslint --config .eslintrc.cjs --resolve-plugins-relative-to . .`n- all config validators
  • Uniswap token-list schema validation
  • rendered at 300x300 and 30x30

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the viewBox of the WDOS.svg icon to add padding and introduces a unit test to verify that the icon has a safe area for circular cropping. The reviewer suggested using the exact original dimensions of the artwork (5808.5 and 5808.4) in the test instead of the rounded 5808.6 to ensure accuracy.

for value in ET.parse(icon_path).getroot().attrib["viewBox"].split()
)
view_x, view_y, view_width, view_height = view_box
artwork_x, artwork_y, artwork_width, artwork_height = (0.0, 0.0, 5808.6, 5808.6)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The original viewBox of the WDOS icon was 0 0 5808.5 5808.4. Hardcoding the artwork dimensions as (0.0, 0.0, 5808.6, 5808.6) in the test introduces a slight discrepancy from the actual original dimensions. Using the actual original dimensions 5808.5 and 5808.4 is more accurate and still passes the assertion of padding_ratio >= 0.095.

Suggested change
artwork_x, artwork_y, artwork_width, artwork_height = (0.0, 0.0, 5808.6, 5808.6)
artwork_x, artwork_y, artwork_width, artwork_height = (0.0, 0.0, 5808.5, 5808.4)

@JOY
JOY (JOY) force-pushed the codex/wdos-icon-padding branch from 3ef1bee to cf6fae7 Compare August 13, 2026 00:08
@JOY
JOY (JOY) force-pushed the codex/wdos-icon-padding branch from cf6fae7 to f4b1ff1 Compare August 13, 2026 00:12
@JOY
JOY (JOY) merged commit 36e4e16 into main Aug 13, 2026
5 checks passed
@JOY
JOY (JOY) deleted the codex/wdos-icon-padding branch August 13, 2026 00:14
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