This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-7827e6bd-a200-4d34-b920-6c31ef8496bc XWIKI-25497 Open

Use number fields for the number of events of the activity and notifications macros

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-424f0dc4-3b65-4928-9997-2c151a2d3cc5 Charpentier Lucas created this issue on 22/Oct/26 15:40
 
Summary: Use number fields for the number of events of the activity and notifications macros
Issue Type: cid:jira-generated-image-avatar-7827e6bd-a200-4d34-b920-6c31ef8496bc Improvement
Affects Versions: 17.10.14, 18.8.0
Assignee: Unassigned
Components: Notifications
Created: 22/Oct/26 15:40
Priority: cid:jira-generated-image-static-major-997d505d-55d0-4771-bd7e-7f9ce3e3be05 Major
Reporter: Charpentier Lucas
Description:

The activity and notifications macros take the number of events to list in a plain text field of the Edit Macro dialog, so any text can be typed and the user only sees the result after the macro renders.

The macros to change, with the file where most of the fix is done:

The main problem:

  • Both parameters are declared without a numeric type, so the dialog cannot offer a number field even once one exists. They need an integer type and a minimum of 1.

Depends on

Most of these fields cannot be offered before these generic changes, each giving the macro the means to declare the expected value:

  • XWIKI-25182, which gives a number input to the parameters of a numeric type.
  • XWIKI-25197, which lets a wiki macro parameter declare its minimum and maximum.

KOs covered

Macro Criterion Parameter Problem Depends on
activity C4 input-assistance entries A plain text field for the maximum number of events listed. XWIKI-25182, XWIKI-25197
notifications C4 input-assistance count A plain text field for the number of events: count="-3" is accepted and shows one event. XWIKI-25182, XWIKI-25197

Impact found on macro fluidity

These 2 KOs come from the WYSIWYG usability audit of the macros, under the criterion C4 input-assistance of its usability criteria. The page of each macro, linked in the table, has the full notes and the steps to reproduce. Fixing them means changing the declaration of the parameters in the macro definitions.