Skip to content

Update the iModel table to show "Last Modified" instead of "Created Date"#199

Merged
arome merged 7 commits intomainfrom
omar/last-modified-imodels
Apr 29, 2026
Merged

Update the iModel table to show "Last Modified" instead of "Created Date"#199
arome merged 7 commits intomainfrom
omar/last-modified-imodels

Conversation

@arome
Copy link
Copy Markdown
Contributor

@arome arome commented Apr 21, 2026

The iModel table now displays the Last Modified date which corresponds to the lastChangesetPushDateTime on that iModel.
If the lastChangesetPushDateTime is null for an iModel we're displaying its created date.
image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the iModel “cells” table column from showing the iModel’s Created Date to showing a “Last Modified” date based on lastChangesetPushDateTime, with a fallback to createdDateTime when the last changeset date is null.

Changes:

  • Added lastChangesetPushDateTime to IModelFull and updated the iModel table to render/sort using last modified (with fallback to created date).
  • Renamed the column/string identifiers from “Created Date” to “Last Modified”.
  • Renamed the corresponding cell override hook from createdDateTime to lastModified.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
packages/modules/imodel-browser/src/types.ts Adds the new iModel date field and renames the exposed column/override identifiers.
packages/modules/imodel-browser/src/containers/iModelGrid/useIModelTableConfig.tsx Switches the table column header/accessor/cell rendering to last-modified semantics.
packages/modules/imodel-browser/src/containers/iModelGrid/IModelGrid.tsx Updates the default UI string to “Last Modified”.
Comments suppressed due to low confidence (1)

packages/modules/imodel-browser/src/containers/iModelGrid/useIModelTableConfig.tsx:30

  • Renaming IModelTableStrings.tableColumnCreatedDate to tableColumnLastModified is a breaking change for consumers using stringsOverrides/custom strings. To avoid forcing downstream changes, consider supporting both keys (with tableColumnCreatedDate marked deprecated) and falling back appropriately.
export interface IModelTableStrings {
  /** Displayed for table name header. */
  tableColumnName: string;
  /** Displayed for table description header. */
  tableColumnDescription: string;
  /** Displayed for table last modified date header. */
  tableColumnLastModified: string;
  /** Displayed for table favorites header. */
  tableColumnFavorites: string;
  /** Text for adding an iModel to favorites. */
  addToFavorites: string;
  /** Text for removing an iModel from favorites. */
  removeFromFavorites: string;

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/modules/imodel-browser/src/types.ts
Comment thread packages/modules/imodel-browser/src/types.ts Outdated
@arome arome merged commit ce55816 into main Apr 29, 2026
5 checks passed
@arome arome deleted the omar/last-modified-imodels branch April 29, 2026 20:46
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