Replication Script UI
I've been working on creating the dynamic view for replication script creation/editing. I've learnt enough javascript/jquery and CSS/HTML to be dangerous now :)
The create view seems to be working well at this point, though I need to add error handling and double check things.
Here are images of what I have, and I'll explain further below
The left side has all the fields for defining the replication script. There is also a button to toggle the Script API help. I decided to hide it by default, as it takes up a lot of space.
The right side will display bugs that are matched by the script when the user clicks the button. This uses jquery/ajax to call a view function that tests the script against the Bugs in the database and returns a list of matched bug objects. For editing an existing script this will be a more complex view that shows a diff view between changes.
The scripts differ between the two pics. One is checking for even bug ids, and the other for odd ids. You can see the list changes after the script is updated and the button is pressed.
This definitely needs to be improved. One point is we should display whether a matched bug would be updated vs being created.
I'll push some code soon, but I definitely want to clean it/split it up.
Hopefully this gives an idea as to the layout though.