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

feat(ChipsInputBase): add cycle navigates between chips #6395

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

inomdzhon
Copy link
Contributor

@inomdzhon inomdzhon commented Jan 17, 2024

  • Unit-тесты

Описание

  • Добавил цикличную навигацию стрелками между чипами.

    2024-01-17.19.11.56.mov
  • Покрыл тестами ChipsSelect, ChipsInputBase, Chip.

  • Chip

    • теперь принимает readOnly. При его передаче, скрывается кнопка удаления чипа;
    • для корректного произношения скринридером, добавил &nbsp; перед скрытым текстом "Удалить <children>".

Покрыл тестами `ChipsSelect` и `ChipsInputBase`.
Copy link
Contributor

github-actions bot commented Jan 17, 2024

size-limit report 📦

Path Size
JS 348.25 KB (+0.09% 🔺)
JS (gzip) 106.51 KB (+0.08% 🔺)
JS (brotli) 88.11 KB (+0.12% 🔺)
JS import Div (tree shaking) 1.43 KB (0%)
CSS 256.51 KB (+0.04% 🔺)
CSS (gzip) 33.61 KB (+0.04% 🔺)
CSS (brotli) 27.33 KB (+0.17% 🔺)

Copy link
Contributor

github-actions bot commented Jan 17, 2024

e2e tests

Playwright Report

Copy link

codesandbox-ci bot commented Jan 17, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0a3d76c:

Sandbox Source
VKUI TypeScript Configuration

Copy link
Contributor

github-actions bot commented Jan 17, 2024

👀 Docs deployed

Commit 0a3d76c

@BlackySoul
Copy link
Contributor

Кста, так и задумано, что в readOnly инпуте нельзя стрелочками навигироваться?

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (488bd20) 81.37% compared to head (0a3d76c) 81.98%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6395      +/-   ##
==========================================
+ Coverage   81.37%   81.98%   +0.61%     
==========================================
  Files         327      327              
  Lines       10140    10134       -6     
  Branches     3412     3411       -1     
==========================================
+ Hits         8251     8308      +57     
+ Misses       1889     1826      -63     
Flag Coverage Δ
unittests 81.98% <100.00%> (+0.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@inomdzhon
Copy link
Contributor Author

inomdzhon commented Jan 18, 2024

Кста, так и задумано, что в readOnly инпуте нельзя стрелочками навигироваться?

Должно) Поправил, спасибо, что заметила

Заодно поправил момент, что при readOnly можно было удалить чипы

UPD
Тест упал 😱 Смотрю

UPD 2
✅ поправил 0a3d76c

mendrew
mendrew previously approved these changes Jan 18, 2024
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

👍

@inomdzhon inomdzhon force-pushed the imirdzhamolov/feat/ChipsInputBase-cycle-navigates branch from fec3dec to 0a3d76c Compare January 18, 2024 16:10
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

💠 Спасибо!

@inomdzhon inomdzhon added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jan 23, 2024
@inomdzhon inomdzhon merged commit 43e7905 into master Jan 23, 2024
25 checks passed
@inomdzhon inomdzhon deleted the imirdzhamolov/feat/ChipsInputBase-cycle-navigates branch January 23, 2024 12:24
vkcom-publisher pushed a commit that referenced this pull request Jan 23, 2024
h2. Описание

- Добавил цикличную навигацию стрелками между чипами.

    https://github.com/VKCOM/VKUI/assets/5850354/a849e56c-9912-4cd3-802a-97f224d9f03b

- Покрыл тестами `ChipsSelect`, `ChipsInputBase`, `Chip`.
- `Chip`
  - теперь принимает `readOnly`. При его передаче, скрывается кнопка удаления чипа;
  - для корректного произношения скринридером, добавил `&nbsp;` перед скрытым текстом `"Удалить <children>"`.
@inomdzhon inomdzhon modified the milestones: v6.1.0, v6.0.1 Jan 23, 2024
@vkcom-publisher
Copy link
Contributor

v6.0.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmp:chips cmp:chips-input cmp:chips-select patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча type:feature
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants