Skip to content

fix!: move GridItem from JS to TS#279

Merged
ykornilov merged 2 commits into
release/v10from
griditem-to-ts
Nov 21, 2025
Merged

fix!: move GridItem from JS to TS#279
ykornilov merged 2 commits into
release/v10from
griditem-to-ts

Conversation

@ykornilov
Copy link
Copy Markdown
Collaborator

No description provided.

@ykornilov ykornilov marked this pull request as draft November 20, 2025 11:52
@ykornilov ykornilov force-pushed the griditem-to-ts branch 3 times, most recently from e5ebc99 to 4a0c0c4 Compare November 20, 2025 12:09
@gravity-ui-bot
Copy link
Copy Markdown
Contributor

Preview is ready.

@ykornilov ykornilov changed the title chore: move GridItem from JS to TS fix!: move GridItem from JS to TS Nov 21, 2025
@ykornilov
Copy link
Copy Markdown
Collaborator Author

The logic of determining the width/height values has been changed for the renderer plugin function

@ykornilov ykornilov marked this pull request as ready for review November 21, 2025 08:55
Comment thread src/components/GridItem/GridItem.tsx
Comment thread src/components/GridItem/GridItem.tsx Outdated
Comment on lines +197 to +201
style && style.width !== undefined
? Number.parseInt(String(style.width), 10)
: undefined;
const height =
style && style.height !== undefined
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can be shorten as style?.width !== undefined etc

@ykornilov ykornilov merged commit a7d4c4f into release/v10 Nov 21, 2025
3 checks passed
@ykornilov ykornilov deleted the griditem-to-ts branch November 21, 2025 16:36
ykornilov added a commit that referenced this pull request Feb 13, 2026
* fix!: move GridItem from JS to TS

---------

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>
github-merge-queue Bot pushed a commit that referenced this pull request Feb 13, 2026
* fix!: move GridLayout from JS to TS (#277)

* fix!: move GridLayout from JS to TS

* chore: update ci workflow

---------

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>

* chore: move ReactGridLayout from JS to TS (#278)

* chore: move ReactGridLayout from JS to TS

* chore: add comments

---------

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>

* fix!: move GridItem from JS to TS (#279)

* fix!: move GridItem from JS to TS

---------

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>

* chore: translate Item to TS (#280)

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>

* fix!: move prepareItem from JS to TS (#284)

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>

* fix: move withContext from JS to TS (#285)

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>

* chore: typings refactoring (#293)

* refactor: use PluginWidgetProps type for adjustWidgetLayout

* refactor: deduplicate types using DashKitProps references

* refactor: extract type from item prop instead of passing separately

* refactor: make width and height optional in PluginWidgetProps

* refactor: consolidate grid layout types in common

---------

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>

---------

Co-authored-by: Yury Kornilov <kornilovyv@yandex-team.ru>
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