Hello,
Right now, Cristal still renders some placeholders at various places. The point of this proposal is to list the ones we can do something about, and decide what to do (depending on the selected backend) before we can release a proper demonstrator:
1) “Page creation” button in the breadcrumb
This “+” button has always been there and never actually used. We already have a button to create pages in the sidebar, which opens a form to input the name of the page and select its location through a navigation tree.
AFAICR we have never really discussed the point of this button, and I think it’s supposed to become a “quick create” operation in the current location. As such, I see two possibilities:
- a) When clicked, it would be replaced with a text input field to set the name of the page, with a small submit button on the right. Confirming would simply open the editor, like we do currently with the other page creation button.
- b) Remove it.
2) “Likes” and “Comments” counters
These two features are not yet implemented. In the meantime, we can either:
- a) Set the counters to 0 (which would still make them inconsistent with the actual values from the backend).
- b) Add a
enabled()
method to InfoActions to simply hide them. I believe we will want this in the end because I don’t see a point in displaying these two with the FileSystem backend. - c) Remove them.
3) “Last edit” details
This is not hard to actually implement right now, except we still don’t have user icons. Also, I’m not sure the username is relevant with FileSystem. I see a few possibilities:
- a) Implement it for every backend (we would use
os.userInfo()
to get the local user for FileSystem) and keep the placeholder avatar. - b) Same, but remove the avatar.
- c) Same as above, but only keep the “Edited on” part for FileSystem.
- d) Remove it.
4) “Information” tab
There are not a lot of information we can display at this point, but we could:
a) Add the creator and creation date, and display the page reference (like we do in XWiki), for every backend.
b) Same, but removing the username for FileSystem.
c) Remove it until we have more useful information to display.
5) “Help” button in the sidebar
I’m not sure what was expected with this one, since it says explicitly “XWiki Help”, but I can see a few outcomes:
a) Rename it “Cristal Help” and have it open the Cristal “user guide” documentation.
b) Rename it “Cristal Help” and open a modal (but we need to decide on the content to put in there).
c) Remove it.
6) “Wiki Name” in the sidebar
We still do not support multiple wikis, and some backends simply do not have this concept. We could:
a) Still use the name of the wiki when applicable, and have specific names for, e.g., FileSystem and Nextcloud (for GitHub, it could be the current branch name?).
b) Only display it with the XWiki backend.
c) Replace it with the name of the current configuration (or a “wikiName” property set in the configuration).
d) Remove it.
Note that in all the options, choosing “Remove” will simply mean that I will create an improvement issue to put the element back in the future. There are also other placeholders (such as the search box) that will simply be removed because there’s nothing we can do without an actual implementation.
My votes would be:
- a
- b
- c
- b
- a
- c
WDYT?