Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7419 resource model expand collapse all #11663

Open
wants to merge 8 commits into
base: dev/8.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions arches/app/media/css/components/search/_advanced-search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
}
}

.tree-display-tool{
width: max-content;
color: #777;
font-size: 1.2rem;
}
.spacing-class {
margin-left: 7px;
}

.facets-container {
width: 275px;
border-inline-start: 1px solid #ddd;
Expand Down
16 changes: 15 additions & 1 deletion arches/app/templates/views/components/search/advanced-search.htm
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<div class="list-group search-facets">
<div class="search-facet-item header">
<div class="search-facet-item-heading">
<span data-bind="text: $root.translations.searchFacets"></span>
<span data-bind="text: $root.translations.searchFacets"></span>
</div>
<div class="list-filter">
<input
Expand All @@ -111,6 +111,20 @@
"
><i class="fa fa-times-circle"></i></span>
</div>
<div class="tools">
<a
role="button" class="tree-display-tool"
data-bind="onEnterkeyClick, onSpaceClick,
click: function () {searchableGraphs(searchableGraphs().map(graph=>graph.collapsed(false)))}">
<i class="ion-plus"></i>{% trans ' Expand' %}
</a>
<a
role="button" class="tree-display-tool spacing-class"
data-bind="onEnterkeyClick, onSpaceClick,
click: function () {searchableGraphs(searchableGraphs().map(graph=>graph.collapsed(true)))}">
<i class="ion-minus"></i>{% trans ' Collapse' %}
</a>
</div>
</div>
<!-- ko foreach: searchableGraphs -->
<!-- ko if: cards().length > 0 -->
Expand Down
2 changes: 1 addition & 1 deletion releases/8.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Arches 8.0.0 Release Notes
- Make number datatype node values searchable in the main search [#11619](https://github.com/archesproject/arches/issues/11619)
- Prevent navigation to a new browser tab when clicking Manage link in index.htm [#11635](https://github.com/archesproject/arches/issues/11635)
- Add support for tile sort order to the bulk data manager [#11638](https://github.com/archesproject/arches/pull/11638)

- Add expand all and collapse all buttons to the top of the list much like the node tree in the graph designer.#[7419](https://github.com/archesproject/arches/issues/7419)
### Dependency changes
```
Python:
Expand Down
Loading