Skip to content

Conversation

hl662
Copy link
Contributor

@hl662 hl662 commented Aug 18, 2025

iTwin/viewer-components-react#1404 adds support for customizing formats in the repo's test viewer. It uses concepts of FormatSet and FormatsProvider to achieve so, and it is increasingly likely this will be useful for other viewers. Thus, adding a FormatSetFormatsProvider interface to ecschema-metadata to support backends and frontends usage of this.

  • Also, the formats Provider needs to be able to resolve colon separated schema items to period separated (schemaName:schemaItemName -> schemaName.schemaItemName) to address formats requested from native addon.

P.S: In the PR above, a FormatManager is used to coordinate system interaction between the FormatSetFormatProvider and potentially multiple formatSets. TBD if it should be moved into itwinjs-core, we'll see if there's demand for it to be consumed by both backends and frontends.

@hl662 hl662 requested a review from a team as a code owner August 19, 2025 13:08
Copy link
Contributor

@christophermlawson christophermlawson left a comment

Choose a reason for hiding this comment

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

Looks good. Just the comment about add docs to public members.

@hl662 hl662 requested a review from rschili as a code owner August 19, 2025 16:53
@hl662 hl662 enabled auto-merge (squash) August 19, 2025 17:10
@hl662 hl662 merged commit 7c5e139 into master Aug 19, 2025
15 checks passed
@hl662 hl662 deleted the nam/format-set-provider branch August 19, 2025 22:15
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