Skip to content

Modernize app with TypeScript, Next.js 16, Redux typing, and Prisma 7#17

Open
Hazem-GitHub wants to merge 1 commit into
GreatStackDev:mainfrom
Hazem-GitHub:main
Open

Modernize app with TypeScript, Next.js 16, Redux typing, and Prisma 7#17
Hazem-GitHub wants to merge 1 commit into
GreatStackDev:mainfrom
Hazem-GitHub:main

Conversation

@Hazem-GitHub
Copy link
Copy Markdown

Summary

Modernizes the project foundation by migrating the app to TypeScript and the /src directory structure, updating to Next.js 16, strengthening Redux typing, and upgrading Prisma schema/configuration for the latest Prisma version.

Changes

  • Migrated app source into the /src directory structure
  • Updated project to Next.js 16
  • Migrated JavaScript files to TypeScript/TSX
  • Updated tsconfig.json for current TypeScript behavior
  • Added strongly typed Redux store exports:
    • AppStore
    • RootState
    • AppDispatch
  • Added typed Redux hooks:
    • useAppSelector
    • useAppDispatch
  • Strongly typed Redux slices and reducer payloads
  • Updated Redux consumers to use typed hooks
  • Fixed Redux-dependent TypeScript issues across cart, product, order, navbar, and product detail components
  • Upgraded Prisma schema for Prisma 7 compatibility
  • Moved Prisma datasource URL config into prisma.config.ts
  • Removed deprecated Prisma datasource fields and preview features
  • Updated Prisma client generator configuration
  • Added generated Prisma client output to .gitignore
  • Resolved package vulnerabilities through dependency updates
  • Fixed remaining TypeScript issues for file uploads, dashboard data, JSX props, coupon typing, and textarea props

Verification

  • Ran:
npx tsc --noEmit --pretty false
  • TypeScript passes successfully
  • Redux selector type errors are resolved
  • Prisma schema no longer uses deprecated datasource URL fields or deprecated preview feature config

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.

1 participant