Integrate focused Pinia auth and chat stores#53
Open
mjkatgithub wants to merge 4 commits intodevelopfrom
Open
Conversation
…eatures - Add Pinia stores for managing chat state and emoji usage, enhancing the chat experience with improved state handling. - Refactor components to utilize the new Pinia stores, including `useChatStore` and `useEmojiUsageStore`, for better state management and reactivity. - Update middleware and pages to leverage the new `useAuthSessionStore` for authentication state, replacing previous direct calls to `useMatrixClient`. - Implement unit tests for the new stores and ensure existing tests are updated to reflect the changes in state management. - Document the integration of Pinia in the project for future reference and development.
9 tasks
- Introduce a loading overlay during app startup that displays while session restoration is in progress. - Refactor the `onMounted` lifecycle hook in `app.vue` to manage the booting state and ensure session restoration is completed before proceeding. - Update the login page to prevent navigation to the chat until session restoration is finished. - Add unit tests for the loading overlay and session restoration behavior in both the app and login components. - Integrate new matrix authentication service functions for session management and device handling.
- Update presence handling in chat and settings components to utilize local storage for user preferences. - Simplify the `useMatrixClient` by removing unnecessary Pinia setup. - Improve the `auth.global.ts` middleware to directly access the `isLoggedIn` state. - Enhance E2E tests for chat reactions and presence indicators, including retry logic for reaction interactions. - Introduce utility functions for managing presence states and improve the overall user experience in chat. - Update package.json to refine E2E test commands and improve runtime scripts for Synapse integration.
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.
Summary
Related Issue
Closes #43
Branch Flow
feature/pinia-auth-chat-storesdevelopScope of Changes
Validation
Local checks
Manual test
Risk and Rollback
Checklist