Skip to content

Three test tab fixes#666

Merged
mhdirkse merged 7 commits intomasterfrom
test-tab-respect-report-generator-enabled
Mar 13, 2026
Merged

Three test tab fixes#666
mhdirkse merged 7 commits intomasterfrom
test-tab-respect-report-generator-enabled

Conversation

@mhdirkse
Copy link
Member

  • Replace test tab settings component by single button because the only option is to show/hide storage ids.
  • Respect choice in debug tab for report generator enabled - remove additional logic that obscures this.
  • Do not omit reports with empty XML when downloading from report component or when downloading from test tab. These download buttons do not show the checkbox.

@mhdirkse mhdirkse marked this pull request as ready for review March 12, 2026 11:09
@mhdirkse mhdirkse requested a review from Matthbo March 12, 2026 11:10
Copy link
Member

@Matthbo Matthbo left a comment

Choose a reason for hiding this comment

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

I dont see why the booleanToString pipe exists when it's literally a ternary which you can do in the angular template.
You even use a ternary in this PR for the same thing.

</div>

<p>Generator is {{ generatorEnabled|booleanToString: 'enabled':'disabled' }}</p>
<p>Generator is {{ this.settingsService.isGeneratorEnabled()|booleanToString: 'enabled':'disabled' }}</p>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<p>Generator is {{ this.settingsService.isGeneratorEnabled()|booleanToString: 'enabled':'disabled' }}</p>
<p>Generator is {{ this.settingsService.isGeneratorEnabled() ? 'enabled':'disabled' }}</p>

Copy link
Member Author

Choose a reason for hiding this comment

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

Deze booleanToString pipe is onderdeel van de Ladybug code, niet een import uit een library. Hij wordt intensief gebruikt. Ik haal hem hier weg. Ik ga hem op termijn wegwerken maar liever niet als onderdeel van deze PR.

Copy link
Member

Choose a reason for hiding this comment

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

Oke, Ik snap niet hoe de pipe ooit uit een PR review is gekomen maar het is niet bepaald meer de standaard die we zouden verwachten.
Overigens is de pipe vervangen simpel weg een tenary statement gebruiken op alle plekken dus ik verwacht wel dat het met een refactor of cleanup van de code dit opgepakt gaat worden.

@mhdirkse mhdirkse requested a review from Matthbo March 12, 2026 16:55
@mhdirkse mhdirkse merged commit eb9045e into master Mar 13, 2026
5 of 6 checks passed
@mhdirkse mhdirkse deleted the test-tab-respect-report-generator-enabled branch March 13, 2026 09:47
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.

2 participants