-
Notifications
You must be signed in to change notification settings - Fork 11
Limbic Assessment - Senior Full-Stack Software Engineer #3
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
Open
zainakram2017
wants to merge
19
commits into
LimbicAI:main
Choose a base branch
from
zainakram2017:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Implement basic authentication context with AuthProvider and useAuth hook - Create private route component for authenticated routes - Add LoginPage and HomePage components
- Added LoginForm component with Formik and Yup validation - Implemented dummy login and logout functions in AuthContext - Added PrivateRoute component for authenticated routes - Created LoginPage, NotFoundPage, LoginPageRoute components - Implemented routing logic in Routes component
- Added UserProvider import and wrapped Routes component with it in App - Created ProfileDropdown component to display user menu items - Used UserProvider in UserList component to fetch and display users - Implemented UserList component in HomePage - Added QuestionPage component
- Created a QuestionsPage component to display questions - Implemented QuestionContext to manage state related to questions - Implemented functionality to add, edit, and delete questions in QuestionProvider - Integrated the modal into Navbar for adding new questions - Integrated the modal into QuestionsPage for editing questions
- Implemented new routes for user data handling and authentication.
- Added request handlers for user creation, update, and retrieval.
- Implemented new routes for questions data handling, authentication and authorization.
- Added request handlers for questions creation, update, and retrieval.
- Implemented new routes for answers data handling, authentication and authorization.
- Added request handlers for answers creation, update, and retrieval.
- Added for automatic DB checks, migrations, and seeding. - Modified npm scripts for DB prep in dev and prod environments. - Enhanced error handling for DB operations.
…ponse - Added CORS middleware to handle cross-origin requests - Modified login handler to include user data in the response
- Added Axios dependency for making API requests - Updated login functionality to use Axios for calling the mock login endpoint - Modified login form to accept username instead of email for consistency - Updated authentication context to store user data upon successful login
- Restructured app to remove unnecessary context providers - Consolidated authentication and user API calls into separate files - Modified user list UI to display roles - Updated user context to fetch users using new API call - Wrapped routes in PrivateRoute component with appropriate context providers
- Update Question type properties to match backend API changes - Rearrange component hierarchy in PrivateRoute for better context usage - Modify QuestionsPage to reflect changes in QuestionContext methods - Adjust QuestionForm to use updated Question type and async methods - Introduce API calls for question CRUD operations
- Added AnswerForm component for creating and updating answers - Implemented API calls for creating, updating, and retrieving answers - Integrated AnswerForm with modal for user interaction - Updated Navbar to toggle AnswerForm modal based on user role
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Challenge - Senior Full-Stack Software Engineer role
Zain Akram - [email protected]