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

Preprocessor developer tools #61

Open
pushred opened this issue Aug 30, 2013 · 1 comment
Open

Preprocessor developer tools #61

pushred opened this issue Aug 30, 2013 · 1 comment

Comments

@pushred
Copy link
Member

pushred commented Aug 30, 2013

Since writing preprocessors involves changing the context of a resource’s response it’s necessary to constantly preview that response in the process. Currently the only way to do that is to load a page’s context as JSON, track down the resource, and find the affected regions. The use of a browser extension such as JSON Formatter certainly helps by providing code folding, syntax highlighting, etc. But it’s necessary to reload the entire context many times in the process of this development and getting back to the same region of the JSON can be tedious.

This process was much better while using Storyteller Editor, it’s Inspector JSON component with it’s ability to remember the state of the inspector even when it’s contents change. This along with autoupdating whenever changing the content of a function or a resource was a highly productive combination.

It would be great to be able to use Inspector JSON while developing Solidus sites. One method for doing this could be to offer it on a dedicated route as we once did in Storyteller as .context. Another option could be developing a browser extension, such as a Chrome Developer Tools panel as has been done to some success elsewhere for offering insight into the backend.

Examples:

Good run through of some others here.

Another problem that both platforms share is error logging. In Storyteller they were surfaced in a storyteller object within the context. Not very intuitive but it was ultimately supposed to be surfaced into the editor UI anyway. Solidus offers good logging at the server level which is certainly workable. But bubbling these errors up into wherever the context is being previewed would be even better and round out some basic developer tools.

@pushred
Copy link
Member Author

pushred commented May 17, 2014

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

No branches or pull requests

2 participants