Edutie Rework - #158
Open
sukerberk1 wants to merge 56 commits into
Open
Edutie Rework#158sukerberk1 wants to merge 56 commits into
sukerberk1 wants to merge 56 commits into
Conversation
Introduce a new function to create similar learning experiences via an API call. Update the LearningResultView component to include a button that triggers this functionality and navigates to the newly created experience.
Moved the error handling render logic to occur after the `useEffect` setup. This ensures better readability and maintains logical grouping of component lifecycle operations.
Introduced API integration to fetch and display learning subjects dynamically on the home view. Enhanced the UI by adding a grid layout and navigation to specific learning subject details. Adjusted layout for better responsiveness and improved user experience.
Updated component names from HomeView and CreateView to LearnHomeView and CreateHomeView, respectively. Adjusted corresponding route mappings to improve clarity and alignment with their purpose.
Updated navigation paths for consistency and clarity. Replaced placeholder icons with more meaningful `LearningSubjectIcon` and `KnowledgeSubjectIcon`. Adjusted layout and minor text improvements for better UX.
Introduced a "Nothing to be seen here" placeholder with an expressionless emoji when no learning subjects are available. Updated the view to dynamically handle empty states and replaced hardcoded options in the autocomplete.
Reorganized the useEffect and conditional render logic to improve readability and maintainability. Moved the loading and error condition checks to the bottom of the file for better structure. This change does not alter functionality but enhances code clarity.
Improved UI feedback to clarify learning subject eligibility requirements and added warnings for missing dependencies. Introduced `getCreatedEligibleLearningSubjects` API method for retrieving eligible subjects and updated modal logic to display error states.
Added a condition to disable the "Add requirement" button if the input name has 3 or fewer characters. This ensures users provide a meaningful name before proceeding.
Added `cachedSolution` state to persist user progress across activity components. Updated `SimpleProblemActivity` to sync local solution state with the global cached solution using `useEffect`. Adjusted `ActivityRouter` and related components to pass and manage the cached solution as a prop.
Deleted several unused custom icon files (`CancelDoodleIcon.tsx`, `CheckDoodleIcon.tsx`, `CognitionDoodleIcon.tsx`, `CoursesIcon.tsx`, `DeadZombieFaceIcon.tsx`) from `src/components/customIcons`. This cleanup removes unused code and reduces project clutter.
Prevent users from creating a learning subject with a name shorter than 3 characters by disabling the "Create" button. This ensures input validation at the UI level before submission.
The "You" section in the NavBar was commented out, likely as part of a temporary or experimental change. This simplifies the navigation menu and might reflect a design decision to restructure or deprioritize this feature.
Introduced a search box to filter learning subjects by name in real time. Updated UI to handle cases with no matches and display appropriate messages. This improves usability by allowing users to quickly find relevant topics.
Replaced Box-based layout with Grid and Container for a responsive design. Added "Learning Eligible" indicator to created learning subjects. Improved code readability and alignment with Material-UI standards.
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
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.
No description provided.