diff --git a/src/paths/index/components/prs/PullRequestItem.js b/src/paths/index/components/prs/PullRequestItem.js index 5db8f17..f85f89d 100644 --- a/src/paths/index/components/prs/PullRequestItem.js +++ b/src/paths/index/components/prs/PullRequestItem.js @@ -104,12 +104,28 @@ export default class PullRequestItem extends LitElement { } + :host .pr-milestone-value { + font-weight: 700; + } + :host .pr-time { } :host .pr-time-value { border-bottom: 1px dashed var(--g-font-color); cursor: help; + font-weight: 700; + } + + :host .pr-author { + + } + :host .pr-author-value { + + } + :host .pr-author-value--hot:before { + content: "★"; + color: var(--draft-font-color); } :host .pr-stats { @@ -194,6 +210,7 @@ export default class PullRequestItem extends LitElement { @property({ type: String, reflect: true }) branch = ''; @property({ type: String }) created_at = ''; @property({ type: String }) updated_at = ''; + @property({ type: Object }) author = null; @property({ type: Array }) teams = []; getStatTemp(value, factor) { @@ -216,6 +233,11 @@ export default class PullRequestItem extends LitElement { return 0; }); + const authorClassList = [ "pr-author-value" ]; + if (this.author.pull_count > 40) { + authorClassList.push("pr-author-value--hot"); + } + return html`
@@ -289,6 +313,17 @@ export default class PullRequestItem extends LitElement { ${greports.format.formatDate(this.updated_at)} + diff --git a/src/paths/index/components/prs/PullRequestList.js b/src/paths/index/components/prs/PullRequestList.js index d197915..9947e4a 100644 --- a/src/paths/index/components/prs/PullRequestList.js +++ b/src/paths/index/components/prs/PullRequestList.js @@ -60,6 +60,7 @@ export default class PullRequestList extends LitElement { @property({ type: Array }) pulls = []; @property({ type: Object }) teams = {}; + @property({ type: Object }) authors = {}; constructor() { super(); @@ -113,7 +114,7 @@ export default class PullRequestList extends LitElement { ${pulls.map((item) => { - let other_teams = []; + const other_teams = []; item.teams.forEach((teamId) => { if (teamId !== this._selectedTeam) { other_teams.push( @@ -121,6 +122,11 @@ export default class PullRequestList extends LitElement { ); } }); + + let author = null; + if (typeof this.authors[item.authored_by] != "undefined") { + author = this.authors[item.authored_by]; + } return html`