Closed d02ev closed 4 weeks ago
The pull request includes updates to both backend and frontend components. Key changes involve modifications to the backend environment configuration, including new database credentials and a JWT secret. Enhancements to team management functionality are made with new permissions and routes, along with the introduction of asynchronous functions for team operations. On the frontend, updates focus on authentication handling, new state management for team member invitations, and adjustments to constants and helper functions to support these features.
File Path | Change Summary |
---|---|
backend/.env | - Updated DEV_DB_USERNAME and DEV_DB_PASSWORD . - Added JWT_SECRET . |
backend/config/settings.js | - Added createOrganisation permission for userRole.ADMIN . |
backend/src/controllers/team.controller.js | - Added setOrganisation function for team creation and updated exports. |
backend/src/routes/team.routes.js | - Added new POST route /set-organisation protected by JWT and permission checks. |
backend/src/service/team.service.js | - Added createTeam(name) and getTeamByName(name) methods for team management. |
frontend/src/scenes/login/CreateAccountPage.jsx | - Imported AUTH_TYPE and updated handleSignUp to include AUTH_TYPE.SIGNUP . |
frontend/src/scenes/login/LoginPage.jsx | - Imported AUTH_TYPE and updated handleSubmit to include AUTH_TYPE.LOGIN . |
frontend/src/scenes/progressSteps/ProgressStepsMain.jsx | - Added state variables for error handling and loading state. - Introduced sendInvitesAndSetOrgName function. |
frontend/src/services/teamServices.js | - Added sendInvites and setOrganization functions for team operations. |
frontend/src/utils/constants.js | - Updated API_BASE_URL exports and added AUTH_TYPE constants. |
frontend/src/utils/loginHelper.js | - Updated handleAuthSuccess function signature to include authType for conditional navigation. |
.env
file changes in the main PR regarding database credentials and JWT secret..env
file to include a JWT_SECRET
, which is directly related to the changes made in the main PR where a new JWT_SECRET
variable was introduced..env
file modifications in the main PR.backend
, frontend
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?
team.controller.js
..env
.