-
Notifications
You must be signed in to change notification settings - Fork 0
470 export section people #498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
2770439
ebc2fc2
2199ce2
238d870
8cf3e3f
765294f
5acef2f
1edd38a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { View } from './'; | ||
| import { CollectionView, View } from './'; | ||
| import { ExportView } from './export-view'; | ||
| import { FieldView } from './field-view'; | ||
|
|
||
|
|
@@ -13,7 +13,7 @@ export interface DisplaySubsectionView extends FieldView { | |
| templateFunction?: (individual: any) => string; | ||
| } | ||
|
|
||
| export interface DisplayTabSectionView extends FieldView { | ||
| export interface DisplayTabSectionView extends FieldView, CollectionView { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please only add the required fields to the DisplayTabSectionView. is the only required field. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The methods argument types in the view utility should be improved to isolate the required data.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please allow me to create a note to address this issue. |
||
| readonly hidden: boolean; | ||
| readonly shared: boolean; | ||
| readonly paginated: boolean; | ||
|
|
@@ -23,6 +23,7 @@ export interface DisplayTabSectionView extends FieldView { | |
| readonly requiredFields: string[]; | ||
| readonly lazyReferences: string[]; | ||
| readonly subsections: DisplaySubsectionView[]; | ||
| readonly exportViews: ExportView[]; | ||
tamu-sad-iii marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| export interface DisplayTabView extends View { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code:
I'm not sure about this line.
When
${this.individual?.id}is undefined, then the URL generated will have double slashes.If there is no individual, will this URL be valid?
If so, then I suggest conditionally adding both the id AND the forward slash based on the same condition.
If not, then what URL should be used?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component would not render without an individual. This does not require optional chaining.
https://github.com/TAMULib/scholars-angular/blob/470-export-section-people/src/app/%2Bdisplay/tab/tab.component.html#L1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edited the url building as per the above suggestions.