Skip to content

[PLAT-8357] View file metadata#294

Draft
danschultz wants to merge 2 commits intomainfrom
codex-plat-8357-file-metadata-pr
Draft

[PLAT-8357] View file metadata#294
danschultz wants to merge 2 commits intomainfrom
codex-plat-8357-file-metadata-pr

Conversation

@danschultz
Copy link
Copy Markdown

@danschultz danschultz commented Apr 3, 2026

Summary

  • add a right-side file details drawer on the Files page
  • open file details from row click while preserving checkbox bulk selection
  • render metadata as a Key | Value table and show N/A for empty fields
  • format file sizes with pretty-bytes

Ticket

Validation

  • yarn lint

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vertex-dev-dashboard Error Error Apr 3, 2026 6:57pm

Request Review

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2026

Comment on lines +193 to +201
sx={
activeFileId === row.id
? {
"& td, & th": {
backgroundColor: "action.hover",
},
}
: undefined
}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This seems like an odd way to fix the issue. The scenes page doesn't have this issue. Make sure the change is consistent.

Comment on lines +160 to +168
function displayValue(value?: string): string {
return value == null || value.trim().length === 0 ? "N/A" : value;
}

function formatFileSize(size?: number): string | undefined {
if (size == null) return undefined;

return prettyBytes(size);
}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'd like to reuse these functions in other places of the app. Maybe we find a home for them in ./src/lib.

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.

1 participant