• 
      

    Status Updates part 10: Make reply draft banners work inline in status updates.

    Review Request #8447 — Created Sept. 28, 2016 and submitted

    Information

    Review Board
    release-3.0.x
    0b6d896...

    Reviewers

    Until now, my plan was to get as much of the status update code in as possible
    but never move the future out of EXPERIMENTAL until we had the new unified
    draft banners. This was because the reply banners for replies to reviews were
    owned by the ReviewBoxView, and there seemed to be no good way to port that
    behavior over given that there are multiple reviews stuffed into a single box.

    This change makes it work by displaying the reply draft banners inline in the
    status update sections, below the header (which contains the status update
    summary) and above all the comments. This is set to float so that it will dock
    at the top of the screen as long as that review is visible, the way that our
    other reply draft banners work.

    The goal is still to replace these with the new unified draft banners, but that
    work is no longer blocking.

    While I was in here I fixed a small regression that I introduced with
    collapsing review boxes that have a draft reply (where the banner would still
    be displayed).

    • Replied to reviews attached to status updates, both in the initial status
      updates box and the change description boxes.
    • Verified the floating banner behavior when scrolling around with a bunch of
      reply drafts.
    • Checked the appearance of all types of boxes when expanding and collapsing.

    reviewbot
    1. Tool: PEP8 Style Checker
      Ignored Files:
          reviewboard/templates/reviews/boxes/change.js
          reviewboard/static/rb/js/views/changeBoxView.es6.js
          reviewboard/static/rb/css/ui/banners.less
          reviewboard/static/rb/js/views/reviewView.es6.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/templates/reviews/boxes/initial_status_updates.js
          reviewboard/static/rb/js/views/initialStatusUpdatesBoxView.es6.js
          reviewboard/static/rb/js/views/reviewBoxView.es6.js
          reviewboard/templates/reviews/status_update_review_section.html
      
      
      
      Tool: Pyflakes
      Ignored Files:
          reviewboard/templates/reviews/boxes/change.js
          reviewboard/static/rb/js/views/changeBoxView.es6.js
          reviewboard/static/rb/css/ui/banners.less
          reviewboard/static/rb/js/views/reviewView.es6.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/templates/reviews/boxes/initial_status_updates.js
          reviewboard/static/rb/js/views/initialStatusUpdatesBoxView.es6.js
          reviewboard/static/rb/js/views/reviewBoxView.es6.js
          reviewboard/templates/reviews/status_update_review_section.html
      
      
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (0e06bd8)