creecros / MetaMagik

Custom Fields for Kanboard - Plugin MetaMagik
MIT License
98 stars 16 forks source link

Repositioning of displayed values #21

Closed kenlog closed 5 years ago

kenlog commented 5 years ago

it would be great, ordering the metadata in the task

creecros commented 5 years ago

shouldn't be an issue, have a busy week at work, but i'll take a look next chance i get.

creecros commented 5 years ago

Task Creation/Modification or Task Details or Both?

kenlog commented 5 years ago

Yes, in fact it is better both. :+1:

kenlog commented 5 years ago

Forgive me, it is better with this addition but I wanted to drag the values to order them manually such as for example with the "Sub-Tasks". In truth I'm trying to make this additional feature, but I'm sure it's easier for you.

creecros commented 5 years ago

Oh, I misunderstood. I'll have to do some research on that one, and figure it out.

kenlog commented 5 years ago

I took a look, we need to make some additions to the code more or less simple.

creecros commented 5 years ago

are you wanting to save the positions? That might be difficult, since we are using metadata and it only stores key => value

kenlog commented 5 years ago

in fact, you need the ID to manage the sorting

creecros commented 5 years ago

k, here's a solution:

Add position_id to the metadata_types table Remove all other metadata not defined as a type from the summary accordian (been meaning to do that anyway)

however,

the positions will not be task dependent, changing the sort in one task, will change them in all.

Will also have to backfill values for types that already exist in a users DB

creecros commented 5 years ago

that took brain power

kenlog commented 5 years ago

@creecros now it's perfect! Thank you very much

creecros commented 5 years ago

Just noticed I forgot to apply the sort to the tooltip.