Open andreadelrio opened 4 months ago
Pinging @elastic/kibana-visualizations (Team:Visualizations)
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
Thanx @andreadelrio for creating this after our discussion! Yes I think a redesign on our error strategy will be beneficial for Discover and the ES|QL editor.I am pinging both teams here as I feel is a common effort task!
If we find error messages coming from ES that need changes, I will talk with the team to take care of them.
Pinging @elastic/kibana-esql (Team:ESQL)
As discussed in our bi-weekly sync, there are several technical limitations to improve these error messages and we don't know when there'll be bandwidth to prioritize this. Given this, below is a suggestion with relatively small changes to improve this in the short term. Proposal
Alternative layout (let's try both and see what feels better)
[!IMPORTANT] The above suggestion is only for errors like
mismatch input
,unknown column
orunknown function
. For errors such as code 502 it is recommended we continue using EuiEmptyPrompt. In all error scenarios, we should stop showing the field list.[!NOTE] A Figma file with a complete inventory of common ES|QL errors as well as mid-term and long-term suggestions can be found here.
The usability testing lead by @alexmarhaba (from Nov 2023 to Jan 2024) found that the error messages for ES|QL are unconstructive and difficult to read. This is due to content, visual design and visual hierarchy issues. More details of some of the issues identified so far follow:
Unknown column
) the prominence of the danger message box (EuiEmptyPrompt) and its generic title might lead users to think they’ve hit a fatal error. This can be quite confusing for them especially as they're getting familiar with the language.🔜 Design suggestions to follow