Making WordPress.org

Ticket #1318: meta-1318.patch

File meta-1318.patch, 1.9 KB (added by SergeyBiryukov, 9 years ago)
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

     
    1313                'needs-testing' : 'Patch has a particular need for testing.',
    1414                'ui-feedback' : 'Feedback is needed from the user interface perspective, generally from the UI team.',
    1515                'ux-feedback' : 'Feedback is needed from the user experience perspective, generally from a UX lead.',
     16                'has-unit-tests' : 'Proposed solution has unit test coverage.',
    1617                'needs-unit-tests' : 'Ticket has a particular need for unit tests.',
    1718                'needs-docs' : 'Inline documentation is needed.',
    1819                'needs-codex' : 'The Codex needs to be updated or expanded.',
     20                'has-screenshots' : 'Visual changes are documented with screenshots.',
     21                'needs-screenshots' : 'Screenshots are needed as a visual change log.',
    1922                'commit' : 'Patch is a suggested commit candidate.',
    2023                'early' : 'Ticket should be addressed early in the next dev cycle.',
    2124                'i18n-change' : 'A string change, used only after string freeze.',
     
    539542                                                wpTrac.workflow.removeKeyword( 'has-patch' );
    540543                                        }
    541544
     545                                        if ( 'has-unit-tests' === keyword ) {
     546                                                wpTrac.workflow.removeKeyword( 'needs-unit-tests' );
     547                                        } else if ( 'needs-unit-tests' === keyword ) {
     548                                                wpTrac.workflow.removeKeyword( 'has-unit-tests' );
     549                                        }
     550
     551                                        if ( 'has-screenshots' === keyword ) {
     552                                                wpTrac.workflow.removeKeyword( 'needs-screenshots' );
     553                                        } else if ( 'needs-screenshots' === keyword ) {
     554                                                wpTrac.workflow.removeKeyword( 'has-screenshots' );
     555                                        }
     556
    542557                                        // Add it to the bin, and refresh the hidden input.
    543558                                        html = $('<span />').text(keyword).attr('data-keyword', keyword).prepend('<a class="dashicons dashicons-dismiss" href="#" />');
    544559                                        if ( title )