-
Notifications
You must be signed in to change notification settings - Fork 1
Main PR #6
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
base: main
Are you sure you want to change the base?
Main PR #6
Conversation
App configuration
feat: add routing
Authorization supabase
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Remove unnecessary files
add translations for RU and EN languages
JEST Testing
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 adds comprehensive tests and configuration updates to support the core functionality of the REST Client application and its related pages. Key changes include:
- Addition of extensive test suites covering MainPage, HomePage, History, Headers, Code generation, and various UI components.
- Integration of ESLint, Prettier, and Husky into the repository with updated configuration files.
- Setup of Next.js middleware for Supabase session handling and basic project documentation updates.
Reviewed Changes
Copilot reviewed 90 out of 90 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/tests/MainPage.test.tsx | Tests MainPage for user email display, logout button, and navigation. |
| src/tests/HomePage.test.tsx | Tests redirection and display logic for authenticated/unauthenticated users. |
| src/tests/Home.test.tsx | Additional coverage for Home component links and messages. |
| src/tests/HistoryContent.test.tsx | Tests History request display, sorting, and body truncation logic. |
| src/tests/HeadersBlock.test.tsx | Ensures proper header field registration and dynamic behavior. |
| src/tests/Header.test.tsx | Verifies correct user data propagation to the Header component. |
| src/tests/Footer.test.tsx | Validates footer links and display of developer info. |
| src/tests/Content.test.tsx | Covers form validation and signup process scenarios. |
| src/tests/CodeBlock.test.tsx | Tests code generation functionality and language tab switching. |
| src/tests/ClientHeader.test.tsx | Checks navigation and user details for authenticated header display. |
| postcss.config.mjs | Config file for Tailwind CSS PostCSS integration. |
| package.json | Dependency and script updates for project tooling. |
| next.config.ts | Basic Next.js configuration file. |
| middleware.ts | Implements Supabase session update middleware. |
| eslint.config.mjs | ESLint configuration integrated with Prettier and TypeScript support. |
| README.md | Project documentation and usage instructions. |
| .prettierrc, .prettierignore | Project code formatting configuration. |
| .husky/pre-push, .husky/pre-commit | Git hooks for linting and testing prior to repository operations. |
Task: https://github.com/rolling-scopes-school/tasks/blob/master/react/modules/tasks/final.md
Screenshot:

Deployment: https://rest-client-app-five.vercel.app/
YouTube: https://youtu.be/Zg-JCwmahBw
Done 21.04.2025 / deadline 21.04.2025
Score: 450 / 450
Main route - max 50 points
Sign In / Sign Up - max 50 points
RESTful client - max 150 points
History route - max 50 points
Variables route - max 50 points
General requirements - max 50 points
Youtube video - max 50 points
Penalties