Skip to content

feat(chat-appearance): enhance chat appearance customization options - #379

Merged
yashdev9274 merged 1 commit into
mainfrom
nova-2
Dec 2, 2026
Merged

yashdev9274 merged 1 commit into
mainfrom
nova-2

Conversation

@yashdev9274

@yashdev9274 yashdev9274 commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner
  • Introduced new properties for chat appearance, including background image selection and effect adjustments.
  • Implemented bounding and restoration logic for brightness, blur, and opacity settings.
  • Added tests to validate new appearance features and ensure defaults are applied correctly.
  • Updated UI components to support background image selection and effect settings in the chat appearance picker.

Description

Please include a summary of the change and which issue is fixed.

Fixes #(issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • bun test passes
  • bun run typecheck passes
  • bun run lint passes (if applicable)

Checklist:

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Summary by CodeRabbit

  • New Features
    • Customize the chat background with Night sky or Clouds, and choose between an ASCII rendering and the original image.
    • Adjust brightness, blur, image and overlay opacity, bottom fade, and input opacity to tailor the appearance.
    • Appearance settings are preserved when changing background colors or themes.
  • Changes
    • The ASCII background is now static rather than animated.

- Introduced new properties for chat appearance, including background image selection and effect adjustments.
- Implemented bounding and restoration logic for brightness, blur, and opacity settings.
- Added tests to validate new appearance features and ensure defaults are applied correctly.
- Updated UI components to support background image selection and effect settings in the chat appearance picker.
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
supercli Ready Ready Preview Dec 2, 2026 5:53am UTC
supercli-client Ready Ready Preview Dec 2, 2026 5:53am UTC
supercli-docs Ready Ready Preview Dec 2, 2026 5:53am UTC
3 Skipped Deployments
Project Deployment Actions Updated
nova-agent Skipped Skipped Dec 2, 2026 5:53am UTC
nova-agent-2eiu Skipped Skipped Dec 2, 2026 5:53am UTC
vercel-supercodeai-integration Skipped Skipped Dec 2, 2026 5:53am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Chat appearance now supports selectable background images, ASCII or image rendering, and configurable visual adjustments. The settings and home views pass these choices to the background renderer.

Changes

Background Appearance

Layer / File(s) Summary
Appearance values and restoration
apps/web/modules/nova-web/chat-appearance.ts, apps/web/modules/nova-web/chat-appearance.test.ts
ChatAppearance adds image, effect, and adjustment fields with defaults. The parser retains recognized values and clamps finite numeric adjustments. Tests cover restoration, bounds, and fallback behavior.
Image-based background rendering
apps/web/modules/nova-web/components/ascii-background.tsx
AsciiBackground draws a cover-fitted image or renders sampled image pixels as tinted glyphs. It redraws on image load and resize and applies appearance settings to the canvas. Animation and its pause/play control are removed.
Appearance controls and integration
apps/web/modules/nova-web/components/settings-appearance.tsx, apps/web/modules/nova-web/components/chat-appearance.tsx, apps/web/modules/nova-web/components/home.tsx
The settings and picker add image and effect choices and adjustment controls while preserving other appearance settings. The settings preview and home view pass the selected image and appearance to AsciiBackground.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant AppearanceSection
  participant AsciiBackground
  User->>AppearanceSection: Select image, effect, or adjustment
  AppearanceSection->>AsciiBackground: Pass appearance and image
  AsciiBackground->>AsciiBackground: Draw image or sampled glyphs
Loading

Possibly related PRs

  • yashdev9274/supercli#328: Adds the appearance preference model, parser, background component, and picker that this change extends.
  • yashdev9274/supercli#373: Adds the Appearance settings page and preview that this change extends with background controls.
  • 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

A rabbit picks a cloudy sky,
Then watches glyphs go hopping by.
Brightness climbs and blur grows small,
Soft fades gather at the wall.
Night or clouds, each scene takes flight,
The canvas glows through rabbit night.

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 Tier: plusRetriggerView in Greptile

[Medium impact] The PR changes appearance behavior in Nova’s new-thread workflow.

The PR appears safe to merge, with non-blocking fixes recommended for short-window scrolling and text contrast over photos.

Findings

  1. P2 Picker controls leave the screen ▶
  2. P2 Automatic text blends into photos ▶

Summary

Adds bundled chat backgrounds and replaces the animated canvas with image-based ASCII or an original photo.

  • Nova’s canvas draws a chosen picture as ASCII art or as an image.
  • People can choose backgrounds and tune how Nova’s new-thread canvas looks.
  • Nova restores supported background choices and bounded adjustments.

Validation was limited to source review. Web dependencies are not installed, so UI capture was blocked. Image attachments could not be viewed by this model.

Reviews (1) · Last reviewed commit: "feat(chat-appearance): enhance chat appe..." · Reviewed by Greptile

</button>
))}
</div>
<fieldset className="mb-4"><legend className="mb-2 text-xs text-muted-foreground">Background image</legend><div className="grid grid-cols-2 gap-2">{([{ id: "night", label: "Night sky", src: "/nova/ascii-night.webp" }, { id: "clouds", label: "Clouds", src: "/cloudy.png" }] as const).map((item) => <button key={item.id} type="button" aria-pressed={(appearance.image ?? "night") === item.id} onClick={() => onChange({ ...appearance, image: item.id })} className="overflow-hidden rounded-lg border border-white/10 text-left text-xs text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white aria-pressed:ring-2 aria-pressed:ring-white/60"><span aria-hidden="true" className="block h-16 bg-cover bg-center" style={{ backgroundImage: `url(${item.src})` }} /><span className="block px-2 py-1.5">{item.label}</span></button>)}</div></fieldset>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Picker controls leave the screen

The new image section makes the appearance picker too tall for short browser windows. PopoverContent has a height cap but no scrolling; the shared overflow-y: auto rule applies only to dropdown menus. The bottom color and automatic-contrast controls can extend off-screen. Add overflow-y-auto to the picker so those controls remain reachable.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines +31 to +36
if (appearance?.effect === "image") {
const scale = Math.max(width / source.naturalWidth, height / source.naturalHeight)
const imageWidth = source.naturalWidth * scale
const imageHeight = source.naturalHeight * scale
context.clearRect(0, 0, width, height)
context.drawImage(source, (width - imageWidth) / 2, (height - imageHeight) / 2, imageWidth, imageHeight)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Automatic text blends into photos

Automatic text contrast still uses only appearance.background, but Original image covers that color at full opacity by default. The heading and project controls have no solid backing. For example, Paper keeps black text even when the brightness slider darkens the photo behind it. Add a contrast-preserving backing for this text, or account for the displayed image when choosing its automatic color.

@yashdev9274
yashdev9274 merged commit 4036ee1 into main Dec 2, 2026
10 of 14 checks passed

This branch was successfully deployed

3 active and 1 inactive deployments
Preview – supercli — 8bb8d0eb Deployed Dec 2, 2026 by vercel[bot]
Preview – supercli-docs — 8bb8d0eb Deployed Dec 2, 2026 by vercel[bot]
Preview – supercli-client — 8bb8d0eb Deployed Dec 2, 2026 by vercel[bot]
Preview – vercel-supercodeai-integration — 8bb8d0eb Deployed Dec 2, 2026 by vercel[bot]
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