-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
227 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ require('./snapshot'); | |
require('./test'); | ||
require('./macro'); | ||
require('./analysis'); | ||
require('./report'); |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<style> | ||
/* TODO */ | ||
.section-target { | ||
top: -8em; | ||
} | ||
|
||
.noflex { | ||
flex: 0 0 160px !important; | ||
} | ||
|
||
.highlight { | ||
color: #24292e; | ||
background-color: white; | ||
} | ||
|
||
</style> | ||
|
||
<div class='app-scroll'> | ||
<div class="app-links app-sticky"> | ||
<div class="app-title"> | ||
<div class="app-frame app-pad app-flush-bottom"> | ||
|
||
<h1> | ||
<span class="break">{{ report.name }}</span> | ||
<small>report</small> | ||
|
||
<div class='pull-right' ng-show="report.url"> | ||
<a class='btn text-white btn-primary btn-sm' ng-href="{{ report.url }}" target="_blank">View this report</a> | ||
</div> | ||
|
||
<div class='clearfix'></div> | ||
</h1> | ||
|
||
</div> | ||
</div> | ||
<div class="app-frame app-pad-h"> | ||
<ul class="nav nav-tabs"> | ||
<li ui-sref-active='active'><a ui-sref="dbt.report({'#': 'details'})">Details</a></li> | ||
<li ui-sref-active='active'><a ui-sref="dbt.report({'#': 'description'})">Description</a></li> | ||
<li ui-sref-active='active' ng-show = "parentsLength != 0"><a ui-sref="dbt.report({'#': 'depends_on'})">Depends On</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="app-details"> | ||
<div class="app-frame app-pad"> | ||
|
||
<section class="section"> | ||
<div class="section-target" id="details"></div> | ||
<table-details model="report" extras="extra_table_fields" show-defaults="false" /> | ||
</section> | ||
|
||
<section class="section"> | ||
<div class="section-target" id="description"></div> | ||
<div class="section-content"> | ||
<h6>Description</h6> | ||
<div class="panel"> | ||
<div class="panel-body"> | ||
<div ng-show="report.url" class='margin'> | ||
View this report at <a ng-href="{{ report.url }}" target="_blank">{{ report.url }}</a> | ||
</div> | ||
|
||
<div ng-if="report.description" class="model-markdown" marked="report.description"></div> | ||
<div ng-if="!report.description">This {{ report.resource_type }} is not currently documented</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="section" ng-show = "parentsLength != 0"> | ||
<div class="section-target" id="depends_on"></div> | ||
<div class="section-content"> | ||
<h6>Depends On</h6> | ||
<reference-list references="parents" node="report" /> | ||
</div> | ||
</section> | ||
|
||
</div> | ||
</div> | ||
</div> |
This file contains 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
'use strict'; | ||
|
||
const angular = require('angular'); | ||
const dag_utils = require('./dag_utils') | ||
require("./styles.css"); | ||
|
||
angular | ||
.module('dbt') | ||
.controller('ReportCtrl', ['$scope', '$state', 'project', 'code', '$anchorScroll', '$location', | ||
function($scope, $state, projectService, codeService, $anchorScroll, $location) { | ||
|
||
$scope.model_uid = $state.params.unique_id; | ||
$scope.project = projectService; | ||
|
||
$scope.codeService = codeService; | ||
$scope.extra_table_fields = []; | ||
$scope.versions = {}; | ||
|
||
$scope.report = {}; | ||
projectService.ready(function(project) { | ||
let report = project.nodes[$scope.model_uid]; | ||
$scope.report = report; | ||
$scope.parents = dag_utils.getParents(project, report); | ||
$scope.parentsLength = $scope.parents.length; | ||
|
||
$scope.extra_table_fields = [ | ||
{ | ||
name: "Maturity", | ||
value: $scope.report.maturity | ||
}, | ||
{ | ||
name: "Owner", | ||
value: $scope.report.owner.name | ||
}, | ||
{ | ||
name: "Owner email", | ||
value: $scope.report.owner.email | ||
}, | ||
] | ||
}) | ||
}]); |
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.