Skip to content

fix: hydration issues, missing routes #1125

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

Merged
merged 7 commits into from
Jul 4, 2025
Merged

fix: hydration issues, missing routes #1125

merged 7 commits into from
Jul 4, 2025

Conversation

DanielSchiavini
Copy link
Collaborator

@DanielSchiavini DanielSchiavini commented Jul 3, 2025

  • styling: lending markets #1122 fixed the table skeleton, however the server raises some errors during the initial load
  • fixed the errors below
  • added missing routes to the llamalend app

In production: https://react.dev/errors/418?args[]=text&args[]=
image

In development:
Screenshot from 2025-07-03 09-35-09
Screenshot from 2025-07-03 09-46-37

Copy link

vercel bot commented Jul 3, 2025

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

Name Status Preview Comments Updated (UTC)
curve-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2025 9:59am
curve-dapp-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2025 9:59am

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses hydration errors by refining the skeleton layout and ensures new LlamaLend routes are registered in both the app and end-to-end tests.

  • Add llamalend to route patterns and test support utilities
  • Adjust PageLlamaMarkets layout to avoid hydration mismatches
  • Introduce new dynamic routes for integrations and disclaimer pages

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/cypress/support/ui.ts Added llamalend to allowed app paths for UI helpers
tests/cypress/e2e/llamalend/llamalend-markets.cy.ts Switched import to package dist build of GetMarketsResponse
packages/eslint-config-custom/index.js Annotated map callback keys with inline comments
packages/curve-ui-kit/src/themes/design/1_sizes_spaces.ts Introduced new pageContent min-height token
apps/main/src/llamalend/llamalend.types.ts Defined NetworkEnum and NetworkUrlParams types
apps/main/src/llamalend/PageLlamaMarkets/Page.tsx Updated skeleton wrapper to use Stack and MinHeight.pageContent
apps/main/src/llamalend/PageLlamaMarkets/MarketsFilterChips.tsx Refined connection check for market filter chips
apps/main/src/llamalend/PageLlamaMarkets/LlamaMarketsTable.tsx Guard filtered row model usage and adjust hidden count guard
apps/main/src/app/llamalend/[network]/integrations/page.tsx Added dynamic integrations page
apps/main/src/app/llamalend/[network]/disclaimer/page.tsx Added dynamic disclaimer page
Comments suppressed due to low confidence (3)

apps/main/src/llamalend/llamalend.types.ts:3

  • [nitpick] The type NetworkEnum is actually a string union rather than a true enum; consider renaming it to NetworkName for clarity.
export type NetworkEnum = INetworkName

apps/main/src/app/llamalend/[network]/integrations/page.tsx:2

  • [nitpick] Consider adding a proper JIRA/ticket reference or creating a follow-up task rather than a generic // todo comment to track this refactor.
// todo: we import the lend integrations page for now, we should refactor the integrations page to be shared between all apps

apps/main/src/app/llamalend/[network]/disclaimer/page.tsx:4

  • New disclaimer and integrations pages have been added—ensure end-to-end tests cover navigation to these routes for both happy paths and error states.
import { Disclaimer } from '@ui-kit/widgets/Disclaimer'

@0xAlunara 0xAlunara merged commit 30f1762 into main Jul 4, 2025
13 of 16 checks passed
@0xAlunara 0xAlunara deleted the fix/llamalend branch July 4, 2025 13:17
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