-
Notifications
You must be signed in to change notification settings - Fork 1
feat: ui state cache #151
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
feat: ui state cache #151
Conversation
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a UI state cache using Pinia with persistence to preserve user interface state across sessions, including evidence filters, control implementation drawer state, and tree expansion states.
- Adds a new persisted UI store to cache evidence filters and control implementation UI states
- Updates evidence and control implementation views to use the centralized UI store
- Fixes HTML entity encoding in password reset view
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| src/stores/ui.ts | New Pinia store with persistence for caching UI state (evidence filters, control drawer state, tree expansion) |
| src/views/evidence/IndexView.vue | Integrates UI store for evidence filter persistence and adds error handling with Promise.all for parallel API calls |
| src/views/control-implementations/IndexView.vue | Replaces local state with UI store for drawer and tree expansion state, adds state restoration logic |
| src/views/PasswordResetView.vue | Corrects HTML entity encoding for angle brackets in password requirements text |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🧹 ESLint Report
✅ Linting completed automatically by CI. |
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
No description provided.