Skip to content

Af tree explorer recipe#100

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

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

Conversation

@Ellana42

Copy link
Copy Markdown

No description provided.

JaneBellaiche and others added 30 commits February 23, 2026 12:13
*reset selectAllAttributes state when changing element
*
*1 attribute = 1 path
* show linked paths in the output dataset
*close auth section when login is ok
*fix expand/collapse
*display intermediate nodes
*keep search result after node click
*auto-display attribute-only search results
*persist output-selected attributes
*stabilize attribute /element search scope
*separata tables for standalone attributes and attributes grouped by template
*add logs to track api calls after click on  LOGIN
Comment thread js/pi-system_treecontroller.js Outdated
'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) {

Comment thread resource/pi-system_af-explorer.html Outdated
</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?

Ellana42 and others added 26 commits June 17, 2026 15:30
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