Skip to content

Paint panel polish: sticky controls, selection outlines, category auto-select#429

Merged
wass08 merged 2 commits into
mainfrom
feat/paint-panel-polish
Jun 18, 2026
Merged

Paint panel polish: sticky controls, selection outlines, category auto-select#429
wass08 merged 2 commits into
mainfrom
feat/paint-panel-polish

Conversation

@wass08

@wass08 wass08 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Four small paint-panel (Build sidebar) refinements requested before prod:

  1. Sticky controls — the eraser / reset-all row and the category tabs stay
    pinned; only the material list scrolls (the panel owns its own scroll instead
    of scrolling the whole block).
  2. Consistent selection outline — the selected catalog swatch now uses the
    same ring-1 ring-primary ring-inset highlight as item/preset tiles in the
    catalog (was a different ring-2 ring-primary-foreground).
  3. Active scene-material outline — the scene-material card you're currently
    painting with gets that same outline, so it's clear which one is the brush.
  4. Category auto-select — choosing a material category auto-selects its first
    material, so the brush is immediately ready.

Scoped to MaterialPaintPanel / MaterialPicker / SceneMaterialList; no
behavioral change to painting itself.

How to test

  1. bun dev, enter paint mode (Build sidebar).
  2. Scroll the material list — eraser/reset + category tabs stay pinned.
  3. Click a category — its first material is auto-selected and outlined.
  4. Pick a scene material to paint with — its card shows the active outline.

Screenshots / screen recording

Visual change; will be verified on the consuming private-editor preview.

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable)
  • This PR targets the main branch

🤖 Generated with Claude Code

wass08 and others added 2 commits June 18, 2026 12:45
…tlines, auto-select

- MaterialPaintPanel owns its scroll: the eraser/reset row stays pinned and
  the category tabs stick to the top, so only the material list scrolls.
- Selected catalog swatch + active scene-material card use the same
  `ring-1 ring-primary ring-inset` outline as item/preset tiles.
- Choosing a material category auto-selects its first material.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…he grid

Layout is now: fixed eraser/reset + category tabs (no longer sticky-inside-
scroll), a single scrolling catalog grid, and an always-visible scene-material
footer. The custom-material "+" moved out of the colors-only grid cell onto the
scene-material section header, so a custom material can be added from any
category (creates a blank scene material, selects it as the brush, opens its
inline editor).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wass08 wass08 merged commit 628bd7f into main Jun 18, 2026
1 of 2 checks passed
@wass08 wass08 deleted the feat/paint-panel-polish branch June 18, 2026 16:53
@mintlify

mintlify Bot commented Jun 18, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
pascal 🔴 Failed Jun 18, 2026, 5:16 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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