diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..7bef6b2 --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,12 @@ +# GemHub frontend + +Create React App 5 with React 18 and TypeScript 4. The checked-in `tsconfig.json` and `src/react-app-env.d.ts` are required for CRA to recognize the TypeScript entry point and App module. + +```bash +npm ci --ignore-scripts --no-audit --no-fund +npm run lint +CI=true npm run build +npm start +``` + +The development proxy targets the Ruby API at `http://localhost:4567`. Build and lint checks do not verify that service or marketplace mutations. Create Gem, Sandbox, and Benchmarks currently contain coming-soon interfaces; a successful build does not make them implemented features. diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index bef7181..c0935b3 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -7,11 +7,9 @@ import { GemResponse, CreateGemRequest, UpdateGemRequest, - Rating, RatingsResponse, RatingResponse, CreateRatingRequest, - Badge, BadgesResponse, BadgeResponse, CreateBadgeRequest, diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 0926e26..d034c41 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -121,9 +121,9 @@ function Layout({ children }: LayoutProps) { {/* Navigation */}