Skip to content

Conversation

@wofferl
Copy link
Collaborator

@wofferl wofferl commented Jan 8, 2026

Summary

This PR adds saving the open state to the new starred group feature introduced in #3148

Checklist

@wofferl wofferl added 3. to review API Impact API/Backend code frontend impact Javascript/Frontend code Skip-Changelog No changelog update is required, minor change labels Jan 8, 2026
@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

Copilot AI left a 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 adds persistent state management for the starred navigation item's open/collapsed state, building on the grouped starred items feature from #3148. Previously, the starred section would revert to its default state on page refresh; now the user's preferred open/collapsed state is saved and restored.

Key changes:

  • Added starredOpenState to the Vuex store with getter and mutation
  • Replaced the temporary wasStarredVisited approach with persistent storage via provisioning API
  • Updated backend to include starredOpenState in user settings
  • Added comprehensive unit tests for the new functionality

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/store/app.ts Added starredOpenState boolean to store state, with getter and mutation for managing the open/collapsed state
src/components/Sidebar.vue Implemented toggleStarredOpenState method to persist state via API, replaced wasStarredVisited with isStarredOpen computed property, bound to @update:open event
lib/Controller/PageController.php Added starredOpenState to the list of user settings loaded on page initialization
tests/javascript/unit/store/app.spec.ts Added tests for the new getter and mutation
tests/javascript/unit/components/Sidebar.spec.ts Added tests for toggle functionality, removed obsolete wasStarredVisited tests, improved test setup with proper mocks

@wofferl wofferl force-pushed the feat_starred_open_state branch from 1dfd750 to 212b1d0 Compare January 9, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review API Impact API/Backend code frontend impact Javascript/Frontend code Skip-Changelog No changelog update is required, minor change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant