Skip to content

Comments

Feat/sbtc token id page#2643

Open
nick-stacks wants to merge 7 commits intomainfrom
feat/sbtc-token-id-page
Open

Feat/sbtc token id page#2643
nick-stacks wants to merge 7 commits intomainfrom
feat/sbtc-token-id-page

Conversation

@nick-stacks
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Adds the sbtc token id page header

Issue ticket number and link

Checklist:

  • I have performed a self-review of my code.
  • I have tested the change on desktop and mobile.
  • I have added thorough tests where applicable.
  • I've added analytics and error logging where applicable.

Screenshots (if appropriate):

@vercel
Copy link

vercel bot commented Nov 20, 2025

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

Project Deployment Preview Comments Updated (UTC)
stacks-labs-explorer Ready Ready Preview Comment Nov 24, 2025 8:40pm

heidar-stacks
heidar-stacks previously approved these changes Nov 24, 2025
@ginny-stacks
Copy link
Collaborator

ginny-stacks commented Nov 24, 2025

Here's the QA review:

  • 1) Update bridge links:
    Update “Get sBTC” button and “How can I get sBTC?” links to point to https://sbtc.stacks.co/ (this was changed recently).

  • 2) Correct URL:
    Confirm that this token page should be accessible at: explorer.stacks.co/sbtc

Implementation:
h

Figma:
i


  • 4) Responsive market data boxes:
    Market data boxes should adapt to the viewport width.

Implementation:
1

Figma:
2


  • 5) USD formatting issue (site-wide):
    When prices are shown in USD, the text currently appends “US” before the numbers, making them cumbersome and harder to read. Remove the “US” prefix entirely and ensure the $ symbol uses the standard single-stroke glyph.

Implementation:
4

Figma:
5


  • 6) The bottom-right corner of the “Total Supply” box should use a 30px radius to better match the circular token illustration.
5 6
  • 7) sBTC icon alignment:
    The sBTC icon appears visually off-center within its circle. Use the optimized version attached in the issue.

Implementation:
8

Figma:
9

(Right click and save here ⬇️)
sbtc-tokenicon


  • 8) Remove redundant market data block:
    The market data block on this page is redundant with the header. Replace it with links to the protocol contracts.
11 12
a b
  • 10) Market data boxes, font & USD issue:
    The “US” issue appears again here. Also please confirm that font styles use heading-sm as intended.

Implementation:
e

Figma:
f


  • 11) Remove SIP-10 data banner (this page only):
    For this sBTC token page, remove the SIP-10 compliance banner. It may create unnecessary concern; we can guarantee its accuracy internally as it is our own product.
k
  • 12) Mobile sticky header icon size:
    The token image in the mobile sticky header is too large. It should scale to 24×24px.

Implementation:
m

Figma:
n
o

@nick-stacks
Copy link
Contributor Author

nick-stacks commented Nov 24, 2025

@ginny-stacks Regarding #7, we are actually using the token image we get from the Token Metadata API. I think the optimal solution is to update the token image the API is using vs changing the logic to handle a custom svg just for sbtc.

My message to the API team is here

@ginny-stacks
Copy link
Collaborator

@ginny-stacks Regarding #7, we are actually using the token image we get from the Token Metadata API. I think the optimal solution is to update the token image the API is using vs changing the logic to handle a custom svg just for sbtc.

My message to the API team is here

Thanks! 🙏

@nick-stacks
Copy link
Contributor Author

@ginny-stacks I believe I have solved the US$ issue, but I am having a hard time replicating it with even with a VPN. Please confirm if the issue is fixed for you.

Just FYI, the fix is making sure that we are using the narrowsymbol config parameter for the intl.numberformat function
image

@ginny-stacks
Copy link
Collaborator

Thanks! It looks great, just one last small tweak:

  • On the FAQ cards, it would be great to add the interaction to close them upon clicking anywhere outside the box
Screenshot 2025-11-25 at 09 50 11
  • Regarding the sBTC token image, the core developers recommended hard-coding the optimized version at this point because updating the image within the contract is non-trivial, which would be the only way that allows the token API to reliably fetch the latest version.

@andresgalante-stacks This should be ready to release after those two updates. The question remains when do we want to release this update, if after the Bridge, or after the updated Withdrawal/Deposit/Transfers tabs, and/or the updated sBTC transaction ID pages. (or just now)

@ginny-stacks ginny-stacks mentioned this pull request Jan 6, 2026
4 tasks
@heidar-stacks heidar-stacks force-pushed the feat/enable-token-id-page-redesign branch from 13e367f to feb4b03 Compare January 9, 2026 22:58
Base automatically changed from feat/enable-token-id-page-redesign to main January 12, 2026 22:17
@heidar-stacks heidar-stacks dismissed their stale review January 12, 2026 22:17

The base branch was changed.

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.

3 participants