Skip to content

fix(artifacts): replace console-ui components deprecated by #5279 - #5431

Merged
shepherdjerred merged 1 commit into
mainfrom
artifacts-console-ui-deprecations
Nov 28, 2026
Merged

shepherdjerred merged 1 commit into
mainfrom
artifacts-console-ui-deprecations

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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 (same props; the focused header renders identically).
  • ThemeToggle becomes the ThemeButton it 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.

Before (main) After
Light before light after light
Dark before dark after dark

Verification

  • bunx turbo run build typecheck test lint --filter=@shepherdjerred/artifacts: pass (lint was failing on main with two no-deprecated errors).
  • bun run test:e2e in packages/artifacts: 103 passed (chromium and webkit).
  • bunx lefthook run pre-commit: pass.
  • Extended tier: no affected workspace has extended steps beyond artifacts' own, unchanged by this edit. Live checks: none (service not deployed).

🤖 Generated with Claude Code

https://claude.ai/code/session_011u9pQkmfQzZFyzPbpimoiT

Summary by CodeRabbit

  • UI Updates
    • The app header now uses the theme button from the phone navigation, with the existing theme controls retained.
    • Preset selection in the focused header is displayed as tabs. The existing label, options, selected preset, and change behavior remain the same.

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
@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The artifacts client replaces the header’s ThemeToggle with ThemeButton and replaces the viewport-width control’s Segmented component with Tabs. The viewport-width control retains its existing props and options.

Changes: Artifacts UI component updates

Layer / File(s) Summary
Header theme control
packages/artifacts/src/client/app.tsx
The header imports and renders ThemeButton with themeStore instead of ThemeToggle.
Viewport-width control
packages/artifacts/src/client/pages/focused-header.tsx
The framed viewport-width control uses Tabs instead of Segmented. Its props and options remain unchanged.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Refactor

Merge Risk: Minimal · up to de5cf

This swaps deprecated UI components for their replacements in the artifacts header and viewport-width control, with no intended change in behavior or markup. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: replacing console-ui components that were deprecated by #5279 (Segmented and ThemeToggle) in the artifacts package. The changeset swaps Segmented for Tabs in focused-h…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the main change: replacing console-ui components that were deprecated by #5279 (Segmented and ThemeToggle) in the artifacts package. The changeset swaps Segmented for Tabs in focused-header.tsx and ThemeToggle for ThemeButton in app.tsx, so the title matches the changeset. The fix(artifacts) prefix fits the lint-error fix described in the objectives.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d469849 and de5cfec.

Files selected for processing: 2

  • packages/artifacts/src/client/app.tsx
  • packages/artifacts/src/client/pages/focused-header.tsx

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@shepherdjerred
shepherdjerred marked this pull request as ready for review November 28, 2026 07:47
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@coderabbitai review

Automated re-review request for de5cfec from the CI review gate.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@shepherdjerred
shepherdjerred merged commit 57207f6 into main Nov 28, 2026
2 of 7 checks passed
@shepherdjerred
shepherdjerred deleted the artifacts-console-ui-deprecations branch November 28, 2026 07:59
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
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>
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