Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [info] add new tdp nav #7531

Merged
merged 7 commits into from
Nov 9, 2023
Merged

feat: [info] add new tdp nav #7531

merged 7 commits into from
Nov 9, 2023

Conversation

kristiehuang
Copy link
Contributor

@kristiehuang kristiehuang commented Oct 31, 2023

@kristiehuang kristiehuang requested review from a team and natew October 31, 2023 21:44
Copy link

vercel bot commented Oct 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 8:09pm

Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #7531 (6fae0fa) into main (418ee08) will decrease coverage by 0.02%.
The diff coverage is 31.03%.

Flag Coverage Δ
cloud-tests 83.60% <ø> (ø)
unit-tests 43.10% <31.03%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link

cypress bot commented Oct 31, 2023

Passing run #15401 ↗︎

0 127 0 0 Flakiness 0

Details:

feat: [info] add new tdp nav
Project: Uniswap Interface Commit: 6fae0face6
Status: Passed Duration: 03:42 💡
Started: Nov 8, 2023 8:09 PM Ended: Nov 8, 2023 8:12 PM

Review all test suite changes for PR #7531 ↗︎

src/components/Tokens/TokenDetails/AddressSection.tsx Outdated Show resolved Hide resolved
Comment on lines 227 to 228
<Trans>Explore</Trans> <ChevronRight data-testid="token-details-return-button" size={14} />{' '}
<Trans>Tokens</Trans> <ChevronRight data-testid="token-details-return-button" size={14} />
Copy link
Contributor

Choose a reason for hiding this comment

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

should these two be individually clickable? Explore to /explore and Tokens to /explore/tokens/chain?

Copy link
Contributor Author

@kristiehuang kristiehuang Nov 1, 2023

Choose a reason for hiding this comment

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

hm, design says clicking on Explore should open back up to the chain-specific page. And since /explore defaults to the same tokens tab anyway, I think it makes sense to have it be one link.

Copy link
Contributor Author

@kristiehuang kristiehuang Nov 1, 2023

Choose a reason for hiding this comment

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

but should be two separate links in PDP nav, i've noted it in Linear

src/components/Tokens/TokenDetails/Skeleton.tsx Outdated Show resolved Hide resolved
src/components/Tokens/TokenDetails/index.tsx Outdated Show resolved Hide resolved
src/theme/components/index.tsx Outdated Show resolved Hide resolved
src/theme/components/index.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@cbachmeier cbachmeier left a comment

Choose a reason for hiding this comment

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

small cleanup nit

src/components/Tokens/TokenDetails/Skeleton.tsx Outdated Show resolved Hide resolved
display: flex;
align-items: center;
color: ${({ theme }) => theme.neutral2};
transition-duration: ${({ theme }) => theme.transition.duration.fast};
Copy link
Contributor

Choose a reason for hiding this comment

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

Which transition is this controlling the duration of? If the animation / transition has been removed, this is no longer needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The hover - makes the hoverover feel just a touch less sudden

<ArrowLeft size={14} /> Tokens
</BreadcrumbNavLink>
{isInfoTDPEnabled ? (
<NavBubble />
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should (at least partially) render the nav on the skeleton. It doesn't depend on remote data, so it's already available when the page starts rendering. Also, this would allow the user to navigate back to the main explore page if the TDP never actually finishes loading. This appears to be what the existing breadcrumb nav does by rendering the back-link in the skeleton.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point

<CopyContractAddress
address={address}
showTruncatedOnly
truncatedAddress={shortenAddress(address)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the address be uppercase or lowercase? It's currently lowercase in the URL params but contains uppercase letters in the AddressSection.

Copy link
Contributor Author

@kristiehuang kristiehuang Nov 8, 2023

Choose a reason for hiding this comment

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

on the blockchain, it's the same bc ethereum addresses are not case-sensitive. but in practice, we use the case-sensitive version in the ui because its checksummed

@kristiehuang kristiehuang merged commit 876d3a1 into main Nov 9, 2023
25 of 26 checks passed
@kristiehuang kristiehuang deleted the info/tdp-header branch November 9, 2023 19:51
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