forge
Explore
Log in

Don't you dare go Hollow

A log too long to send whole says Showing from line N · Full log on a quiet line of its own on the sheet's text edge, with room around it, instead of a bare hint against the sheet's edge

Browse files at this commit

d61240efbf784424ed7a3417f54d698001517e4cAhmet Kaan GümüşParent: 529f562
Some checks failed
Show checks
  • ✗ci/buildjob was cancelledDetails
  • style
    • a log too long to send whole says Showing from line N · Full log on a quiet line of its own on the sheet's text edge, with room around it, instead of a bare hint against the sheet's edge
Show full message
💄 style: a log too long to send whole says Showing from line N · Full log on a quiet line of its own on the sheet's text edge, with room around it, instead of a bare hint against the sheet's edge
crates/forge-web/src/pages/ci_runs.rsmodified+5 -3
@@ -2663,10 +2663,12 @@ async fn run_log(
2663 fail_first_block(lang: lang, fail: fail)2663 fail_first_block(lang: lang, fail: fail)
2664 }2664 }
2665 if let Some(log) = run.log.as_ref() {2665 if let Some(log) = run.log.as_ref() {
2666+ // Only the end of a long log is sent: say where it starts and where the rest is.
2666 if log.truncated {2667 if log.truncated {
2667- <p class="hint">2668+ <p class="log-cut">
2668- (crate::pages::passkeys::s(lang, "Showing the end of this log.", "Günlüğün sonu gösteriliyor."))2669+ (crate::pages::passkeys::s(lang, "Showing from line ", "Şu satırdan itibaren gösteriliyor: "))
2669- " " <a href=(log.log_href.as_str())>(crate::pages::passkeys::s(lang, "Full log", "Tam günlük"))</a>2670+ <span class="num">(log.first_line.as_str())</span>
2671+ " \u{b7} " <a class="act" href=(log.log_href.as_str())>(crate::pages::passkeys::s(lang, "Full log", "Tam günlük"))</a>
2670 </p>2672 </p>
2671 }2673 }
2672 <pre class="ci-log ci-tl-code" data-fail-at=(run.failing.as_ref().filter(|_| !log.at_step).and_then(FailFirst::line_no).map(|no| no.to_string())) data-empty=(crate::pages::passkeys::s(lang, "No output yet.", "Henüz çıktı yok.")) data-live=(log.live.as_deref()) data-live-log="true" data-offset=(log.offset.as_str()) data-first=(log.first_line.as_str()) data-log-start=(log.at_step.then_some("true"))>(log.text.as_str())</pre>2674 <pre class="ci-log ci-tl-code" data-fail-at=(run.failing.as_ref().filter(|_| !log.at_step).and_then(FailFirst::line_no).map(|no| no.to_string())) data-empty=(crate::pages::passkeys::s(lang, "No output yet.", "Henüz çıktı yok.")) data-live=(log.live.as_deref()) data-live-log="true" data-offset=(log.offset.as_str()) data-first=(log.first_line.as_str()) data-log-start=(log.at_step.then_some("true"))>(log.text.as_str())</pre>
style/_one.scssmodified+20 -0
@@ -2501,6 +2501,26 @@ dialog[data-finder] {
2501 2501
2502 // Why a job failed: pinned above its log.2502 // Why a job failed: pinned above its log.
2503 2503
2504+// The note over a log that starts part way: one quiet line on the sheet's text edge.
2505+.log-cut {
2506+ flex: none;
2507+ margin: 0;
2508+ padding: 8px 18px;
2509+ border-bottom: 1px solid var(--border);
2510+ color: var(--muted);
2511+ font-size: 13px;
2512+
2513+ > .num {
2514+ color: var(--text);
2515+ font-variant-numeric: tabular-nums;
2516+ }
2517+
2518+ > a.act {
2519+ margin-left: 0;
2520+ padding: 0;
2521+ }
2522+}
2523+
2504 .why {2524 .why {
2505 display: flex;2525 display: flex;
2506 flex: none;2526 flex: none;