Skip to content

Add more columns to dashboard asset table#14886

Open
PabloBuchu wants to merge 9 commits intodevelopfrom
wip/pb/add-more-columns
Open

Add more columns to dashboard asset table#14886
PabloBuchu wants to merge 9 commits intodevelopfrom
wip/pb/add-more-columns

Conversation

@PabloBuchu
Copy link
Copy Markdown
Contributor

Pull Request Description

  1. Adds sortable created at column both to cloud and local
  2. Adds size column with human readable size format for projects and files
  3. Adds created by column with component borrowed from shared with which displays original asset author

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

Copy link
Copy Markdown
Contributor

@vitvakatu vitvakatu left a comment

Choose a reason for hiding this comment

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

Local is working, cloud is displaying error when I try to switch to it:

Image

Comment thread app/common/src/utilities/bytes.ts Outdated
/** A function to format given bytes into human readable string. */
export function formatBytes(bytes?: number, decimals = 2) {
if (!bytes) return ''
if (!+bytes) return '0 Bytes'
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.

I always advocate for not using ! operator with numeric types (and in a lot of cases, with any non-boolean types). In this particular case, the first check will trigger for 0 bytes, resulting in an empty string.

</td>
</tr>
)}
<tr data-testid="asset-panel-created-by" className="h-row">
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.

This column is always rendered, despite the check in columnUtils that it should be visible for Team plans only.

)
break
}
case 'createdAt': {
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.

createdAt filtering is not working for me. Neither does modified, btw.

CleanShot.2026-03-18.at.16.38.41.mp4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed modification date. we wont support creation for now

@PabloBuchu PabloBuchu added the CI: No changelog needed Do not require a changelog entry for this PR. label Mar 31, 2026
@PabloBuchu PabloBuchu requested a review from vitvakatu March 31, 2026 08:40
@vitvakatu
Copy link
Copy Markdown
Contributor

I don’t see any changes since last review. Cloud still errors for me (#14886 (review)) and createdAt / modified still does not work (#14886 (comment)). Am I doing something incorrectly, @PabloBuchu ?

@vitvakatu
Copy link
Copy Markdown
Contributor

After more careful testing (I had to clean local storage), I no longer see error when switching to cloud, but modified/createdAt search suggestions are still not working:

CleanShot.2026-04-03.at.16.15.34.mp4

Also, why don’t we allow sorting by size? Seems like useful operation.

@jdunkerley jdunkerley added this to the 2026.1 Release milestone Apr 15, 2026
@vitvakatu vitvakatu self-assigned this Apr 15, 2026
@vitvakatu
Copy link
Copy Markdown
Contributor

vitvakatu commented Apr 29, 2026

I did minor fixes, didn’t touch search functionality as it works weirdly at the moment and the code is quite complicated there, I don’t want to break it. Also changed icon for size column to metadata which is suits better.

@farmaazon ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: No changelog needed Do not require a changelog entry for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants