Proposal: Showing inline/block insertion mode directly in the QuickActions dropdown

Hi!

Context

When picking a macro in the Quick Actions menu (the one opened by typing / in the WYSIWYG editor), the macro is inserted in the current line if it supports inline mode, and otherwise it’s inserted as a block, splitting the paragraph. Nothing in the menu tells which of the two will happen, so users only find out after inserting it. This came up in the brainstorming on the usability criteria for macros and is tracked in XWIKI-25173.

Prototype

My prototype to solve this is to show a small pill next to the name of every macro entry of the menu:

  • Inline or block for macros that support inline mode. They can be used in both modes, so we don’t label them “Inline” only.
  • Block for macros that can only be inserted on their own line.
  • No label for the actions that aren’t macros (headings, lists, links, emojis…), nor for macros of extensions that aren’t installed yet, whose mode is unknown.




Here’s a short demo of the pills and of the insertion that follows them:

Explanation

  • The pill sits on the first line of the entry, next to the name, so it doesn’t make entries taller.
  • Both modes get a pill: if only one did, a missing pill would look the same as on the actions that aren’t macros.
  • No hue: the information is useful when picking a quickaction, but it shouldn’t draw more attention than the macro name and description.
  • Similiar pills could later be reused in the Insert Macro dialog (XWIKI-25174).

Conclusion

  • Do you agree with adding this pill to the Quick Actions menu?
  • Are “Inline or block” and “Block” clear enough, or would you prefer other words? Should we have only an icon, with an explanation appearing on hover instead?
  • Is the pill style alright, or should we make it lighter?

I’m looking forward to your opinion on this prototype :slight_smile:
@tkrieck is there something you’d do different with this prototype?

Thank you!
Lucas C.

Hi Lucas,

I find this inline / block information a bit too technical for the average WYSIWYG editor user. I also don’t remember seeing this elsewhere, in other editing tools. I’m not convinced by its usefulness, but I won’t oppose if the others like it, in which case I’d only ask to make it less visible. I feel that right now it steals the attention from the macro name.

Two concerns:

  • Uninstalled macros already have a “Recommended” badge. Seeing a mix of “Inline or block”, “Block” and “Recommended” badges might create confusion.
  • Some quick action entries have shortcuts displayed with a badge. It might make sense to add shortcut keys for some commonly used macros, in which case we’d have to display the shortcut along with “Inline or block” / “Block”. This makes the quick action item display a bit crowded.

Thanks,
Marius

I don’t think it’s that useful. Most user won’t have a clue what it means I guess.

I agree with Marius. The prototype badge covers too much screen for the information it presents. Perhaps having the icon only, as you mentioned, would be more appropriate.

I personally find it useful.

Hi @CharpentierLucas thanks for taking a look at this.

Personally, I find it useful, but I also thinks it’s hard to explain the concept to users. I’d try to balance this by having only the block-only macros marked by a very low key element. It could be a smaller grey icon, shown only on hover.

The word “block” can be problematic because it can be interpreted as a block in the sense of a “blocker of something” instead of “element with dimensions”. Perhaps we could rephrase it as “Paragraph element” or just “Paragraph”. We already have a paragraph macro in the list and their usage is related (both will have their own paragraph).

Here’s a quick mockup to show what I mean:

Having it on all the macros, I think it’s too much especially the “inline or block”

Thanks =)