Skip to content

Commit 6d98203

Browse files
Merge pull request #2466 from asfadmin/tyler/nisar-docs
NISAR docs links
2 parents 00ef7b4 + c1cdd5b commit 6d98203

7 files changed

Lines changed: 26 additions & 11 deletions

File tree

src/app/components/results-menu/scene-detail/scene-detail.component.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@
9393
<span matTooltip="{{ 'FREQUENCY' | translate }}">{{
9494
dataset.frequency
9595
}}</span>
96+
@if (dataset.id === 'NISAR') {
97+
<em class="uncalibrated"
98+
><app-docs-modal
99+
class="info-text"
100+
[text]="'(' + ('UNCALIBRATED' | translate) + ')'"
101+
url="https://nisar-docs.asf.alaska.edu/product-known-issues/"
102+
>
103+
</app-docs-modal>
104+
</em>
105+
}
96106
</mat-card-subtitle>
97107
</mat-card-header>
98108
<div class="detail-card-info">

src/app/components/results-menu/scene-detail/scene-detail.component.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ a {
1111
text-decoration: none;
1212
}
1313

14+
.uncalibrated {
15+
margin-left: 5px;
16+
}
1417
.detail-card {
1518
max-width: 100%;
1619
height: 90%;

src/app/components/shared/docs-modal/docs-modal.component.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
@if (text && !custStyle) {
2-
<a (click)="showDoc()" class="link-pointer text-link">
3-
{{ text | translate }}
2+
<a (click)="showDoc()" class="link-pointer text-link"
3+
>{{ text | translate }}
44
</a>
55
}
66
@if (text && custStyle) {
7-
<a (click)="showDoc()" style="{{ custStyle }}">
8-
{{ text | translate }}
9-
</a>
7+
<a (click)="showDoc()" style="{{ custStyle }}">{{ text | translate }} </a>
108
}
119
@if (description) {
1210
<a

src/app/components/shared/docs-modal/docs-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class DocsModalComponent implements OnInit, OnDestroy {
100100

101101
public isAsfUrl(url: string): boolean {
102102
const domain = new URL(url).hostname.replace('www.', '');
103-
return domain.includes('asf.alaska.edu');
103+
return domain.includes('asf.alaska.edu') && domain !== 'asf.alaska.edu';
104104
}
105105

106106
public docsLanguageAdjust(url: string): string {

src/app/components/shared/max-results-selector/max-results-selector.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class MaxResultsSelectorComponent implements OnInit, OnDestroy {
5252

5353
public burstXMLFileCount = 0;
5454

55-
public possibleMaxResults = [250, 500];
55+
public possibleMaxResults = [250, 500, 1000, 2000];
5656
private subs = new SubSink();
5757
constructor() {
5858
const library = inject(FaIconLibrary);

src/app/components/shared/selectors/dataset-selector/dataset/dataset.component.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
}
1818

1919
@if (dataset.id === 'NISAR') {
20-
<span
21-
><em> ({{ 'UNCALIBRATED' | translate }}) </em></span
22-
>
20+
<span>
21+
<app-docs-modal
22+
class="info-text"
23+
[text]="'(' + ('UNCALIBRATED' | translate) + ')'"
24+
url="https://nisar-docs.asf.alaska.edu/product-known-issues/"
25+
></app-docs-modal
26+
></span>
2327
}
2428
@if (dataset.subName) {
2529
<div class="dataset__subName faint-text">

src/app/models/datasets/nisar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const nisar = {
2323
],
2424
apiValue: { dataset: 'NISAR' },
2525
date: { start: new Date('2025/08/02 03:44:43 UTC') },
26-
infoUrl: 'https://nisar.jpl.nasa.gov',
26+
infoUrl: 'https://nisar-docs.asf.alaska.edu/',
2727
citationUrl: 'https://asf.alaska.edu/nisar/',
2828
frequency: 'L-Band',
2929
source: {

0 commit comments

Comments
 (0)