Repository navigation
Conversation
added 3 commits
November 16, 2026 23:44
1. Привести размеры, состояния, dropdown, chips и группировку autocomplete к токенам макета. 2. Добавить captionSeverity через общий компонент подписи, обязательный маркер и корректную обработку readonly. 3. Обновить шаблоны PrimeNG для checkbox и удаления chips, сравнение значений и обновление ControlValueAccessor. 4. Перевести семь stories на общие Controls и показывать в snippet только текущий UI с актуальными параметрами. Заметки для ревьюеров: - API: добавлен captionSeverity с вариантами base, success, warning, danger, info; значение по умолчанию base. В режиме floatLabel placeholder скрыт, при readonly dropdown отключён и очистка скрыта. - Токены: изменён только раздел components.autocomplete; заголовок группы имеет размер текста 12 px и отступы 4 px 10 px через существующие токены. - Общие caption и chip используются как зависимости; их реализация не изменяется. Базовая ветка содержит общий компонент подписи. - Stories сохраняют один экземпляр компонента на пример; disabled и invalid управляются через FormControl, HTML-snippet обновляется при изменении Controls.
1. Восстановить исходные формулировки описаний компонента, stories и существующих Controls из main без переформулировок. 2. Сохранить чекбоксы в примере множественного выбора согласно исходному описанию и убрать новые тексты без аналога в main. Заметки для ревьюеров: - Изменён только файл stories компонента autocomplete; API компонента и токены не меняются. - Описание Error дословно взято из исходного примера Invalid; остальные исходные описания также сохранены. - Проверка описаний сверяет 32 формулировки с main; HTML-snippets по-прежнему отображают только текущий UI.
1. parameters.controls.expanded = true — панель Controls показывает описание, тип, дефолт и группы категорий. 2. Гейты: controls 39/39, descriptions 32/32, source 7/7.
khaliulin
force-pushed
the
feature/form-autocomplete-figma-sync
branch
from
November 18, 2026 12:43
bb00228 to
a2f317c
Compare
Включает глобальный controls.expanded в .storybook/preview.ts (иначе на ветке панель Controls остаётся компактной до мержа инфраструктурной ветки).
khaliulin
force-pushed
the
feature/form-autocomplete-figma-sync
branch
from
November 18, 2026 12:45
a2f317c to
3098c86
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align AutoComplete styles and behavior with the Figma component and keep each Storybook code snippet consistent with the displayed example.
Changes
API changes
captionSeverity: 'base' | 'success' | 'warning' | 'danger' | 'info', default'base'.readonlydisables the dropdown button and hides field clearing; the custom chip remove action respects readonly and disabled states.floatLabelsuppresses the placeholder to avoid overlapping text.Technical notes for reviewers
components.autocompletesubtree changes intokens.json; shared token definitions and other component implementations are untouched.check-component.fonts.fontSize.100anddimension.space.100/dimension.space.300: 12 px text and 4 px 10 px padding.#itemand#removeicon; checkbox models are standalone. Primitive values are no longer compared through an object data key.markForCheck.Visual changes
Verification
check-component autocomplete: 0 FAIL, four intentional chip-token warnings.check-stories-bg autocomplete: PASS.check-stories-controls autocomplete: PASS, all 39 inputs have Controls.check-stories-single autocomplete --port 6007: PASS, seven stories match the local story inventory, one component per story, no console errors.check-stories-source autocomplete --port 6007: PASS for all seven stories, both with initial args and changed Controls (size, label position, readonly, caption severity, dropdown and multiple).check-stories-descriptions autocomplete: PASS, 32 existing descriptions match current main verbatim, including descriptions from example files; new stories do not invent replacement prose.check-push: PASS for the complete PR range, including both mandatory story acceptance gates; only five AutoComplete files are included.tsc --noEmit -p tsconfig.app.json, targeted Prettier andgit diff --check: PASS.check-dt-refs: no AutoComplete dead references; the global check reports existing out-of-scope confirm-dialog references and token-name collisions.Known issues and open questions
chipClearable=falsehides the remove icon; keyboard removal remains available, as documented.Stack
Base:
feature/form-caption-figma-sync(#193), which depends on the shared token branch (#192). This PR contains only AutoComplete changes.