Closed lvngstn closed 3 weeks ago
This pull request implements a significant rework of the Firebase integration and overall structure of the FlashCardio application. The changes include updates to the user interface, file organization, and the addition of new components and functionality.
sequenceDiagram
participant User
participant LoginPage
participant Firebase
participant HomePage
User->>LoginPage: Enter credentials
LoginPage->>Firebase: Authenticate user
Firebase-->>LoginPage: Authentication result
alt Authentication successful
LoginPage->>HomePage: Redirect to Home
else Authentication failed
LoginPage-->>User: Display error message
end
sequenceDiagram
participant User
participant EditorPage
participant FirestoreUtils
participant Firestore
User->>EditorPage: Create/Edit folder or flashcard
EditorPage->>FirestoreUtils: Call add/update/delete function
FirestoreUtils->>Firestore: Perform database operation
Firestore-->>FirestoreUtils: Operation result
FirestoreUtils-->>EditorPage: Update UI
EditorPage-->>User: Display updated content
Change | Details | Files |
---|---|---|
Restructured the application's file organization |
|
client/src/pages/App.js client/src/pages/Login.js client/src/components/questions/AddQuestion.js client/src/components/questions/QuestionContext.js client/src/components/questions/QuestionManager.js client/src/models/Question.js client/src/models/QuestionList.js |
Updated Firebase configuration and integration |
|
client/src/pages/App.js client/src/components/folder-logic/firestoreUtils.js |
Improved user interface and styling |
|
client/src/pages/Login.js client/src/components/header/Header.js client/src/components/button/Button.js client/src/components/flashcard/flashcard-edit-mode/Flashcard.js client/src/components/main-window/folder-window/FolderWindow.js client/src/global-styles/styles.css |
Added new pages and components |
|
client/src/pages/Editor.js client/src/pages/CreateAccount.js client/src/components/main-window/folder-window/FolderWindow.js client/src/components/flashcard/add-card/AddCard.js |
Implemented new routing system |
|
client/src/pages/App.js client/src/components/button/NavigationButtons.js client/src/index.js |
Summary by Sourcery
Rework the Firebase integration and refactor the application structure to introduce new pages for user registration, home, and flashcard editing. Enhance the UI with consistent styling and improve the organization of components and styles. Update Firebase configuration to support Firestore and streamline the build by consolidating styles.
New Features:
Enhancements:
Build:
Documentation: