Closed mgrigajtis closed 3 months ago
The recent updates enhance the React application by refining the authentication flow with new login and registration components, improving the ESLint configuration for better modern syntax support, and streamlining code in various components. These changes focus on improving user experience, enforcing validation, and maintaining cleaner, more readable code throughout the application.
File(s) | Change Summary |
---|---|
.eslintrc.json.bak |
Updated parser to @babel/eslint-parser and downgraded ecmaVersion from 2022 to 2020. |
package.json |
Updated dependencies (@react-oauth/google , react-quilljs ), added @babel/eslint-parser and quill , removed eslintConfig . |
src/App.tsx |
Added new routes for login and registration components. |
src/components/FetchData.tsx |
Introduced logging for the URL being fetched in fetchData function. |
src/pages/auth/Login.tsx |
Refactored login handling, changed token initial state to null , improved component rendering flow. |
src/pages/auth/LoginEmail.tsx |
New component for email login, implementing authentication and session management. |
src/pages/auth/Register.tsx |
New registration component with validation and API interaction. |
src/pages/leads/Leads.tsx |
Code cleanup, improved lead fetching logic, removed unused exports. |
src/pages/opportunities/AddOpportunity.tsx |
Replaced TextField with RequiredTextField for "Due Date" input. |
sequenceDiagram
participant User
participant Login
participant API
User->>Login: Enters email and password
Login->>API: POST /login
API-->>Login: Returns access token
Login->>User: Redirect to main app
sequenceDiagram
participant User
participant Register
participant API
User->>Register: Enters email and password
Register->>API: POST /register
API-->>Register: Returns access token
Register->>User: Redirect to main app
🐰 "In a world of code and lines,
A rabbit hops through changes fine.
With login paths and routes anew,
We celebrate the work we do!
Dependencies grow, and bugs take flight,
A joyful leap into the night!" 🌙✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
I meant for this to go into my own fork.
13 Refactors Leads.tsx page.
3 fixes issue where loading spinner never goes away if there are 0 leads.
Summary by CodeRabbit
New Features
/login-email
and/register
.Enhancements
Bug Fixes
Documentation