-
-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XWIKI-19041: Replace the Livetable from DocumentsMacro with a Live Data macro #2775
Conversation
788ca73
to
b40a106
Compare
b40a106
to
a700ae8
Compare
To discuss:
Thanks! |
They were introduced in #2475 and have been discussed extensively there, they are completely unrelated to the changes in this PR. |
...ore/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentsMacro.xml
Show resolved
Hide resolved
Remove default description + allow the documents macro to define it own. |
@michitux / @Sereza7 About discussing UI changes in PRs, this is not the best place to propose new UI changes. UI changes are complex and usually quite touchy. They need to be proposed on the forum. This morning, with Manuel, we've reviewed the before/after changes for the LD for this PR, and the vertical bars really look odd (and the last one even more so). Would be great if you could open a forum proposal about it (it seems urgent since the PR was pushed with that change already). Thanks |
a700ae8
to
0f9a4a1
Compare
@vmassol following this morning call.
Off-topic for this PR.
Done. (screenshot to be updated in the following minutes) |
...ore/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentsMacro.xml
Outdated
Show resolved
Hide resolved
properties="$stringtool.join($properties, ',')" | ||
source="liveTable" | ||
sourceParameters="$escapetool.url($sourceParameters)" | ||
description="$!xcontext.macro.params.description" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the parameter is empty we don't get anything in the dom for the description right? i.e. it has 0 impact for backward compat' of the macro?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old behavior was having a useless and generic "This table lists documents found on this wiki based on passed criteria. The columns can be sorted and some can be filtered." message in the dom (but hidden with a sr-only
class) for all Livetable generated through the documents
macro.
Now, a description is inserted only if passed explicitly to the description
parameter of the documents
macro.
This can be considered as a breaking change as the default message is not there anymore, but imo this is also an accessibility improvement as we remove some useless noise for users using screen readers.
...orm-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/Main/SpaceIndex.xml
Outdated
Show resolved
Hide resolved
...ore/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentsMacro.xml
Show resolved
Hide resolved
...ore/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentsMacro.xml
Outdated
Show resolved
Hide resolved
...ore/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentsMacro.xml
Outdated
Show resolved
Hide resolved
...ore/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentsMacro.xml
Outdated
Show resolved
Hide resolved
…ta macro Docker tests.
…ta macro - definition of a description parameter for the documents macro - the generic description is not provided by default - no description provided for the page index - the text displayed before the space index table is now used as the description (also fix the alignemnt issue) - likes column now before the actions (i.e., actions always last)
0f9a4a1
to
c821d6f
Compare
Jira Url
https://jira.xwiki.org/browse/XWIKI-19041
Description of changes
XWiki.DocumentsMacro
(thedocuments
macro).documents
macro. This is expected to be transparent from an API povMain.SpaceIndex
(linked fromMain.Spaces
)XWiki.DocumentsMacro
XWiki.Tableview
for the page indexTodo
Screenshots & Video
Space Index - Sandbox space
Before
After
Page Index
Before
After
Executed Tests