Improve handling of import queue template entries
Goal
According to user feedback, the current workflow to review templates on the import queue is not very efficient. Especially the need to switch between the queue listing and the form for the individual entries is slowing down work, as well as the need to copy-and-paste strings to define template names and translation domains.
Anticipated imporvement are:
- get suggestions on template name and translation domain based on the file name
- if the suggestoin is correct, the approval should occur right in the queue list display by changing the status of the entry.
Changed workflow
The workflow should be changed to include more states for the queue entries. These new states represent the findings of the auto-approval script when it was not able to approve an entry.
New marks this template as a (possibly) new upload that has not been uploaded yet. This is determined by extracting a template name from the file name and not finding a match for it in the database.
* Exists marks this template as (possibly) being a replacement for an existing template but with a changed file name. This is the case if the template name extracted from the file name is found in the database but the existing translation domain does not match the new translation domain. Approving this entry would update the translation domain to the new value. * Conflicts marks a template whose translation domain is already found in a different package (this check is already done). The reviewer's action woudl be to either block this entry or to deactivate the old template and approve this entry.