Skip to content

Update components#2973

Open
plwhd wants to merge 3 commits intogoplus:uifrom
plwhd:ui-iconfont-update
Open

Update components#2973
plwhd wants to merge 3 commits intogoplus:uifrom
plwhd:ui-iconfont-update

Conversation

@plwhd
Copy link

@plwhd plwhd commented Mar 19, 2026

  • Add icon font
  • Update image reference paths
  • Remove duplicate image files

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on a comprehensive update of UI components and asset management. It introduces a new icon font for improved visual consistency, corrects image referencing across demo pages, and cleans up the codebase by removing duplicate image assets. Additionally, it includes substantial refactoring of UI component definitions to enhance modularity and maintainability.

Highlights

  • Icon Font Integration: A new icon font, 'dialer_icon3.ttf', has been added and integrated into multiple UI component definition files (.pen files) to support updated iconography.
  • Image Path Updates: Image reference paths in several HTML demo files were updated to reflect changes in the directory structure, ensuring correct asset loading.
  • Duplicate Image Removal: Several redundant SVG image files (back.svg, layer-outlined.svg, location.svg) were removed from the project, streamlining assets.
  • UI Component Refactoring: Significant refactoring occurred within .pen files, converting various 'ref' type elements to 'frame' types, standardizing button components, and removing embedded SVG path data in favor of a more modular approach.
  • Version Updates: The version numbers within all modified .pen files were incremented from '2.8' to '2.9'.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively updates components across multiple pages, introducing a new icon font, revising image reference paths, and eliminating duplicate image files. The refactoring of UI components to utilize newer, standardized versions is a significant improvement, as it removes hardcoded values and enhances maintainability. The image paths are correctly updated, and unused files have been removed. I have a couple of minor suggestions to further improve code cleanliness and UI consistency.

},
"r:2su3n": {
"content": "Join now"
"content": "join now"

Choose a reason for hiding this comment

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

medium

The button text join now is in all lowercase. For better readability and consistency with common UI standards, it's better to use sentence case or title case, like Join now, as it was before this change.

                                      "content": "Join now"

"ref": "j:sKPE5",
"x": 0,
"y": 0,
"y": -5.684341886080802e-14,

Choose a reason for hiding this comment

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

medium

This y coordinate is a very small negative number, which is effectively zero. This was likely introduced by a floating-point inaccuracy in a tool. For code cleanliness and to prevent potential confusion, it would be better to set this back to 0.

          "y": 0,

},
"fonts": [
{
"name": "dialer_icon3",
Copy link
Contributor

Choose a reason for hiding this comment

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

dialer_icon3 is registered as a font here, but inspecting builder-component.lib.pen reveals it is only used by a single element at coordinates x: -14050 (far off-canvas). Every page that registers this 37 KB font will incur an unnecessary network request. Consider either removing this font registration from page files or moving the off-canvas element to use XBuilder_Icons_01 instead.

"rotation": -0.03115761437812273,
"clip": true,
"justifyContent": "center",
"alignItems": "center",
Copy link
Contributor

Choose a reason for hiding this comment

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

The community-user.pen previously overrode the "Edit profile" button text via j:ynnQK: { content: "Edit profile" } in the descendants block. That override has been removed — the button will now fall back to its component default text "Button Text". Is this intentional? If the button text should still say "Edit profile", the descendants override should be preserved.

@@ -773,9 +783,6 @@
"x": 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

The descendants override for j:a7crR: { fill: "$grey100" } has been removed, but child overrides j:a7crR/j:gcLfR and j:a7crR/j:3zzfO remain. Removing the parent-level fill override may cause the component to render with its default fill instead of $grey100. Please verify this is intentional and doesn't cause a visual regression on the sidebar/panel background.

@@ -153,7 +153,7 @@
height: 28px;
Copy link
Contributor

Choose a reason for hiding this comment

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

The avatar URL was changed from avatar.png to 用户头像.png (Chinese-character filename). While browsers handle Unicode filenames, some static file servers may behave inconsistently with non-ASCII filenames during path normalization or content-type detection. Consider using an ASCII filename for reliability.

@xgopilot
Copy link
Contributor

xgopilot bot commented Mar 19, 2026

Good migration from inline SVG geometry to icon font — the removal of hardcoded path data in community-project.pen and community-user.pen is a clean payload reduction. A few items to address: dialer_icon3.ttf belongs under ui/images/ (not repo root), it's only used by a single off-canvas element but is registered on every page; the "Edit profile" button text override was silently dropped in community-user.pen; and the 用户头像.png non-ASCII filename in the demo HTML may cause server compatibility issues.

@@ -229,7 +240,18 @@
"type": "ref",
Copy link
Contributor

Choose a reason for hiding this comment

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

<!-- codeagent-review-id: pr-2973 -->

All 246 icon font text nodes across every button variant use "content": "F" — which maps to the play-filled glyph in XBuilder_Icons_01. The font maps A-Z and a-z to distinct icons (e.g. E=eye-filled, G=motion-filled, J=eye-slash-filled), so icon-only button variants of different semantic types should use different characters. Having every component render the same play icon strongly suggests this is a placeholder from initial font integration. Each button variant should be assigned its correct codepoint before merging.

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