Modes - generic approach #1639
Replies: 7 comments 4 replies
-
Hi, I've changed the Category to Development. For future reference: the old Ideas go in Issues/New Features now, please, not in Discussions, hence I just renamed Ideas here.... (I wish I could lock the Ideas category, but this would prevent adding comments to the existing Ideas..) |
Beta Was this translation helpful? Give feedback.
-
Can you please say why you think After the explanation, it goes on to do the search, so it actually is already used in conjunction with |
Beta Was this translation helpful? Give feedback.
-
Have you seen #1632?
This makes me think that 'short mode' should hide all the field detail, and then people should be able to say 'show due' or whatever - so actually the two existing modes would then not be exclusive... |
Beta Was this translation helpful? Give feedback.
-
Yup, I agree with your conclusion there. But here I'd like to discuss modes and field rendering is different, more as a (layout) filter, which can be used together.
Maybe I wasn't explicit enough - modes shall be exclusive to each others but not to other entities like filters and/or layout commands. For instance in your example
I thought that explanation provides only the explanation, not the task list AND the explanation... |
Beta Was this translation helpful? Give feedback.
-
I’m still missing the benefits of this, but will note that there is already a PR going on - #1519 IIRC - that changes the display code. perhaps what I am missing is what actual benefits to users or developers any changes in this area might bring? I do agree that the layout code is in need of refactoring away from its current enumeration-based approach, for maintainability of the code - but that is a totally different issue. |
Beta Was this translation helpful? Give feedback.
-
I’ve added a note in #1626 saying how I would implement it. No need for any new modes. |
Beta Was this translation helpful? Give feedback.
-
I thought that making a mode framework would benefit introductions of new mode as well as maintenance of the current ones |
Beta Was this translation helpful? Give feedback.
-
As I have seen #1626 I gave some thought about "modes". In Tasks 1.24.0 there are:
short mode
explain
which is actually a modecounter mode
as an ideaIf one thinks about the purpose of each mode - using them in any permutation among is pointless (as opposed to
filter
,grouper
orsorter
). Hence themode
's entity and shall be different from afilter
,grouper
orsorter
- in a given query there should be only one mode.Would you agree with this approach?
PS I'm not introducing this is as an issue since this is obviously 1/ breaking 2/ needs a significant effort. Maybe an idea for Tasks 2.0
Beta Was this translation helpful? Give feedback.
All reactions