Skip to content

fix:CTORNDSD-522: UI issues - #10

Merged
Zlodej43sm merged 9 commits into
developfrom
fix/CTORNDSD-522
Jul 21, 2026
Merged

Zlodej43sm merged 9 commits into
developfrom
fix/CTORNDSD-522

Conversation

Zlodej43sm and others added 9 commits July 14, 2026 16:07
* chore: update Dockerfile.storybook to include .npmrc and eslint.config.mjs in build context

* chore: add typesVersions for renderer subpath in libs/ui/package.json

* chore: update workflows to use `actions/setup-node@v7` instead of `v6`
* chore: update Dockerfile.storybook to include .npmrc and eslint.config (#3)

* chore: update Dockerfile.storybook to include .npmrc and eslint.config.mjs in build context

* chore: add typesVersions for renderer subpath in libs/ui/package.json

* chore: update dependencies and regenerate metadata dates

- Bump `vite` to `8.1.4`, `rolldown` to `1.1.5`, `postcss` to `8.5.19`, and related bindings to `1.1.5`.
- Sync auto-generated component metadata dates in `README.md` and `llms.txt`.
- Minor formatting adjustment in Storybook's `main.ts`.
#3) (#4)

* chore: update Dockerfile.storybook to include .npmrc and eslint.config.mjs in build context

* chore: add typesVersions for renderer subpath in libs/ui/package.json
…mo integration (#7)

* feat(ui): Optimize A2UI rendering with caching and React.memo integration

Added memoization to `A2UINode` using `React.memo` to prevent unnecessary re-renders in unchanged subtrees. Introduced caching for `dispatchAction`, `customRenderers`, `renderChildren`, `mergedStyles`, and `sanitizedChartAttributes` for improved performance and stability. Updated type definitions and utility methods to support these enhancements.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* test(utils): add memoization tests for `renderA2UISpec` renderer

- Ensure custom renderers are not re-invoked when input references remain unchanged.
- Verify re-invocation occurs when action references change.
- Update auto-generated documentation components count and generation date.
- Change license type for `gd-form-configurator` packages to MIT.

---------

Co-authored-by: Olek <opovolotskyi@griddynamics.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…and remove deprecated size variants

- Introduced "xxl" size to Avatar component and updated associated enums in schema files.
- Adjusted size scaling for "sm," "md," "lg," and "xl" tokens to improve consistency.
- Removed deprecated "UserCardVariant" and "UserProfileVariant" stories from Avatar examples.
- Updated documentation and generated metadata to reflect Avatar size updates.
…. A2UI JSON fields, adjust docs and examples

- Clarified the distinction between React component props and A2UI JSON-specific fields in schema descriptions for `Avatar` and `AvatarUser`.
- Updated examples, quick starts, and troubleshooting sections in component documentation to use `fallbackComponent` directly for TSX.
- Aligned enum and prop descriptions with updated usage patterns, specifying renderer behavior for `fallbackComponent` mapping.
- Adjusted README component metadata to include real props and explain renderer mappings for A2UI-specific aliases.

Copilot AI left a comment

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.

Pull request overview

This PR updates the Avatar sizing model and synchronizes related Storybook and A2UI/AI documentation so the new xxl tier is supported and described consistently across tokens, schemas, and generated docs.

Changes:

  • Adjust Avatar token sizes and introduce explicit xl (64px) and xxl (80px) tiers.
  • Update Avatar Storybook sizing demo to include XXL and remove the Avatar.User card/profile variant stories.
  • Extend A2UI schemas to allow xxl for size/sizeVariant, and expand AI component schema documentation for Avatar/AvatarUser.

Reviewed changes

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

Show a summary per file
File Description
libs/ui/src/tokens/avatar.ts Updates Avatar dimension tokens and adds xl/xxl size tiers.
libs/ui/src/components/atoms/Avatar/Avatar.stories.tsx Updates size-variation story to include xxl and removes Avatar.User variant stories.
libs/ui/src/components/atoms/Avatar/snapshots/Avatar.test.tsx.snap Updates snapshot output after style/token changes.
libs/ui/src/ai/schemas/components/AvatarUser.ts Expands AI schema documentation; adds xxl to size enums and clarifies A2UI-vs-React props.
libs/ui/src/ai/schemas/components/Avatar.ts Expands AI schema documentation; adds xxl to size enums and clarifies A2UI-vs-React props.
libs/ui/src/ai/README.md Regenerates AI docs output to reflect updated component schemas.
libs/ui/src/ai/a2ui/ui-specification-schema.json Extends sizeVariant enum to include xxl.
libs/ui/src/ai/a2ui/spec-schema.ts Extends size/sizeVariant enums to include xxl and updates schema text (needs a small correction).
libs/ui/llms.txt Regenerates LLM-facing component docs to reflect updated schemas.

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

Comment thread libs/ui/src/tokens/avatar.ts
Comment thread libs/ui/src/components/atoms/Avatar/Avatar.stories.tsx
Comment thread libs/ui/src/ai/a2ui/spec-schema.ts
@Zlodej43sm
Zlodej43sm requested review from rcasian and tjeleascov July 21, 2026 06:45
@Zlodej43sm
Zlodej43sm changed the base branch from main to develop July 21, 2026 06:53
@Zlodej43sm
Zlodej43sm merged commit 90f77d1 into develop Jul 21, 2026
5 checks passed
@Zlodej43sm
Zlodej43sm deleted the fix/CTORNDSD-522 branch July 21, 2026 07:04
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