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

Improvements for categories #89

Closed
spoorun opened this issue Jun 24, 2017 · 19 comments
Closed

Improvements for categories #89

spoorun opened this issue Jun 24, 2017 · 19 comments

Comments

@spoorun
Copy link

spoorun commented Jun 24, 2017

Nextcloud has a tagging system.
'Categories' are tags, and should sync with that system.

The benefits would be:

  1. Users managing different types of data (such as tasks, contacts, messages, files) would use the same sets of tags (including shared tags) to organise that data,
  2. and in future be able to find that data by global searches.
  3. It would make shared data management more consistent too.
  4. The UI for tags would be consistent across apps (and that could be improved), and it would be more efficient - Users shouldn't need to learn endless different UIs and modes of operation to carry out the same task (using tags) within a single system (Nextcloud).
@raimund-schluessler
Copy link
Member

raimund-schluessler commented Jul 22, 2017

I will use this issue to collect all the improvements requested for categories:

@raimund-schluessler raimund-schluessler changed the title Use Nextcloud tag system for Categories Improvements for categories Jul 22, 2017
@websafe
Copy link

websafe commented Feb 2, 2018

@raimund-schluessler any update on this enhancement?

@udolee
Copy link

udolee commented Apr 23, 2018

Tasks is so good! One question, is there a way to sort by categories? Thanks!

@GambaJo
Copy link

GambaJo commented Jan 29, 2020

Yap, this is very pitty. I miss this feature too.

@klawdhfzasjhaa
Copy link

Tasks is so good! One question, is there a way to sort by categories? Thanks!

Additionally, it would be great to filter by category.

@ghost
Copy link

ghost commented May 8, 2020

Yeah, i miss also the feature of filtering by category. And the category tags being also links to that filtering.

@duesseldorferjung

This comment has been minimized.

@GambaJo

This comment has been minimized.

@abers
Copy link

abers commented Aug 15, 2020

Yeah, i miss also the feature of filtering by category. And the category tags being also links to that filtering.

I came to the git repo to see if anyone had requested this feature already. Do you know why it was removed? It'd be great if could view list of categories in left-hand panel, filter by category, and view all tasks tagged with a category. Would replicate the main features from Tasks.org (mobile app I sync tasks with) that are currently missing from Tasks.

@raimund-schluessler
Copy link
Member

raimund-schluessler commented Aug 15, 2020

Yeah, i miss also the feature of filtering by category. And the category tags being also links to that filtering.

I came to the git repo to see if anyone had requested this feature already. Do you know why it was removed?

It was not removed. It was never available in the first place.

And you can filter by category. Just type the category name in the search box at the top right.

@jay3-3
Copy link

jay3-3 commented Sep 15, 2020

And you can filter by category. Just type the category name in the search box at the top right.

That is not filtering per category, if you search for example with "category" on the search box you will see everything containing "category" on title, description... Not only in the category field.

IMHO a nice improvement would be the possibility to filter with categories (more than one). This is already working with tags in files.

@klawdhfzasjhaa
Copy link

Perhaps, this helps: nextcloud/cookbook#375

@MaggiWuerze
Copy link

MaggiWuerze commented Mar 17, 2021

Please also have a look at #1453, it's a proper ticket for what @javisomoza asked for

@caemor
Copy link

caemor commented Jul 26, 2021

* [ ]  Allow adding categories / tags by hashtagging in the title ([[Feature Request] Hashtag tagging of new entries #42](https://github.com/nextcloud/tasks/issues/42))

Was there any work done into this direction already? And if not is there an easy way to add this and someone could point me into the right direction to start this?
If possible I would like to look into an option to set some easy dates at the same time, e.g. today, tomorrow, monday-sunday,... will add the corresponding day as due day

@raimund-schluessler
Copy link
Member

New tasks are created here:

tasks/src/store/tasks.js

Lines 708 to 783 in 4346ae4

async createTask(context, taskData) {
if (!taskData.calendar) {
taskData.calendar = context.getters.getDefaultCalendar
}
// Don't try to create tasks in read-only calendars
if (taskData.calendar.readOnly) {
return
}
const task = new Task('BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Nextcloud Tasks v' + this._vm.$appVersion + '\nEND:VCALENDAR', taskData.calendar)
task.created = ICAL.Time.now()
task.summary = taskData.summary
task.hidesubtasks = 0
if (taskData.priority) {
task.priority = taskData.priority
}
if (taskData.complete) {
task.complete = taskData.complete
}
if (taskData.note) {
task.note = taskData.note
}
if (taskData.due) {
task.due = taskData.due
}
if (taskData.start) {
task.start = taskData.start
}
if (taskData.allDay) {
task.allDay = taskData.allDay
}
if (taskData.related) {
task.related = taskData.related
// Check that parent task is not completed, uncomplete if necessary.
if (task.complete !== 100) {
const parent = context.getters.getParentTask(task)
if (parent && parent.completed) {
await context.dispatch('setPercentComplete', { task: parent, complete: 0 })
}
}
}
const vData = ICAL.stringify(task.jCal)
if (!task.dav) {
const response = await task.calendar.dav.createVObject(vData)
Vue.set(task, 'dav', response)
task.syncStatus = new SyncStatus('success', t('tasks', 'Successfully created the task.'))
context.commit('appendTask', task)
context.commit('addTaskToCalendar', task)
const parent = context.getters.getTaskByUid(task.related)
context.commit('addTaskToParent', { task, parent })
// In case the task is created in Talk, we don't have a route
// Only open the details view if there is enough space or if it is already open.
if (context.rootState.route !== undefined && (document.documentElement.clientWidth >= 768 || context.rootState.route?.params.taskId !== undefined)) {
// Open the details view for the new task
const calendarId = context.rootState.route.params.calendarId
const collectionId = context.rootState.route.params.collectionId
if (calendarId) {
router.push({ name: 'calendarsTask', params: { calendarId, taskId: task.uri } })
} else if (collectionId) {
if (collectionId === 'week') {
router.push({
name: 'collectionsParamTask',
params: { collectionId, taskId: task.uri, collectionParam: '0' },
})
} else {
router.push({ name: 'collectionsTask', params: { collectionId, taskId: task.uri } })
}
}
}
return task
}
},

You can parse the summary and set categories and dates in this function.

@hoshi411
Copy link

Yeah, i miss also the feature of filtering by category. And the category tags being also links to that filtering.

I came to the git repo to see if anyone had requested this feature already. Do you know why it was removed?

It was not removed. It was never available in the first place.

And you can filter by category. Just type the category name in the search box at the top right.

that requires you to know / remember what tags you have made. It is especially tricky if you use emoji for your tags. Best practice UX is to provide a list of tags somewhere (as every other GTD / TASK app does by default) .

Basic operation is the ability to filter by clicking on tags and even multiple tags. These are common fundamentals.

@hoshi411
Copy link

And you can filter by category. Just type the category name in the search box at the top right.

That is not filtering per category, if you search for example with "category" on the search box you will see everything containing "category" on title, description... Not only in the category field.

IMHO a nice improvement would be the possibility to filter with categories (more than one). This is already working with tags in files.

This comment needs to be bumped up to the top priority.

@raimund-schluessler
Copy link
Member

Extracting tags from the summary was just added in #2425.

@raimund-schluessler
Copy link
Member

raimund-schluessler commented Jan 1, 2024

Filtering by tags was implemented in #2427 and will be released with v0.16.0.

I will close this issue, since the main features discussed here were implemented and the remaining requests have their own tickets. Please speak up or open a new issue if you think that a feature request got lost.

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

No branches or pull requests