Skip to content
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

WIP: HACK: 90 edit preview mode support #3411

Closed
wants to merge 3 commits into from

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Mar 6, 2023

companion piece of neos/neos-development-collection#4067

@grebaldi what should i do im scared

What I did

How I did it

How to verify it

todo:

revert ce395ca once #3569 is merged

@mhsdesign mhsdesign changed the base branch from 8.3 to 9.0 March 6, 2023 19:26
@mhsdesign mhsdesign marked this pull request as draft March 6, 2023 19:26
@github-actions github-actions bot added 8.3 9.0 and removed 8.3 labels Mar 6, 2023
@mhsdesign
Copy link
Member Author

mhsdesign commented Mar 6, 2023

currently breaks other plugins like: https://github.com/sandstorm/MxGraph/blob/6e1b14bc63bdeb84effea2a687471e209db610b6/Resources/Private/JavaScript/MxGraph/src/DiagramEditor.js#L15-L29 as 'ui.contentCanvas.src' is not the actual value of the iframe

we discussed that this is fine ;)

@mficzel
Copy link
Member

mficzel commented Mar 9, 2023

Currently the review is triggered very often on the ui side

@@ -44,7 +44,8 @@ export function * watchStopLoading({globalRegistry, store}) {
export function * watchReload() {
yield takeLatest(actionTypes.UI.ContentCanvas.RELOAD, function * (action) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk but why is there no reducer of actionTypes.UI.ContentCanvas.RELOAD which updates the current iframe url (if in payload)

then we can use the same selector down in line 61 ... or we can put into the selector a modified temporal state ...

@bwaidelich
Copy link
Member

What's the state of this one? Is it still being worked on, @mhsdesign ?

@mhsdesign
Copy link
Member Author

currently untouched since dresden sprint. i dont know how neos/neos-development-collection#4067 moved forward and what was discussed in berlin about it (i have the feeling things were discussed in this direction). but feel free to sign me up for a sync meeting about it ^^

@mficzel
Copy link
Member

mficzel commented May 24, 2023

Main change is that we switched to separate edit and preview actions and decide on the rendering-mode by looking at the main request. Once this is accepted in neos/neos-development-collection#4067 it makes sense to proceed here.

@@ -55,7 +56,23 @@ export function * watchReload() {
// If the new uri is provided in the action payload, use that
//
if (iframeWindow.location.href === currentIframeUrl) {
iframeWindow.location.href = uri || iframeWindow.location.href;
if (uri) {
const state = yield select();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as @grebaldi noted, yield is not allowed here and we have to get the state above / or convert it to a for of loop.

@mficzel
Copy link
Member

mficzel commented Sep 15, 2023

Close as outdated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants