Skip to content

fix(studio): Logs overflow and files table in SimpleFilesTable - #1172

Merged
steramae-nvidia merged 2 commits into
mainfrom
steramae/logs-overflow-fix
Aug 10, 2026
Merged

fix(studio): Logs overflow and files table in SimpleFilesTable#1172
steramae-nvidia merged 2 commits into
mainfrom
steramae/logs-overflow-fix

Conversation

@steramae-nvidia

@steramae-nvidia steramae-nvidia commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
Screenshot 2026-08-07 at 1 36 43 PM

Signed-off-by: Sean Teramae steramae@nvidia.com

Summary

Related Issue

Changes

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with documentation updates
  • Documentation only
  • Contributor tooling or automation
  • CI, build, or test infrastructure

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Documentation updated for user-visible behavior
  • Documentation not applicable — justification:

Verification

  • Pull request title follows the repository's Conventional Commit format
  • Every commit includes an appropriate Signed-off-by: trailer
  • uv run pre-commit run -a passes, or any blocked checks are identified below
  • Targeted tests pass, or tests are marked not applicable above
  • No secrets, API keys, or credentials are included

Targeted validation:

Summary

Related Issue

Changes

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with documentation updates
  • Documentation only
  • Contributor tooling or automation
  • CI, build, or test infrastructure

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Documentation updated for user-visible behavior
  • Documentation not applicable — justification:

Verification

  • Pull request title follows the repository's Conventional Commit format
  • Every commit includes an appropriate Signed-off-by: trailer
  • uv run pre-commit run -a passes, or any blocked checks are identified below
  • Targeted tests pass, or tests are marked not applicable above
  • No secrets, API keys, or credentials are included

Targeted validation:

Summary

Related Issue

Changes

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with documentation updates
  • Documentation only
  • Contributor tooling or automation
  • CI, build, or test infrastructure

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Documentation updated for user-visible behavior
  • Documentation not applicable — justification:

Verification

  • Pull request title follows the repository's Conventional Commit format
  • Every commit includes an appropriate Signed-off-by: trailer
  • uv run pre-commit run -a passes, or any blocked checks are identified below
  • Targeted tests pass, or tests are marked not applicable above
  • No secrets, API keys, or credentials are included

Targeted validation:

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Improved the file table with search, pagination, and row selection.
    • File names now remain readable by displaying their endings when space is limited.
    • Added clearer column sizing and an expanded selection area.
  • Bug Fixes
    • Improved log viewer layout so content fills the available height.
    • Enhanced single-line text handling with leading-ellipsis truncation, keeping important endings visible.
    • Improved pagination behavior when filtering file results.

@steramae-nvidia
steramae-nvidia requested a review from a team as a code owner August 7, 2026 17:07
@steramae-nvidia

Copy link
Copy Markdown
Contributor Author

This change is part of the following stack:

Change managed by git-spice.

@steramae-nvidia
steramae-nvidia requested a review from a team as a code owner August 7, 2026 17:07
@github-actions github-actions Bot added the fix label Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The pull request adds a reusable leading-ellipsis component, updates SimpleFilesTable with filtering, pagination, sizing, and selection behavior, and applies full-height styling to the log viewer.

Changes

File table rendering and interaction

Layer / File(s) Summary
Left-overflow text component
web/packages/common/src/components/LeftOverflow/index.tsx
Adds LeftOverflow for single-line text with leading-ellipsis truncation and optional class names.
File table data view
web/packages/common/src/components/UploadModal/SimpleFilesTable.tsx
Adds case-insensitive filtering, 10-row pagination, page-index correction, column sizing, StudioDataView, and row-click selection. Long file names use LeftOverflow.

Log viewer sizing

Layer / File(s) Summary
Full-height log rendering
web/packages/common/src/components/LogViewer/index.tsx
Adds full-height styling to the log viewer container and CodeSnippet.

Sequence Diagram(s)

sequenceDiagram
  participant SimpleFilesTable
  participant StudioDataView
  participant LeftOverflow
  SimpleFilesTable->>StudioDataView: provide filtered and paginated file rows
  StudioDataView->>LeftOverflow: render long file names
  StudioDataView->>SimpleFilesTable: report row selection
  SimpleFilesTable->>SimpleFilesTable: update selected file
Loading

Possibly related PRs

Suggested reviewers: nv-odrulea

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the two main changes: log overflow handling and updates to the files table in SimpleFilesTable.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch steramae/logs-overflow-fix

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
web/packages/common/src/components/LeftOverflow/index.tsx (1)

1-2: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use a type-only import for FC. FC is used only as a type. Change the React import to import type { FC } from 'react';.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/packages/common/src/components/LeftOverflow/index.tsx` around lines 1 -
2, Update the React import in the LeftOverflow component to use a type-only
import for FC, since it is referenced only as a type; preserve the existing
component implementation.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@web/packages/common/src/components/LeftOverflow/index.tsx`:
- Line 5: Update the `FC` import in `LeftOverflow` to be type-only, preserving
its existing usage while preventing it from being included as a runtime import.

In `@web/packages/common/src/components/UploadModal/SimpleFilesTable.tsx`:
- Around line 97-104: Synchronize dataViewState.pagination.state.pageIndex with
safePageIndex in the pagination flow around SimpleFilesTable’s pageRows
calculation. When filtering reduces the available page count and the current
page exceeds the last valid index, update the pagination state to the bounded
index while preserving valid page selections.

---

Nitpick comments:
In `@web/packages/common/src/components/LeftOverflow/index.tsx`:
- Around line 1-2: Update the React import in the LeftOverflow component to use
a type-only import for FC, since it is referenced only as a type; preserve the
existing component implementation.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 164bbc46-d20a-4c6e-86dc-ae013812f42a

📥 Commits

Reviewing files that changed from the base of the PR and between ff047d2 and 2fa2fc5.

📒 Files selected for processing (4)
  • web/packages/common/src/components/LeftOverflow/index.tsx
  • web/packages/common/src/components/LogViewer/index.tsx
  • web/packages/common/src/components/UploadModal/SimpleFilesTable.test.tsx
  • web/packages/common/src/components/UploadModal/SimpleFilesTable.tsx
💤 Files with no reviewable changes (1)
  • web/packages/common/src/components/UploadModal/SimpleFilesTable.test.tsx

Comment thread web/packages/common/src/components/LeftOverflow/index.tsx Outdated
Comment thread web/packages/common/src/components/UploadModal/SimpleFilesTable.tsx
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 31626/40251 78.6% 63.2%
Integration Tests 18377/38186 48.1% 20.8%

Signed-off-by: Sean Teramae <steramae@nvidia.com>
Signed-off-by: Sean Teramae <steramae@nvidia.com>
@steramae-nvidia
steramae-nvidia force-pushed the steramae/logs-overflow-fix branch from 2fa2fc5 to 8733b38 Compare August 7, 2026 20:39
@steramae-nvidia
steramae-nvidia added this pull request to the merge queue Aug 10, 2026
Merged via the queue into main with commit d8205de Aug 10, 2026
62 of 104 checks passed
@steramae-nvidia
steramae-nvidia deleted the steramae/logs-overflow-fix branch August 10, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants