Skip to content

Feat/redesign image - #835

Merged
TorinAsakura merged 47 commits into
feat/redesign-avatarfrom
feat/redesign-image
Nov 21, 2026
Merged

TorinAsakura merged 47 commits into
feat/redesign-avatarfrom
feat/redesign-image

Conversation

@comfrt1k

Copy link
Copy Markdown
Contributor

Таска

  1. Контекст: Storybook → Components → Image → Базовый.
    Действие: переключить fit между cover и contain.
    Ожидаемый результат: cover заполняет область с обрезкой, contain показывает изображение целиком.

  2. Контекст: Controls этой истории.
    Действие: включить isLoading.
    Ожидаемый результат: поверх изображения появляются затемнение и Progress; размеры области сохраняются.

  3. Контекст: Controls → src.
    Действие: очистить адрес, затем указать несуществующий.
    Ожидаемый результат: без адреса отображается иконка Placeholder; при ошибке — красная иконка и errorDescription.

  4. Контекст: пример в состоянии ошибки.
    Действие: изменить width/height, затем вернуть рабочий src.
    Ожидаемый результат: горизонтальные отступы остаются 12px, иконка масштабируется пропорционально ширине; после успешной загрузки fallback исчезает.

  5. Контекст: Storybook → Image → Docs.
    Действие: повторить переключение fit и loading через Controls.
    Ожидаемый результат: пример обновляется без ошибок рендера.

Пруфы

Details
2026-11-18.19.27.03.mov

comfrt1k and others added 28 commits November 6, 2026 10:54
BREAKING CHANGE: Replace tooltip container, arrow and animated props with the new API.
Text is required and shape and appearance use new models.
BREAKING CHANGE: Image now renders a container around the native img and
requires alt. Pass alt='' for decorative images.
The default container is 120x120. Set width/height or shape.container to
control its bounds. Use containerProps to customize the wrapper.
children and dangerouslySetInnerHTML are no longer accepted.
React and React DOM 19 are now required.
@comfrt1k comfrt1k self-assigned this Nov 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T12:55:33.158351Z 84fd39a New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64ccd7339f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@TorinAsakura
TorinAsakura added this pull request to stack #834 November 21, 2026 12:54
@TorinAsakura
TorinAsakura merged commit 82292ba into feat/v2 Nov 21, 2026
2 checks passed
@TorinAsakura
TorinAsakura deleted the feat/redesign-image branch November 21, 2026 12:56
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.

2 participants