A sanity check before a query is executed - T1455
Open, Needs TriagePublic

Description

As a user writing a search query
I can write keywords, operators and values
In order to execute a valid query.

Scenario 1
Given I'm writing a query
When i write the query "State=read" AND OR "Date=2016/03/18", it is not a valid query
Then the query will be not execute.

Scenario 2
Given I'm writing a query
When i write the query "State=read" AND "Date=2016/03/18", it is a valid query
Then the query will be execute.

Scenario 3
Given I'm writing a query
When i write the query "State=read" AND, it is not a valid query
Then the query will be not execute.

Scenario 4
Given I'm writing a query
When i write the query "Date>John", it is not a valid query
Then the query will be not execute.

hrouis created this task.Mar 10 2016, 4:10 PM
grebois updated the task description. (Show Details)Mar 16 2016, 10:32 PM
grebois updated the task description. (Show Details)Mar 17 2016, 7:29 AM
grebois updated the task description. (Show Details)Mar 17 2016, 9:04 AM

The options are:

  • Colored background (somewhat awkward)
  • Colored frame (very common but maybe not obtrusively enough)
  • Speech bubble (UX recommendation in the MS world)
  • Notification/message panel (default for KDE but not in respect to a particular control)

My suggestion is to color the frame red on execution (and interrupt, of course), underline the wrong part if possible (having a curly line in mind known from word processors), and/or show a notification what's wrong. The notification should be active until an interaction, the frame color should revert to default when the content is changed.

grebois moved this task from Maturation to Ready on the KDE PIM: KMail board.Mar 18 2016, 6:22 PM