forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 3
feat(centraldashboard): Add release notes card #261
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
96e75ff
Added ui element for release notes
mathis-marcotte 0bd913c
Merge branch 'kubeflow-aaw2.0' into add-release-notes-for-beta
mathis-marcotte af49fce
updated release notes in centraldashboard
mathis-marcotte b05c299
updated github release notes api call to cache results
mathis-marcotte d71c2e6
fixed linting
mathis-marcotte f143e43
added debugging logs
mathis-marcotte abf4714
updatede headers
mathis-marcotte 7ec3ac2
updated request code
mathis-marcotte ab583de
added fetch import
mathis-marcotte 43118e8
updated node-cache version
mathis-marcotte 6a015a9
updated to use a different node-cache fork
mathis-marcotte f42829a
cleaned out calls to github
mathis-marcotte cd050a6
reverted server side changes for calling github api
mathis-marcotte 48b1320
updated styling of paper card rows on home dashboard page
mathis-marcotte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 62 additions & 47 deletions
109
components/centraldashboard/public/components/dashboard-view.pug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,59 +1,74 @@ | ||
| template(is='dom-if', if='[[securityMessages.length]]') | ||
| div.security-messages | ||
| security-messages-card(messages='[[securityMessages]]') | ||
| div#grid | ||
| .column | ||
| notebook-default-card(namespace='[[namespace]]', language='[[language]]', resources='[[resources]]') | ||
| .column | ||
| paper-card#Quick-Links(heading="{{localize('dashboardView.headingQuickLinks')}}") | ||
| template(is='dom-repeat', items='[[quickLinks]]') | ||
| template(is='dom-if', if='[[equals(item.type, "internal")]]') | ||
| iframe-link.link(href$="[[item.link]]") | ||
| paper-icon-item.external | ||
| paper-ripple | ||
| paper-item-body(two-line) | ||
| .header [[item.text]] | ||
| aside(secondary) [[item.desc]] | ||
| iron-icon(icon='kubeflow:bolt', slot='item-icon') | ||
| template(is='dom-if', if='[[equals(item.type, "external")]]') | ||
| a.link(href$='[[item.link]]', tabindex='-1', target='_blank') | ||
| .dashboard-cards | ||
| .single-column | ||
| security-messages-card(messages='[[securityMessages]]') | ||
| .dashboard-cards | ||
| div#grid | ||
| .column | ||
| notebook-default-card(namespace='[[namespace]]', language='[[language]]', resources='[[resources]]') | ||
| .column | ||
| paper-card#Quick-Links(heading="{{localize('dashboardView.headingQuickLinks')}}") | ||
| template(is='dom-repeat', items='[[quickLinks]]') | ||
| template(is='dom-if', if='[[equals(item.type, "internal")]]') | ||
| iframe-link.link(href$="[[item.link]]") | ||
| paper-icon-item.external | ||
| paper-ripple | ||
| paper-item-body(two-line) | ||
| .header [[item.text]] | ||
| aside(secondary) [[item.desc]] | ||
| iron-icon(icon='kubeflow:bolt', slot='item-icon') | ||
| template(is='dom-if', if='[[equals(item.type, "external")]]') | ||
| a.link(href$='[[item.link]]', tabindex='-1', target='_blank') | ||
| paper-icon-item.external | ||
| paper-ripple | ||
| paper-item-body(two-line) | ||
| .header [[item.text]] | ||
| aside(secondary) [[item.desc]] | ||
| paper-icon-button.button(icon='open-in-new', | ||
| slot='item-icon', alt='[[item.text]]', tabindex=-1) | ||
| template(is='dom-if', if='[[metrics.resourceChartsLinkText]]') | ||
| resource-chart(header-text='Cluster CPU Utilization', metric='cpu', | ||
| interval='Last60m', | ||
| external-link='[[metrics.resourceChartsLink]]', | ||
| external-link-text='[[metrics.resourceChartsLinkText]]') | ||
| resource-chart(header-text='Pod CPU Utilization', metric='podcpu', | ||
| interval='Last60m', | ||
| external-link='[[metrics.resourceChartsLink]]' | ||
| external-link-text='[[metrics.resourceChartsLinkText]]') | ||
| .column | ||
| template(is='dom-if', if='[[platformDetails.links]]') | ||
| paper-card#Platform-Links(class$='[[platformDetails.name]]', | ||
| heading='[[platformDetails.title]]', image='[[platformDetails.logo]]') | ||
| template(is='dom-repeat', items='[[platformDetails.links]]') | ||
| a.link(href$='[[item.link]]', tabindex='-1', target='_blank') | ||
| paper-icon-item.external | ||
| paper-ripple | ||
| paper-item-body(two-line) | ||
| .header [[item.headerText]] | ||
| aside(secondary) [[item.secondaryText]] | ||
| paper-icon-button.button(icon='open-in-new', | ||
| slot='item-icon', alt='[[item.text]]', tabindex=-1) | ||
| paper-card#Documentation(heading="{{localize('dashboardView.headingDocumentation')}}") | ||
| template(is='dom-repeat', items='[[documentationItems]]') | ||
| a.link(href$='[[item.link]]', tabindex='-1', | ||
| target='_blank') | ||
| paper-icon-item.external | ||
| paper-ripple | ||
| paper-item-body(two-line) | ||
| .header [[item.text]] | ||
| aside(secondary) [[item.desc]] | ||
| paper-icon-button.button(icon='open-in-new', | ||
| slot='item-icon', alt='[[item.text]]', tabindex=-1) | ||
| template(is='dom-if', if='[[metrics.resourceChartsLinkText]]') | ||
| resource-chart(header-text='Cluster CPU Utilization', metric='cpu', | ||
| interval='Last60m', | ||
| external-link='[[metrics.resourceChartsLink]]', | ||
| external-link-text='[[metrics.resourceChartsLinkText]]') | ||
| resource-chart(header-text='Pod CPU Utilization', metric='podcpu', | ||
| interval='Last60m', | ||
| external-link='[[metrics.resourceChartsLink]]' | ||
| external-link-text='[[metrics.resourceChartsLinkText]]') | ||
| .column | ||
| template(is='dom-if', if='[[platformDetails.links]]') | ||
| paper-card#Platform-Links(class$='[[platformDetails.name]]', | ||
| heading='[[platformDetails.title]]', image='[[platformDetails.logo]]') | ||
| template(is='dom-repeat', items='[[platformDetails.links]]') | ||
| a.link(href$='[[item.link]]', tabindex='-1', target='_blank') | ||
| .dashboard-cards | ||
| .single-column | ||
| paper-card(heading="{{localize('dashboardView.releaseNotes')}}") | ||
| a.link(href='https://github.com/StatCan/zone-kubeflow-containers/releases/latest', tabindex='-1', | ||
| target='_blank', rel='noopener noreferrer') | ||
| paper-icon-item.external | ||
| paper-ripple | ||
| paper-item-body(two-line) | ||
| .header [[item.headerText]] | ||
| aside(secondary) [[item.secondaryText]] | ||
| .header {{localize('dashboardView.releaseNotesMessage')}} | ||
| aside(secondary) {{localize('dashboardView.releaseNotesEnglish')}} | ||
| paper-icon-button.button(icon='open-in-new', | ||
| slot='item-icon', alt='[[item.text]]', tabindex=-1) | ||
| paper-card#Documentation(heading="{{localize('dashboardView.headingDocumentation')}}") | ||
| template(is='dom-repeat', items='[[documentationItems]]') | ||
| a.link(href$='[[item.link]]', tabindex='-1', | ||
| target='_blank') | ||
| paper-icon-item.external | ||
| paper-ripple | ||
| paper-item-body(two-line) | ||
| .header [[item.text]] | ||
| aside(secondary) [[item.desc]] | ||
| paper-icon-button.button(icon='open-in-new', | ||
| slot='item-icon', alt='[[item.text]]', tabindex=-1) | ||
| slot='item-icon', alt="{{localize('dashboardView.releaseNotesMessage')}}", tabindex=-1) | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.