|
15 | 15 | confirmText: id('confirmText'), confirmTitle: id('confirmTitle'), confirmYes: id('confirmYes'), confirmNo: id('confirmNo'), |
16 | 16 | detailStage: id('detailStage'), detailBreadcrumb: id('detailBreadcrumb'), detailNumber: id('detailNumber'), |
17 | 17 | detailTitle: id('detailTitle'), detailRepo: id('detailRepo'), keeperText: id('keeperText'), detailMeta: id('detailMeta'), |
18 | | - featureSection: id('featureSection'), featureList: id('featureList'), techSection: id('techSection'), |
19 | | - techList: id('techList'), repoLink: id('repoLink'), pagesLink: id('pagesLink'), summarySource: id('summarySource') |
| 18 | + detailDescription: id('detailDescription'), featureSection: id('featureSection'), featureList: id('featureList'), |
| 19 | + techSection: id('techSection'), techList: id('techList'), repoLink: id('repoLink'), pagesLink: id('pagesLink'), |
| 20 | + summarySource: id('summarySource') |
20 | 21 | }; |
21 | 22 |
|
22 | 23 | var state = { repos: [], summaries: {}, category: 'all', query: '', sort: 'updated', selectedRow: 0, pendingRepo: null, liveApi: false }; |
|
165 | 166 | setTimeout(function(){els.confirmYes.focus();},0); |
166 | 167 | } |
167 | 168 | function keeperDetail(repo,s) { |
168 | | - var base=s.detail||s.summary||repo.description||'この件は、まだ説明に使える資料がほとんどない。'; |
169 | | - if (s.confidence==='low') return '「資料が少ない。分かってる範囲だけ話す。\n'+base+'」'; |
| 169 | + if (s.confidence==='low') return '「資料が少ない。分かってる範囲だけ話す。」'; |
170 | 170 | var leads=['調べた限りじゃ、こういう記録だ。','要点だけ言うと、こうだ。','資料を追うと、こういう話になる。']; |
171 | | - return '「'+leads[String(repo.name||'').length%leads.length]+'\n'+base+'」'; |
| 171 | + return '「'+leads[String(repo.name||'').length%leads.length]+'」'; |
| 172 | + } |
| 173 | + function detailText(repo,s) { |
| 174 | + return s.detail||s.summary||repo.description||'この件は、まだ説明に使える資料がほとんどない。'; |
172 | 175 | } |
173 | 176 | function showDetail(repo) { |
174 | 177 | var s=summaryFor(repo)||{}, c=categoryOf(repo), idx=state.repos.findIndex(function(x){return x.id===repo.id;})+1; |
|
179 | 182 | els.repoLink.href=repo.html_url||('https://github.com/'+OWNER+'/'+repo.name); |
180 | 183 | els.pagesLink.hidden=true; |
181 | 184 | els.pagesLink.removeAttribute('href'); |
| 185 | + els.detailDescription.textContent=detailText(repo,s); |
182 | 186 | meta(repo,s); features(s.features); tech(repo,s); |
183 | 187 | els.summarySource.textContent=s.summary ? 'COPILOT ANALYSIS / '+fmtDate(s.generatedAt) : 'REPOSITORY METADATA'; |
184 | 188 | typeText(keeperDetail(repo,s)); |
|
0 commit comments