-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
New Changes Comparison View #6770
Conversation
826a7d5
to
f39217c
Compare
bc34cbc
to
e2ccb23
Compare
@distantnative I played around a lot after your suggestions and came up with a mixture of the old live preview view, your suggestions and my own version.
|
@bastianallgeier What do you think about including the page tree dropdown for the title as in the old experiment? Or too much for this? |
I did that at first and then took it out again. It's awesome, but I think we need to get the basics right first. |
Co-authored-by: Nico Hoffmann ෴. <[email protected]>
Co-authored-by: Nico Hoffmann ෴. <[email protected]>
I loved the feature, almost perfect 😍 Some points for first test:
|
@afbora thanks for testing. I just fixed the toggle issue. I cannot really reproduce the draft problem though. What kind of error do you see? Shortcuts would be nice indeed. |
@bastianallgeier Thank you. Please follow the steps:
|
I can reproduce the draft problem. Trying to find out where it's going wrong. EDIT: found it. The URLs created for the preview are So double |
We will need a pretty version of $changes = match (parse_url($preview, PHP_URL_QUERY)) {
null => $preview . '?_version=changes',
default => $preview . '&_version=changes'
}; |
Only I can found:
💡 Ideas:
|
@afbora I've fixed the permission issue and added a new ESC shortcut to leave the preview. The idea for mobile test buttons is definitely cool. Especially as soon as we implement live-editing. |
If the |
@afbora yes, I think that's still a problem for now. I wonder if we can catch this somehow and maybe show a notification directly in the view. |
fetch(this.src.latest)
.then(resp => {
const csp = resp.headers.get('Content-Security-Policy');
console.log(csp);
}); Maybe we can check via something like above codes. But I'm not sure if it's worth it. I just meant to provide a warning and solution in the our documentation pages. |
@afbora I thought about it some more and I would suggest that we rather leave it as it is and then react to edge cases when they happen. |
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.
Looks great for me 👍 Lets release in alpha release to allow developers to test it and get it feedback from them.
Description
Summary of changes
k-preview-view
component/pages/(:any)/preview
route/view/site/preview
route/viewasterisk
layout-columns
layout-right
layout-left
expand-horizontal
collapse-horizontal
window
PreviewDropdownButton
classcopyToClipboard
event handler in the event.js which can be triggered like this:Changelog
Features
Ready?
For review team