Export Format Selection

Last modified by Vincent Massol on 2024/02/26 17:57

 XWiki
 Design
 Completed
 
 

Vote on XWiki Forum

 

Export User Guide

Description

The Problem

There are a few problems with the current Export Modal shown when you click on "More Actions > Export" menu:

  • The export type is known only at the end, when the user clicks on the corresponding export button. This means we cannot customize the tree (document selection) based on the export type. For instance:
    • For some export types it's important to see hidden documents, while for others it's important to not see them
    • The document order is relevant for some export types while for others it doesn't matter
    • For some export types we wan to export only the current document by default, while for other export types we may want to include by default all child pages (and their descendants)
  • There are two many export buttons (one for each export type). It doesn't scale if the number of export types is large (e.g. if we want to enable export for multiple office formats, all supported by the Office server)
    • The buttons don't have an icon which would help to quickly identity the export type (most common file types have a recognizable icon)
  • The accordion we currently use promotes by default only export types that don't support multi-page export (the rest are hidden / collapsed)

Requirements

Whatever implementation we choose for selecting the export format, I think we need to cover the following requirements:

  • The UI must scale when the number of available export formats is large.
  • Select the export format before selecting the wiki pages to export. Otherwise put, allow each export type to have a custom UI for selecting the wiki pages and other export options.
  • Be able to associate an icon, a label and a hint to each export format.
  • Mobile friendly / responsive UI

Solutions

Export Menu

A possible solution is to choose the export format from the menu. There are multiple ways to do this but in general they share the following characteristics:

  • + access speed (i.e. reduced number of clicks and little mouse movement)
  • - limited space (i.e. the hint will have to be displayed on hover)

Collapsible Export Menu

  • + only 2 clicks needed to trigger the export
  • + very little mouse movement needed
  • + mobile friendly
  • + only 1 click to get back (collapse) in case of mistake (unintentional click), and no mouse movement needed
  • ~ the More Actions menu becomes very large (up to 9 additional menu items if we connect the Office Server and install the LaTeX Exporter extension)
  • - not suited for grouping export formats into categories (office/other formats)
  • ~ the submenu items have to be styled differently (border, indent, smaller font size, background color)
  • - no space for additional information (only icon and label); we can use the hint on mouse hover, but not on mobile
DesktopMobile

Nested Export Menu

  • + only 2 clicks needed to trigger the export (even 1 click if using mouse hover, but not on mobile)
  • + very little mouse movement needed
  • ~ on mobile we would have to display the nested Export menu on top of the More Actions menu due to lack of horizontal space
  • + only 1 click to get back in case of mistake (unintentional click), and no mouse movement needed
  • + enough space to list all export formats (up to 9 menu items)
  • + suited for grouping export formats into categories (office/other formats)
  • + use the same styles for the submenu items
  • ~ we could display additional hint below the menu item label, but it makes the menu too long
DesktopMobile

Sequential Export Menu

  • + only 2 clicks needed to trigger the export
  • ~ requires significant mouse movement
  • + mobile friendly
  • ~ only 1 click to get back in case of mistake (unintentional click) BUT requires mouse movement
  • + enough space to list all export formats (e.g. up to 9 menu items)
  • - not suited for grouping export formats into categories (office/other formats), because we need to reserve the menu header for "Export"
  • + use the same styles for the submenu items
  • ~ we could display additional hint below the menu item label, but it makes the menu too long
DesktopMobile

Export Modal

Using a modal is another solution, and it can be described by:

  • ~ 2 clicks needed to trigger the export, if we consider that the format options listed on the Export modal trigger the export directly on click
  • - a lot of mouse movement needed
  • + mobile friendly
  • - 2 clicks to get back in case of mistake (unintentional click), and a lot of mouse movement needed
  • + enough space to list all export formats (up to 9 menu items)
  • + suited for grouping export formats into categories (office/other formats)
  • + reuse the XWiki Select widget styles to present the export formats, but we need to trigger the export directly on click
  • ~ enough space to display additional information (hint) but it makes it harder to visually scan the entire list of export formats (in some cases there could even be a vertical scroll)
DesktopMobile

Evaluation

  • if we want to favor fast action then I think we should choose between Collapsible menu and Nested menu
    • if we want to favor fast action and we think we need export format grouping then we should choose Nested menu
  • for a compromise between access speed and available space we should choose Sequential menu
  • if showing additional information (hints) and filtering is more important than access speed then we should choose the modal

 

Get Connected