Skip to content
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

Fix: After page refresh, store state no longer retains the selected project #566 #567

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

Dan1elBox
Copy link
Collaborator

@Dan1elBox Dan1elBox commented Dec 10, 2023

Fix for #566.
Persisting the store state in our sessionStorage using the pinia-plugin-persistedstate (https://prazdevs.github.io/pinia-plugin-persistedstate/). All changes to the state are automatically updated in the localStorage as well.

@Dan1elBox Dan1elBox added bug Something isn't working frontend labels Dec 10, 2023
@Dan1elBox
Copy link
Collaborator Author

Dan1elBox commented Feb 29, 2024

After the page refresh, the previously selected project with all their user stories should now be displayed correctly again, along with the last active/clicked user story.
Additionally, it should now also persist the user stories in "Planning with User Stories" mode and display them normally again after a page refresh.

For the "Planning with User Stories" mode, I'm currently also working on extracting and reloading the user stories from the session object in the database after every page refresh as an additional backup. However, I still need to determine whether I'll do this in this PR or in a separate one.

…h-store-state-no-longer-retains-the-selected-project

# Conflicts:
#	frontend/src/main.ts
…h-store-state-no-longer-retains-the-selected-project
@Dan1elBox Dan1elBox marked this pull request as draft May 10, 2024 13:43
…h-store-state-no-longer-retains-the-selected-project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After page refresh, store state no longer retains the selected project
2 participants