Recommended Posts

ProcessNetteTester

Run Nette Tester tests within ProcessWire admin.
(continued from here)

processnettetester-v008.thumb.png.25414515c3b972c21ed2cd7e948547e7.png

Features

  • AJAX interface for running Nette Tester tests, in bulk or manually
  • display counter, error message and execution time in a table
  • run all tests at once or launch single tests
  • show formatted test error messages and report PHP syntax errors
  • stop on first failed test (optional)
  • hide passed tests (optional)
  • display failed/total instead passed/total (optional)
  • re-run failed tests only (optional)
  • auto scroll (optional)
  • include or exclude tests based on query parameters
  • start/stop all tests with the spacebar
  • reset one test or all tests (ctrl+click)
  • TracyDebugger File Editor integration

https://modules.processwire.com/modules/process-nette-tester/

https://github.com/rolandtoth/ProcessNetteTester

  • Like 13

Share this post


Link to post
Share on other sites

I've added Tracy Editor integration, so if Tracy is installed and its File Editor feature is enabled you can click on a test name and the editor loads.

@adrian

It was not straightforward to integrate the editor, adding "tracy://?f=..." wasn't enough. I've pulled the corresponding script and then it started to work fine.

However, currently the page reloads after save in the editor which is a drawback in this module. Is there a way to skip this? Perhaps adding an extra parameter to tracyFileEditorLoader.loadFileEditor?

Or would it interfere with the editor's Backup feature?
(I don't mind if it's not available in this case)

  • Like 3

Share this post


Link to post
Share on other sites

Hey @tpr - I think the issue with the file-editor.js file is that in Tracy it's not loaded until the File Editor panel is triggered. I don't think I really want to change this behavior because I'd rather Tracy loaded as little as possible on each page load and only bring in panel specific assets when needed. Is that ok? EDIT: actually I don't know why you are having to load it - surely you are still opening the editor panel - not sure why that file isn't loaded.

Regarding the page reload - typically in the Tracy File Editor you are editing the template for the page you are viewing, so you actually want to reload the page to see the changes. Saving could be converted to AJAX, but then you'd need to reload the page anyway to see the changes. I understand it's not what you are looking for in this case though, so maybe we need an AJAX save option - maybe two buttons: Save and Save & Reload. 

Any thoughts?

Share this post


Link to post
Share on other sites

tracyFileEditorLoader was not available until the File Editor panel was not opened, so clicking on an edit link (outside of any Tracy panel) didn't do anything. Anyway, I'm fine with the current solution.

An AJAX save would definitely solve the issue here but I don't know if there any users who would use this. I can live with the page reload, I think I would use the File Editor only to see what's happening or what went wrong, and edit the file in my IDE. So I would suggest leaving as it is until someone requests that.

  • Like 2

Share this post


Link to post
Share on other sites
5 minutes ago, tpr said:

tracyFileEditorLoader was not available until the File Editor panel was not opened, so clicking on an edit link (outside of any Tracy panel) didn't do anything.

Interesting. Test this out.

1) Make sure you have: "Force editor links to use Tracy File Editor" checked.

2) Turn on the File Editor panel

3) Load a page and click the edit template icon at the bottom right of the Request Info panel - it should load the File Editor

That works for me. Does it work for you?

Share this post


Link to post
Share on other sites

It works. I will check it on localhost too, that's where it failed, but perhaps I hadn't checked the Force option.

Share this post


Link to post
Share on other sites

Worked fine on the other site at localhost so I removed the included Tracy script, thanks!

  • Like 1

Share this post


Link to post
Share on other sites

I've updated the module to v0.0.9: failure messages containing HTML are displayed as plain text. So eg. if you test if an iframe markup is returned and it fails, the error displayed will show the markup as text and not parsed as HTML as before.

  • Like 3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Robin S
      Pages At Bottom
      Keeps selected pages at the bottom of their siblings.
      A "bottom page" will stay at the bottom even if it is drag-sorted to a different location or another page is drag-sorted below it (after Page List is refreshed the bottom page will still be at the bottom).
      Newly added sibling pages will not appear below a bottom page.
      The module also prevents the API methods $pages->sort() and $pages->insertAfter() from affecting the position of bottom pages.
      Note: the module only works when the sort setting for children on the parent page/template is "Manual drag-n-drop".
      Why?
      Because you want some pages to always be at the bottom of their siblings for one reason or another. And someone requested it. 🙂
      Usage
      Install the Pages At Bottom module.
      Select one or more pages to keep at the bottom of their siblings.

       
      https://github.com/Toutouwai/PagesAtBottom
      https://modules.processwire.com/modules/pages-at-bottom/
      Coming soon: sort bottom pages in Page List according to their sort order in the module config.
    • By Robin S
      Another little admin helper module...
      Template Field Widths
      Adds a "Field widths" field to Edit Template that allows you to quickly set the widths of inputfields in the template.

      Why?
      When setting up a new template or trying out different field layouts I find it a bit slow and tedious to have to open each field individually in a modal just to set the width. This module speeds up the process.
      Installation
      Install the Template Field Widths module.
      Config options
      You can set the default presentation of the "Field widths" field to collapsed or open. You can choose Name or Label as the primary identifier shown for the field. The unchosen alternative will become the title attribute shown on hover. You can choose to show the original field width next to the template context field width.  
      https://github.com/Toutouwai/TemplateFieldWidths
      https://modules.processwire.com/modules/template-field-widths/
    • By horst
      Croppable Image 3
      for PW 3.0.20+
      Module Version 1.1.16
      Sponsored by http://dreikon.de/, many thanks Timo & Niko!
      You can get it in the modules directory!
      Please refer to the readme on github for instructions.
       
      -------------------------------------------------------------------------
       
      Updating from prior versions:
       
      Updating from Croppable Image 3 with versions prior to 1.1.7, please do this as a one time step:
      In the PW Admin, go to side -> modules -> new, use "install via ClassName" and use CroppableImage3 for the Module Class Name. This will update your existing CroppableImage3 module sub directory, even if it is called a new install. After that, the module will be recogniced by the PW updater module, what makes it a lot easier on further updates.
      -------------------------------------------------------------------------
       
      For updating from the legacy Thumbnail / CropImage to CroppableImage3 read on here.
       
      -------------------------------------------------------------------------
       
    • By MoritzLost
      UPDATE: I have published a stable version of this module!
      Discussion thread:
      Github: https://github.com/MoritzLost/TextformatterPageTitleLinks
      ---
      Hello there,
      I'm working on a tiny textformatter module that searches the text for titles of other pages on your site and creates hyperlinks to them. I'm not sure if something like this exists already, but I haven't found anything in the module directory, so I wrote my own solution 🙂
      It's not properly tested yet and is still missing some functionality I would like to implement, so at the moment it should be considered in BETA. Features include limiting the pages that will get searched by template, and adding a custom CSS class to the generated hyperlinks. As I'm writing this I noticed that it will probably include unpublished and hidden pages at the moment, so yeah ... it's still in development alright 😅
      You can download the module from Github:
      https://github.com/MoritzLost/TextformatterPageTitleLinks
      There's some more information in the readme as well.
      Anyway, let me know what you think! I'm happy about any feedback, possible improvements or ideas on how to improve the module. Cheers.
    • By blad
      Hi guys!
      I just uploaded a module to explore files based on elFinder. By default it will show the "Files" folder.
      Screenshots:

      Video:
       
      To do:
       More options To fix:
       The function of rotating or scaling an image fails  Image editors V 1.01 (view issue)
      Fixed the bug working with the Multi-Language support ( translation of folders ). Fixed the name of elfinder.en  Github:
      https://github.com/LuisSantiago/ProcessElFinder/
      I hope you like it.