Skip to content

Report: Rework test details table layout - #5777

Merged
pekkaklarck merged 1 commit into
masterfrom
report-test-metadata
Sep 3, 2026
Merged

pekkaklarck merged 1 commit into
masterfrom
report-test-metadata

Conversation

@Snooz82

@Snooz82 Snooz82 commented Sep 2, 2026 •

Copy link
Copy Markdown
Member
  • Render test metadata as a table instead of a flat list

Copilot AI lite review requested due to automatic review settings September 2, 2026 15:39
@Snooz82
Snooz82 requested a review from pekkaklarck September 2, 2026 15:41

This comment was marked as resolved.

Copilot AI review requested due to automatic review settings September 2, 2026 20:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The current implementation includes a CSS declaration that is invalid and a tags width measurement approach that can fail when max-content is unsupported, causing incorrect layout behavior.

Review details

Suppressed comments (2)

Previously missed (1) — in code that hasn't changed since the last review.

src/robot/htmldata/rebot/report.css:278

  • word-wrap does not support the value anywhere, so this declaration is invalid and will be ignored. Use overflow-wrap: anywhere (and optionally keep word-wrap: break-word as a legacy alias) to ensure long tag values can wrap.

src/robot/htmldata/rebot/report.html:461

  • capTagsColumnWidth() relies on setting width: max-content and then reading offsetWidth to compute the natural width. If the browser ignores max-content, offsetWidth stays constrained by the cell and the computed cap will be wrong. Measuring scrollWidth after forcing flex-wrap: nowrap avoids depending on max-content support.
    cells.css({'flex-wrap': 'nowrap', 'width': 'max-content'});
    cells.each(function () {
        natural = Math.max(natural, this.offsetWidth);
    });
    cells.css({'flex-wrap': '', 'width': ''});
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@Snooz82
Snooz82 force-pushed the report-test-metadata branch from 28ca17e to ab4ac41 Compare September 3, 2026 11:15
Copilot AI review requested due to automatic review settings September 3, 2026 11:15
@Snooz82
Snooz82 force-pushed the report-test-metadata branch from ab4ac41 to 39f5306 Compare September 3, 2026 11:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The PR description promises multiple layout/interaction features (tag pills, resizable columns, shrinking empty columns) that are not present in the actual diff, so scope/expectations should be corrected or missing functionality added.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread src/robot/htmldata/rebot/report.html Resolved
Copilot AI review requested due to automatic review settings September 3, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new CSS sets overflow-x: hidden for the metadata column, which can clip horizontally overflowing metadata content without a way to scroll.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

src/robot/htmldata/rebot/report.html:845

  • PR description mentions tags rendered as wrapping pills, resizable columns, and width constraints, but the only changes here are metadata rendering/style updates. Either update the PR description to match the actual scope, or include the missing implementation changes in this PR so reviewers can validate them.
    <td class="details-col-doc"><div class="doc details-limited">{{html doc()}}</div></td>
    <td class="details-col-metadata"><div class="details-limited">{{if metadata.length}}<table class="metadata">{{each metadata}}<tr><th>{{html $value[0]}}:</th><td class="doc">{{html $value[1]}}</td></tr>{{/each}}</table>{{/if}}</div></td>
    <td class="details-col-tags"><div>{{html tags.join(', ')}}</div></td>
    <td class="details-col-status"><div><span class="label ${status.toLowerCase()}">${status}</span></div></td>
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread src/robot/htmldata/rebot/report.css Resolved
@pekkaklarck
pekkaklarck merged commit 0134fce into master Sep 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants