• 
      

    Add a mobile mode attribute to the review request editor view.

    Review Request #14126 — Created Aug. 28, 2024 and submitted

    Information

    Review Board
    release-7.x

    Reviewers

    A inMobileMode attribute already exists on the base PageView class for
    letting views know whether they're being viewed on a mobile device. This
    change plumbs that attribute through to the ReviewRequestEditorView. This
    will be useful in an upcoming change for fixing file attachment actions
    on mobile, and is generally useful if we need to do any mobile specific
    behaviour on the review request editor view or any other views attached
    to it in the future.

    • Ran JS unit tests.
    • Used in an upcoming change.
    Summary ID
    Add a mobile mode attribute to the review request editor view.
    A `inMobileMode` attribute already exists on the base `PageView` class for letting views know whether they're being viewed on a mobile device. This change plumbs that attribute through to the `ReviewRequestEditorView`. This will be useful in an upcoming change for fixing file attachment actions on mobile, and is generally useful if we need to do any mobile specific behaviour on the review request editor view or any other views attached to it in the future.
    1a27423de8b3067b6eaa9b81d257844216971ca3
    Description From Last Updated

    Let's put the > { on the next line.

    daviddavid

    Options isn't really meant to be a place to store mutable state. It's probably better to have inMobileMode be a …

    daviddavid

    Can you add a Version Added to these?

    chipx86chipx86

    Here, too.

    chipx86chipx86
    david
    1. 
        
    2. Show all issues

      Let's put the > { on the next line.

    3. Show all issues

      Options isn't really meant to be a place to store mutable state. It's probably better to have inMobileMode be a member that can be initialized by passing it in through options.

    4. 
        
    maubin
    david
    1. Ship It!
    2. 
        
    chipx86
    1. 
        
    2. Show all issues

      Can you add a Version Added to these?

    3. Show all issues

      Here, too.

    4. 
        
    maubin
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.x (267eb75)