Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plasma-new-hope: fix id generation for Modal, Popup #1001

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

kayman233
Copy link
Contributor

@kayman233 kayman233 commented Jan 24, 2024

Modal

  • поправлена генерация id для Modal, Popup
  • добавлены тесты для Modal, Popup

What/why changed

Ломалось использование ModalBase без id из-за того, что неправильно пробрасывали. Теперь также используем safeUseId вместо useUniqId. Добавлены тесты для web, b2c для обоих компонент.

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
# or 
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1001/

@Salute-Eva
Copy link
Contributor

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1001/

@Salute-Eva
Copy link
Contributor

@kayman233 kayman233 marked this pull request as ready for review January 24, 2024 11:33
@@ -43,14 +43,14 @@ export const modalRoot = (Root: RootProps<HTMLDivElement, ModalProps>) =>

const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRootRef);

const uniqId = useUniqId();
Copy link
Contributor

Choose a reason for hiding this comment

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

Может нам дропнуть useUniq из core ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

отдельной бы задачкой. А то plasma-ui весь на нём

Copy link
Contributor

Choose a reason for hiding this comment

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

вообще странно что у нас все на нем, хотя он устарел
давайте да отдельной задачкой выпилим

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1001/

@Salute-Eva
Copy link
Contributor

Copy link
Contributor

⚡ Component performance testing

Result: 🟢 OK

@kayman233 kayman233 added this pull request to the merge queue Jan 25, 2024
Merged via the queue into dev with commit 092a661 Jan 25, 2024
25 checks passed
@kayman233 kayman233 deleted the kayman233/fix-id-usage-modal.PLASMA-2364 branch January 25, 2024 10:40
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

This was referenced Jan 31, 2024
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

This was referenced Jul 24, 2024
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.

4 participants