Macro Parameters Improvements (10.x)
Last modified by Ecaterina Moraru (Valica) on 2019/01/18 12:09
- Requirements
- Idea
-
evalica
-
XWIKI-16040 The Chart macro doesn't have good default values for its parameters
XRENDERING-550 Provide good defaults for the 'Content' macro parameters
XWIKI-8613Add an autosuggest to any input that requires a document reference in macrosCKEDITOR-200Pickers for various macro parameter typesXWIKI-4448 Show a link towards documentation in macro insertion dialog
XWIKI-12755 Built-in macros : provide documentation help link from editing page
XWIKI-13363 Remove deprecated macro parameters from the Wysiwyg macro wizard
XWIKI-15288 Move "Notifications" macro to the "Notifications" category
CKEDITOR-263 Separate the 'Deprecated' category from the other macros categories
CKEDITOR-264Provide Macros count in the "Select Macro" modalCKEDITOR-265Improve "Change Macro" button position
Description
General
UC: Use auto-complete for "List of strings" type parameter that expect Pages, Wikis, Users
UC: Use checkboxes for any "Boolean" type parameter
UC: Use select if there are multiple allowed values
UC: Provide the default value as placeholder for any "String or numerical value" type parameter
UC: Display the available macro parameters options in more usable controls, allowing faster usage
UC: Good Defaults: Provide demo content examples that work and can be experimented
Macros Count
UC: Know how many available macros there are
- There are 51 macros available in 10 categories (All + Other + 8)
Before
After
Back to Gallery
UC: Have a button that takes the user back to the gallery
- The button exists, but because of position / naming, users don't use it and they redo the steps from the start
Before
After
Macros Documentation
UC: Know how many available macros there are
XWIKI-4448 Show a link towards documentation in macro insertion dialog
Before
After
Deprecated Macros
UC: Remove these macros
- Space Index Macro
- Spaces Macro
- Workspaces Legacy
Move Macros
- Move from Content to Development category
- Display, Include Macros
- Translation Macro
- Move from Content to Notifications category
- Activity Macro
- Watch List Macro
- RSS Macro ?
- Move from Social to Notifications category
- Message Sender - being the only one listed
Macros
Macro: Chart
- URL
- Good Defaults that have a demo example that can be tested
- Placeholders
- Select control instead of input for type and source params
<select>
<option disabled="" selected="">Select an option</option>
<option>area </option>
<option>bar </option>
<option>bar3D </option>
<option>line </option>
<option>line3D </option>
<option>pie </option>
<option>stackedbar </option>
<option>stackedbar3D </option>
<option>xy_area </option>
<option>xy_line_and_shape </option>
<option>xy_line3D </option>
<option>xy_step </option>
</select>
<option disabled="" selected="">Select an option</option>
<option>area </option>
<option>bar </option>
<option>bar3D </option>
<option>line </option>
<option>line3D </option>
<option>pie </option>
<option>stackedbar </option>
<option>stackedbar3D </option>
<option>xy_area </option>
<option>xy_line_and_shape </option>
<option>xy_line3D </option>
<option>xy_step </option>
</select>
{{chart type="pie" params="range:B2-D5" source="inline"}}
|=|=X|=Y|=Z
|Q1|1.2|3.4|1.3
|Q2|4.5|3.4|2.3
|Q3|1.2|4.5|9.0
|Q4|3.4|1.2|1.2
{{/chart}}
|=|=X|=Y|=Z
|Q1|1.2|3.4|1.3
|Q2|4.5|3.4|2.3
|Q3|1.2|4.5|9.0
|Q4|3.4|1.2|1.2
{{/chart}}