-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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 toNetworkName
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'
In production: https://react.dev/errors/418?args[]=text&args[]=

In development:

