Skip to content

feat: migrate frontend from Next.js to Vite + React - #3

Merged
collinsezedike merged 6 commits into
mainfrom
feat/vite-migration
May 9, 2026
Merged

feat: migrate frontend from Next.js to Vite + React#3
collinsezedike merged 6 commits into
mainfrom
feat/vite-migration

Conversation

@collinsezedike

Copy link
Copy Markdown
Collaborator

Closes #2

Changes

  • Replace Next.js with Vite + React (@vitejs/plugin-react)
  • Add index.html, vite.config.ts, tsconfig.json, tailwind.config.js, postcss.config.cjs
  • Migrate pages/index.tsxsrc/App.tsx + src/main.tsx
  • Replace NEXT_PUBLIC_* env vars with VITE_*
  • Add pnpm-workspace.yaml; remove unsupported workspaces field from root package.json
  • Add VaultCard component and mock vault/position data

@collinsezedike collinsezedike added frontend Involves React components, Tailwind styling, or Next.js pages medium Requires familiarity with the Meridian codebase or relevant tooling; expect 4–8 hours labels Apr 23, 2026
@collinsezedike collinsezedike self-assigned this May 9, 2026
Comment thread apps/web/src/components/dashboard/VaultList.tsx
Comment thread apps/web/src/components/dashboard/PortfolioSummary.tsx

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good migration overall.

The Vite config, ESLint setup, env var renaming, and monorepo plumbing are all handled correctly, and the VaultCard component is a clean addition.

Two things need fixing before this merges: the stale placeholder text in both VaultList and PortfolioSummary is still rendering in the UI, and handleDeposit should be pulled out of the render cycle. The rest of the comments are minor and can be addressed in follow-up PRs if preferred.

Comment thread apps/web/src/components/dashboard/VaultList.tsx Outdated
Comment thread apps/web/src/components/dashboard/VaultCard.tsx Outdated
Comment thread .github/workflows/ci.yml Outdated
run: |
stellar contract build
cargo test
# Uncomment when packages/contracts has a Cargo.toml

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Nit: link a tracking issue in this comment so it doesn't get forgotten. Something like # TODO(#X): restore when packages/contracts has a Cargo.toml.

@collinsezedike
collinsezedike merged commit 930f4a5 into main May 9, 2026
2 checks passed
collinsezedike added a commit that referenced this pull request May 9, 2026
Updates README, turbo.json, docs/github-issues.md, and scripts/setup-github.sh to reflect the Vite + React migration from PR #3.
@collinsezedike collinsezedike removed frontend Involves React components, Tailwind styling, or Next.js pages medium Requires familiarity with the Meridian codebase or relevant tooling; expect 4–8 hours labels May 22, 2026
@collinsezedike
collinsezedike deleted the feat/vite-migration branch June 13, 2026 11:06
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.

[Frontend] Migrate frontend from Next.js to Vite + React

1 participant