feat: use ordinal thumbnails (ENG-2296) #494
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π PR Type
What kind of change does this PR introduce?
π Background
Currently, we don't display HTML ordinals due to security risks, and SVG recursive ordinals don't work in the extension.
We want to display a thumbnail jpg preview of such ordinals.
Issue Link: ENG-2296
π Changes
πΌ Screenshot / πΉ Video
A before shot for reference:
![image](https://private-user-images.githubusercontent.com/3322667/250066926-1be889f2-7517-4433-a1d8-e378514c990f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NTQ0MTEsIm5iZiI6MTcyMDk1NDExMSwicGF0aCI6Ii8zMzIyNjY3LzI1MDA2NjkyNi0xYmU4ODlmMi03NTE3LTQ0MzMtYTFkOC1lMzc4NTE0Yzk5MGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTRUMTA0ODMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjUxN2IxNTE5YTcyM2IyODI4NjVjYjk3MjNiOTJjM2JmYzNhZTIzOWU0YWQ5YmVlNGIxN2I3N2Y0ZjE1NzJhNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.cJGHiGKU2ks0TD7PuxKFHt3_6ov7e5dwHFlfxPwI2cY)
This is the button on ordinals that takes you to the new ordinal viewer:
![image](https://private-user-images.githubusercontent.com/3322667/250880666-84d14531-78b5-42e8-a6d9-c4f899318ad8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NTQ0MTEsIm5iZiI6MTcyMDk1NDExMSwicGF0aCI6Ii8zMzIyNjY3LzI1MDg4MDY2Ni04NGQxNDUzMS03OGI1LTQyZTgtYTZkOS1jNGY4OTkzMThhZDgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTRUMTA0ODMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmMyZjg5M2QxYjIyMzRhMmVlMWY2ZGM1MGFkMTZiOWU4YzdjNDM2ZTMyYWUxMTI5NWMyYjcxZjE2MWNiMGE4NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.iWqaAzFFvx9g-BDWdk5y6Ua_ir2qwYZJhUGvlTRBlpY)
β Review checklist
Please ensure the following are true before merging: