Skip to content

Conversation

@leekelleher
Copy link
Member

Description

Whilst working on #19684 and #19685, I tidied up some UFM code, all non-breaking.

Copy link
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

Tidies up UFM component code by inlining element names, removing unused imports/guards, and improving filter handling.

  • Inlined @customElement name constants and removed elementName variables.
  • Dropped the unused nothing import and early return, replacing it with optional chaining.
  • Added a console warning for missing filters in ufm-element-base.ts.

Reviewed Changes

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

Show a summary per file
File Description
ufm-render.element.ts Inlined element name, reformatted comment.
ufm-element-base.ts Removed nothing import/early return, relocated #ufmContext, added optional chaining and warnings.
localize.element.ts Inlined element name, removed constant, added eslint-disable.
link.element.ts Inlined element name, removed constant, added eslint-disable.
label-value.element.ts Inlined element name, removed constant, added eslint-disable.
content-name.element.ts Inlined element name, removed constant, added eslint-disable.

@leekelleher leekelleher requested a review from iOvergaard July 8, 2025 11:55
@iOvergaard iOvergaard merged commit 05010fc into main Jul 8, 2025
21 of 27 checks passed
@iOvergaard iOvergaard deleted the v16/improvement/ufm-tidyup branch July 8, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants