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: sync chains and token with url #398

Merged
merged 9 commits into from
Jan 27, 2025
Merged

feat: sync chains and token with url #398

merged 9 commits into from
Jan 27, 2025

Conversation

Xaroz
Copy link
Contributor

@Xaroz Xaroz commented Jan 23, 2025

  • Sync chains select with URL so that there is persistence
  • Sync token with URL for persistence
  • Added util functions to handle special cases so that app does not crash

fixes #397

@Xaroz Xaroz requested review from jmrossy and nambrot as code owners January 23, 2025 19:38
Copy link

vercel bot commented Jan 23, 2025

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

Name Status Preview Comments Updated (UTC)
hyperlane-warp-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 11:14pm
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
injective-bridge ⬜️ Ignored (Inspect) Jan 27, 2025 11:14pm
nautilus-bridge ⬜️ Ignored (Inspect) Jan 27, 2025 11:14pm
nexus-bridge ⬜️ Ignored (Inspect) Jan 27, 2025 11:14pm
renzo-bridge ⬜️ Ignored (Inspect) Visit Preview Jan 27, 2025 11:14pm
trump-bridge ⬜️ Ignored (Inspect) Visit Preview Jan 27, 2025 11:14pm

Copy link

vercel bot commented Jan 23, 2025

Deployment failed with the following error:

Preview deployments are disabled for this project.

src/features/tokens/TokenSelectField.tsx Outdated Show resolved Hide resolved
src/features/tokens/TokenSelectField.tsx Outdated Show resolved Hide resolved
src/features/tokens/TokenSelectField.tsx Outdated Show resolved Hide resolved
src/features/tokens/TokenSelectField.tsx Outdated Show resolved Hide resolved
src/features/transfer/TransferTokenForm.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@jmrossy jmrossy left a comment

Choose a reason for hiding this comment

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

Your general approach to solving the problem here is good but there IMO there are some subtle code smells here (see comments). These aren't obvious issues, just subtleties related to code quality and organization that may possibly hurt maintainability in the long run. But don't be discouraged. You'll naturally get better at nuances like naming, organization, and consistency with more experience.

src/consts/app.ts Outdated Show resolved Hide resolved
src/features/chains/utils.ts Outdated Show resolved Hide resolved
src/features/transfer/TransferTokenForm.tsx Outdated Show resolved Hide resolved
src/features/transfer/TransferTokenForm.tsx Show resolved Hide resolved
src/features/transfer/TransferTokenForm.tsx Show resolved Hide resolved
src/features/transfer/TransferTokenForm.tsx Outdated Show resolved Hide resolved
src/features/transfer/TransferTokenForm.tsx Outdated Show resolved Hide resolved
src/consts/core.ts Outdated Show resolved Hide resolved
@Xaroz Xaroz changed the title feat: sync chains with url feat: sync chains and token with url Jan 27, 2025
@Xaroz Xaroz enabled auto-merge January 27, 2025 23:13
@Xaroz Xaroz merged commit 275a3df into main Jan 27, 2025
11 of 13 checks passed
@Xaroz Xaroz deleted the feat/chains-sync branch January 27, 2025 23:13
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.

Persist chain/token in url params in Warp UI
2 participants