git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] brooklyn-ui pull request #96: Relevance and other composer tweaks


GitHub user ahgittin opened a pull request:

    https://github.com/apache/brooklyn-ui/pull/96

    Relevance and other composer tweaks

    Several things to make composer easier to use:
    
    * When searching in palette, it now sorts by "Relevance" as primary order; relevance formula is a bit complicated, poor-man's AI :), but works pretty damn well (!)
    * Sort is always multi-sort, and dropdown shows the sort order (this could do with more UI goodness to make that obvious, but it does the right thing if you interact with it; "relevance" above obviously has no effect when not searching so "name" as second-order search order is what you normally get)
    * Default palette now shows 3 wide; with more height and longer names this seems better (4 wide aka "Compact" is an option)
    * the Quick Info pane from the palette is now toggleable, and showing this is the default action if you click on a tile (not adding to the root of the application which was a bit surprising!); it has buttons for the previous "selection" action, and also a button to open in catalog
    * selecting from palette adds to a focus entity if there is a focus entity
    * extensible in several places, including the spec editor sections can be customized or removed
    
    Below is a sample screen shot, for a downstream project that uses the UI (and has a lot of types), but the mods all apply to the stock brooklyn UI (though only really useful with a big catalog!):
    
    <img width="1411" alt="screen shot 2018-11-01 at 12 25 13" src="https://user-images.githubusercontent.com/496540/47851889-e41fe900-ddd1-11e8-9864-917c668ebe43.png";>


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ahgittin/brooklyn-ui relevance-and-other-composer-tweaks

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-ui/pull/96.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #96
    
----
commit 6ae7338f72a25cc7862ad0db37860a108dabce3d
Author: Alex Heneveld <alex.heneveld@...>
Date:   2018-10-31T12:56:20Z

    sort search results by relevance
    
    and display sort fields dropdown in order used

commit 4d42539e695fdd8354b076b2ae724f730f4aef0f
Author: Alex Heneveld <alex.heneveld@...>
Date:   2018-10-31T13:24:47Z

    make default view 3x wide rather than 4x wide

commit bad6676562e58ad9adf9a3b9fb893b5fc4763852
Author: Alex Heneveld <alex.heneveld@...>
Date:   2018-10-31T16:37:10Z

    quick info pane is toggle-able, and has buttons to add

commit feac3fc1b1034160fda7c1a285061a2cd8ef4d1f
Author: Alex Heneveld <alex.heneveld@...>
Date:   2018-10-31T16:56:58Z

    allow spec editor sections to be customized

commit e20a8d12bffb05b7010fe824a8c57deec27a8e0f
Author: Alex Heneveld <alex.heneveld@...>
Date:   2018-11-01T11:22:53Z

    allow selection text and behaviour to be customized in palette
    
    when adding, clicking the icon adds it directly; but on palette clicking opens popup;
    and popup button gets correct configurable message

----


---