Skip to content

Af tree explorer recipe#100

Open
Ellana42 wants to merge 289 commits into
masterfrom
feature/af-tree-explorer-recipe
Open

Af tree explorer recipe#100
Ellana42 wants to merge 289 commits into
masterfrom
feature/af-tree-explorer-recipe

Conversation

@Ellana42

Copy link
Copy Markdown

No description provided.

JaneBellaiche and others added 30 commits January 8, 2026 10:19
*ability to check/uncheck the attributes
* remove recursivity when selecting an element
…r a search

* highlight elements when clicking on it from the tree view
* clear element input when clicking on an other element from the tree view
*put the attributes in a styled table
*add an array of urls for clicked nodes
*template tree
*add select/unselect all
*separate template search from element search
Ellana42 and others added 29 commits June 2, 2026 12:04
All objects using attributes reference that structure
watcher to callBack for refreshing displayed attributes
'mandatory': true
};

$scope.config.attributeList = $scope.config.attributeList || []; // la liste des attributs qui sont affichés sur le main panel à droite

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: shorthand

Suggested change
$scope.config.attributeList = $scope.config.attributeList || []; // la liste des attributs qui sont affichés sur le main panel à droite
$scope.config.attributeList ||= []; // la liste des attributs qui sont affichés sur le main panel à droite


function buildSelectedAttributesTable() {
return ($scope.config.outputSelectedAttributes || [])
.filter(attribute => attribute.checked !== false)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be loose equality here, so we don't leave null and undefined passing through (even though I don't think there are)

Suggested change
.filter(attribute => attribute.checked !== false)
.filter(attribute => attribute.checked)

}

$scope.onAdvancedToggle = function() {
if (!$scope.config.show_advanced_parameters) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionally I don't expect a show/hide checkbox to alter the values of config

if ($scope.config.elements_max_count === null || $scope.config.elements_max_count === undefined || $scope.config.elements_max_count === "") {
$scope.config.elements_max_count = 100;
}
if ($scope.config.attributes_max_count === null || $scope.config.attributes_max_count === undefined || $scope.config.attributes_max_count === "") {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shorter if you like it

Suggested change
if ($scope.config.attributes_max_count === null || $scope.config.attributes_max_count === undefined || $scope.config.attributes_max_count === "") {
if (!!!$scope.config.attributes_max_count) {

</div>
<div class="pi-system-explorer__content">
<pi-system-auth-banner></pi-system-auth-banner>
<div class="control-group removed-if-manual-query" ng-show="false" ng-if="config.database_name">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ng-show=false all the time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants