Skip to content

update point and url table display component templates#1661

Merged
lyubov-voloshko merged 2 commits intomainfrom
signals-migration
Mar 12, 2026
Merged

update point and url table display component templates#1661
lyubov-voloshko merged 2 commits intomainfrom
signals-migration

Conversation

@lyubov-voloshko
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 12, 2026 13:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates table display field Angular templates to use the newer built-in control flow syntax (@if/@else) for rendering URL and Point field values in the UI components layer.

Changes:

  • Refactor URL display template from *ngIf to @if/@else.
  • Refactor Point display template from *ngIf to @if.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
frontend/src/app/components/ui-components/table-display-fields/url/url.component.html Switch conditional rendering to @if/@else for valid vs invalid URLs.
frontend/src/app/components/ui-components/table-display-fields/point/point.component.html Switch conditional rendering to @if when a formatted point value exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</a>
<span *ngIf="!isValidUrl">{{value() || '—'}}</span>
@if (isValidUrl) {
<a [href]="hrefValue" target="_blank"
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

Links opened with target="_blank" should include rel="noopener noreferrer" to prevent reverse-tabnabbing and avoid exposing window.opener to the linked page. Add the rel attribute on this anchor.

Suggested change
<a [href]="hrefValue" target="_blank"
<a [href]="hrefValue" target="_blank" rel="noopener noreferrer"

Copilot uses AI. Check for mistakes.
@lyubov-voloshko lyubov-voloshko merged commit ded18f4 into main Mar 12, 2026
13 of 15 checks passed
@lyubov-voloshko lyubov-voloshko deleted the signals-migration branch March 12, 2026 13:08
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