Repository navigation
fix(artifacts): replace console-ui components deprecated by #5279 - #5431
Conversation
Why - #5279 deprecated `ThemeToggle` and `Segmented`; #5331 landed using both, so `@shepherdjerred/artifacts` lint (`@typescript-eslint/no-deprecated`) is red on main. What - `Segmented` becomes `Tabs` (identical props and, in the focused header, identical rendering). - `ThemeToggle` becomes the `ThemeButton` it wraps, imported from console-ui's shell module; the markup is unchanged. Verification - bunx turbo run build typecheck test lint --filter=@shepherdjerred/artifacts: pass. - bun run test:e2e in packages/artifacts: 103 passed (chromium and webkit). - bunx lefthook run pre-commit: pass. - Not run: extended tier (no workspace with extended steps depends on this change), live checks (artifacts is not deployed). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011u9pQkmfQzZFyzPbpimoiT
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@coderabbitai review Automated re-review request for |
Action performed
|
Why #5331 added artifacts as a console-ui consumer after #5279 required every consumer to run the per-app conformance scan. Main's verify fails on console-ui's consumers test ("every console-ui consumer runs the conformance scan or is exempt"), which also holds back image publication. What - packages/artifacts/src/client/conformance.test.ts, the per-app scan, taken from 41754d7 (FM-356 / #5268). - conformance-allowlist.json baseline of the current findings. The two deprecated-import entries are dropped because #5431 removed those imports; the ESLint suppressions from 41754d7 are not needed for the same reason. Verification - vitest src/client/conformance.test.ts (artifacts): 1 passed. - vitest src/consumers.test.ts (console-ui): 2 passed. - bunx turbo run typecheck test lint --filter=@shepherdjerred/artifacts --filter=@shepherdjerred/console-ui: 15/15. - Not run: Woodpecker CI (admin merge, authorized), deployment. Claude-Session: https://claude.ai/code/session_011u9pQkmfQzZFyzPbpimoiT Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Why
#5279 deprecated
ThemeToggleandSegmented; #5331 landed using both, so@shepherdjerred/artifactslint (@typescript-eslint/no-deprecated) is red on main.What
SegmentedbecomesTabs(same props; the focused header renders identically).ThemeTogglebecomes theThemeButtonit wraps, imported from console-ui's shell module; markup unchanged.Demo
The focused header (viewport tabs and theme control) looks the same before and after.
Verification
bunx turbo run build typecheck test lint --filter=@shepherdjerred/artifacts: pass (lint was failing on main with twono-deprecatederrors).bun run test:e2einpackages/artifacts: 103 passed (chromium and webkit).bunx lefthook run pre-commit: pass.🤖 Generated with Claude Code
https://claude.ai/code/session_011u9pQkmfQzZFyzPbpimoiT
Summary by CodeRabbit