Skip to content

Operations screen redesign: step cards + run history#701

Merged
fixcik merged 12 commits into
masterfrom
worktree-feat+operations-screen-redesign
Jun 17, 2026
Merged

Operations screen redesign: step cards + run history#701
fixcik merged 12 commits into
masterfrom
worktree-feat+operations-screen-redesign

Conversation

@fixcik

@fixcik fixcik commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Closes #698. Часть эпика #697.

Редизайн экрана «Операции» под предоставленный hi-fi макет. Воссоздано на существующих компонентах/токенах Cuprum, без копирования HTML-прототипа.

Левая колонка — производственные шаги

  • Карточки шагов в новом дизайне: иконка-плитка по типу (drill/UV/mill), заголовок + бейдж статуса (готово к запуску / предпросмотр), описание, кнопка Запустить/Предпросмотр.
  • Строка «Последний прогон · N назад · длительность» (из истории) либо «Ещё не запускалась».
  • Клик по карточке = выбор шага → фильтрует историю; выделение карточки.
  • Гейтинг по флагам сохранён: карточка UV за uvExposure, фрезеровка за cncMilling.

Правая колонка — история прогонов

  • Поиск (по названию + мете), чипы-фильтры по статусу со счётчиками (Все/Завершён/Остановлен/Прервано).
  • Группировка по дням со sticky-заголовками («Сегодня», «N дней назад»).
  • Статус-пилюли: Завершён (зелёный), Остановлен (янтарный), Прервано (красный — объединяет error+interrupted).
  • Чип активного шага с ✕, счётчик результатов с рус. плюрализацией, empty-state (нет прогонов vs ничего не найдено).
  • Сохранены пагинация, live-refresh, раскрытие детали, «Повторить» (гейт повтора UV за uvExposure).
  • Фикс форматирования длительности: ≥1ч → «Ч ч М м» (баг 9173м 43с).

Архитектура

Зона операций вынесена из ProjectPage в OperationsView (держит selStep), разбита на ProductionSteps/StepCard/OperationHistory + чистые модули lib/operationKind, lib/runHistoryFormat, lib/runHistoryFilter (под vitest-тестами).

Вне скоупа (отдельные задачи эпика)

Проверка

pnpm build (i18n-check + tsc + vite build) и vitest (843 теста) — зелёные. Визуальная сверка трёх состояний макета — за ревьюером.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@fixcik, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 57 minutes and 55 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 2a7fafba-d9ff-47ec-8103-6481cd926a8f

📥 Commits

Reviewing files that changed from the base of the PR and between 8361cb3 and c58634d.

📒 Files selected for processing (13)
  • cuprum-ui/src/components/operations/OperationHistory.tsx
  • cuprum-ui/src/components/operations/OperationsView.tsx
  • cuprum-ui/src/components/operations/ProductionSteps.tsx
  • cuprum-ui/src/components/operations/StepCard.tsx
  • cuprum-ui/src/lib/operationKind.ts
  • cuprum-ui/src/lib/runHistoryFilter.test.ts
  • cuprum-ui/src/lib/runHistoryFilter.ts
  • cuprum-ui/src/lib/runHistoryFormat.test.ts
  • cuprum-ui/src/lib/runHistoryFormat.ts
  • cuprum-ui/src/locales/en/project.json
  • cuprum-ui/src/locales/ru/project.json
  • cuprum-ui/src/pages/ProjectPage.tsx
  • docs/DESIGN.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@fixcik fixcik merged commit dfc96f7 into master Jun 17, 2026
4 checks passed
@fixcik fixcik deleted the worktree-feat+operations-screen-redesign branch June 17, 2026 00:01
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.

Операции: редизайн карточек шагов и истории прогонов

1 participant