-
-
Notifications
You must be signed in to change notification settings - Fork 1
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improve changes presentation for non-technical users #10
Comments
I'd like to present editors with a table-like summary of changes including the following details in plain language (translateable ideally):
The ultimate UI I envisage has dropdowns on each changed entry (like Admin's Plugin list) which shows a full coloured diff with selectable hunks, as well as renames. Aim high! |
And maybe the user.name and/or user.email in the list of changes? |
Do you mean
I suspect the first. I like that one, not sure if the second one is recorded by Grav. Also I envisage one editor per installation but that's just me imposing my norms. |
I presumed you wanted to present the Admin user a commit history per page, which could be handy. I now realise you probably want a detailed overview of the page before publishing it. In that case, Grav itself isn't providing the name of the user who edited the page. However... the blueprint for the page can be changed in order to automatically save the user's name/email in the frontmatter of the page. |
@pamtbaau do you know if there's an equivalent to |
Uhm... what exactly are you trying to achieve? I'm missing a bit of context. |
Oh to present the page title and link to the page in the improved display. Item 2 in my wishlist above. That was the context, sorry. I think that's much friendlier than a filesystem path. |
Ah yes, that's indeed an improvement for the user. I'll have a look at it. |
That's a big improvement on what's there now. I hadn't thought of an edit link. I would prefer the title is hyperlinked with a new window-type icon adjacent than the eye. However, bear in mind I would eventually like users to be able to drop down a side-by-side diff display, as well as the information mentioned in earlier comments (especially change type, I am conscious that files that are renamed and edited might be confusing, and this can easily happen through Admin plugin). Also, we can't assume every change is a page. But sure, if you don't mind putting time into an interim display, go for it. Thank you! |
RequestHandler doesn't assume anything. It returns anything that PushyRepo returns as changed item. Only when item is in the /pages/ folder, it will lookup the title and external url. Unfortunately, in RequestHandler, I had to fake a config item, because the PushyRepo seems not to be returning anything other then changed pages, while |
That's exactly it!
Perfect.
Add something like |
Tried that for sure! But, I'm more dafted than I thought... The config file is at the top of the list which I hadn't noticed... Will do some chores and push the branch. |
Pushed branch 'feature-page-titel' NB. You might consider changing the ordering of items returned by PushyRepo. Grouping by item type (page, config, data, ...) might be a tad better. The following returned list isn't that neat:
|
I forgot to mention I looked at Git options for this and there don't seem to be any! Moreover, I'm curious what the order is. So this might have to be sorted by PHP. |
I think Git status will return the changed items ordered by Server: Client: On the other hand... Media (and possibly media meta data files) belonging to a page might be better shown together with the page itself since they form some kind of a unit of work. A little indentation of images might be sufficient.
|
I overlooked this until now. That indentation layout is very useful. |
I've done some work pulling up an object-like array, but it retains git symbols like "D", "?", "M" that need translating. Started a combobulate function/method that I might use to translate those codes for users. I also want to mention renames and did some work towards returning that information from status.
I'll try to spec the UI out better when I have some time.
The text was updated successfully, but these errors were encountered: