Closed bosschaert closed 2 months ago
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed. In case there are problems, just click a checkbox below to rerun the respective action.
Note that the Playwright tests should pass again once https://github.com/adobe/da-collab/pull/38 has been merged.
I don't think we should expose these error messages to the authors. No author will ever understand a stack trace and developers have the console for debugging. This does raise some interesting considerations on parsing and what we should show in the event of an error.
It's also a little scary we already think we will have errors. Do we know what those will be? 😬
I don't think we should expose these error messages to the authors. No author will ever understand a stack trace and developers have the console for debugging. This does raise some interesting considerations on parsing and what we should show in the event of an error.
It's also a little scary we already think we will have errors. Do we know what those will be? 😬
Hi @auniverseaway, starting at the end. We're not expecting any specific errors. As a matter of fact, I have only experienced such an error once during development which was then quickly fixed by @karlpauls - after that I haven't seen any. On the other hand, as with any running process there is always the possibility of errors, albeit small.
So then the question becomes. What do we do if there is an error?
Some options:
So my thinking was that with a message the Author is alerted to a problem and guided to contact support. The stack trace in there could be used to send to support to help them fix the problem, but I agree that maybe this is too much for on the screen.
So while I don't anticipate errors popping up what do you think the strategy should be if we have one?
This PR is now replaced by #163
Description
da-collab now does its own aem2doc and vice versa parsing. This PR is to accommodate this on the client side. It additionally contains a panel to show error messages from the server if there are any.
It also contains a bugfix to close the current websocket if the client navigates to a different document.
Related Issue
This is the client-side change for https://github.com/adobe/da-collab/pull/38
Screenshots
Of the new error panel.
Basic error message:
Stack trace can be seen when expanding:
How Has This Been Tested?
Types of changes
Checklist: