Skip to content

feat: Support hiding tasks with a future start date#2284

Open
AlD wants to merge 1 commit intogo-vikunja:mainfrom
AlD:hide-future
Open

feat: Support hiding tasks with a future start date#2284
AlD wants to merge 1 commit intogo-vikunja:mainfrom
AlD:hide-future

Conversation

@AlD
Copy link

@AlD AlD commented Feb 23, 2026

Allows hiding tasks that have a future start date.

e.g. discussed here: https://community.vikunja.io/t/hide-tasks-where-start-date-is-in-future/588

@Marck
Copy link

Marck commented Feb 24, 2026

Would love to have this implemented, I too am longing for more cleaner overviews and not having all the future tasks in my overview

Copy link
Member

@kolaente kolaente left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thanks for the PR!

There are a few things that need changing, see my comments below.

const rawTasks = await taskStore.loadTasks(params, projectId)
if (props.hideFuture && showAll.value) {
const now = new Date()
tasks.value = rawTasks.filter(t => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filtering should happen with a date query in the api, not on the client

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, and that's where I initially implemented this, but I immediately ran into unintended side-effects caused by filter_include_nulls applying to all queried fields.

I'd be happy to implement some sort of per-field NULL expression handling, but would like to make sure that this is a direction you'd agree with.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, proper null filtering would be the way to solve this. This is a feature that I'd like to build eventually, happy to merge a PR if you want to have a go at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants