Skip to content

Commit

Permalink
add changelog entry
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
  • Loading branch information
victorgarcia98 committed Dec 18, 2023
1 parent 67b2937 commit 46f306a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions documentation/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ New features
-------------

* Better navigation experience through listings (sensors / assets / users / accounts) in the :abbr:`UI (user interface)`, by heading to the selected entity upon a click (or CTRL + click) anywhere within a row [see `PR #923 <https://github.com/FlexMeasures/flexmeasures/pull/923>`_]
* Introduce a breadcrumb to navigate through assets and sensor pages using its child-parent relationship [see `PR #930 <https://github.com/FlexMeasures/flexmeasures/pull/930>`_]

Infrastructure / Support
----------------------
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/ui/templates/crud/asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% block divs %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{% for breadcrumb in breadcrumb_info["breadcrumb"] %}
{% for breadcrumb in breadcrumb_info["ancestors"] %}
<li class="breadcrumb-item{% if loop.last %} active{% endif %}" {% if loop.last %}aria-current="page"{% endif %}>
{% if breadcrumb["url"] is not none and not loop.last %}
<a href="{{ breadcrumb['url'] }}">{{ breadcrumb['name'] }}</a>
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/ui/templates/views/sensors.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% block divs %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{% for breadcrumb in breadcrumb_info["breadcrumb"] %}
{% for breadcrumb in breadcrumb_info["ancestors"] %}
<li class="breadcrumb-item{% if loop.last %} active{% endif %}" {% if loop.last %}aria-current="page"{% endif %}>
{% if breadcrumb["url"] is not none and not loop.last %}
<a href="{{ breadcrumb['url'] }}">{{ breadcrumb['name'] }}</a>
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/ui/utils/breadcrumb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def get_breadcrumb_info(entity: Sensor | Asset | Account | None) -> dict:
return {
"breadcrumb": get_ancestry(entity),
"ancestors": get_ancestry(entity),
}


Expand Down

0 comments on commit 46f306a

Please sign in to comment.