[PR #2141] [MERGED] feat(frontend): preserve Gantt date range when switching views #5505

Closed
opened 2026-04-16 13:40:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2141
Author: @kolaente
Created: 1/23/2026
Status: Merged
Merged: 1/24/2026
Merged by: @kolaente

Base: mainHead: fix-gantt-date-range-persistence


📝 Commits (1)

  • 9db3255 feat(frontend): preserve Gantt date range when switching views

📊 Changes

4 files changed (+102 additions, -4 deletions)

View changed files

📝 frontend/src/components/project/ProjectWrapper.vue (+13 -2)
frontend/src/stores/viewFilters.test.ts (+41 -0)
frontend/src/stores/viewFilters.ts (+27 -0)
📝 frontend/src/views/project/helpers/useGanttFilters.ts (+21 -2)

📄 Description

Summary

  • Adds a viewFilters Pinia store that stores query params per view ID
  • Syncs Gantt filters to the store whenever they change
  • View tab links now include stored query params, so custom date ranges persist when switching views

Test plan

  • Set a custom date range in Gantt view
  • Switch to List view
  • Switch back to Gantt view
  • Verify the custom date range is preserved
  • Test with Kanban and Table views as well
  • Verify Reset button still clears the custom date range
  • Verify page refresh uses URL as source of truth

Fixes #2124


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2141 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 1/23/2026 **Status:** ✅ Merged **Merged:** 1/24/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix-gantt-date-range-persistence` --- ### 📝 Commits (1) - [`9db3255`](https://github.com/go-vikunja/vikunja/commit/9db3255de9af85643fc58aa925d52a0a47cb8a67) feat(frontend): preserve Gantt date range when switching views ### 📊 Changes **4 files changed** (+102 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/project/ProjectWrapper.vue` (+13 -2) ➕ `frontend/src/stores/viewFilters.test.ts` (+41 -0) ➕ `frontend/src/stores/viewFilters.ts` (+27 -0) 📝 `frontend/src/views/project/helpers/useGanttFilters.ts` (+21 -2) </details> ### 📄 Description ## Summary - Adds a `viewFilters` Pinia store that stores query params per view ID - Syncs Gantt filters to the store whenever they change - View tab links now include stored query params, so custom date ranges persist when switching views ## Test plan - [ ] Set a custom date range in Gantt view - [ ] Switch to List view - [ ] Switch back to Gantt view - [ ] Verify the custom date range is preserved - [ ] Test with Kanban and Table views as well - [ ] Verify Reset button still clears the custom date range - [ ] Verify page refresh uses URL as source of truth Fixes #2124 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:40:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5505