feat: add zoning system for workspace folder seat assignment#259
Open
pablodelucca wants to merge 25 commits intorc/v1.4from
Open
feat: add zoning system for workspace folder seat assignment#259pablodelucca wants to merge 25 commits intorc/v1.4from
pablodelucca wants to merge 25 commits intorc/v1.4from
Conversation
- CarpetTile interface and carpetTiles field in OfficeLayout - carpetTiles.ts: dual-grid marching squares junction renderer - assetLoader.ts: loadCarpetTiles() for PNG sprite loading - Extension wires carpetTilesLoaded message to webview - useExtensionMessages.ts handles carpetTilesLoaded - renderer.ts renders carpet junctions after floor tiles - layoutSerializer.ts includes carpetTiles in save/load Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- editorState.ts: carpet tool with carpetVariant, carpetColor, and carpetDragErasing state - editorActions.ts: paintCarpet() and eraseCarpet() pure layout ops; also fix expandLayout() to preserve carpetTiles when resizing - EditorToolbar.tsx: Carpet tab with variant swatches and HSBC color sliders (colorize mode always on) - OfficeCanvas.tsx: carpet paint/erase mouse event handling (drag support, right-click erase) - useEditorActions.ts: handleCarpetColorChange, handleCarpetVariantChange, carpet drag logic - types.ts: CARPET_PAINT added to EditTool - Layout save: carpetTiles already included via JSON.stringify in serializeLayout — no changes needed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SpriteData is already string[][], so SpriteData[][][] was one dimension too many, causing a type mismatch with the string[][][][] wire format. Fixes build error: tsc -b caught what tsc --noEmit missed.
… seemingly no effect
…r presets - Add VisualColorPicker component (SV square + vertical hue rainbow bar) for carpet colors, replacing HSBC sliders - Move carpet tab inside furniture panel as a category alongside Desks, Chairs, etc. - Make Pick and Color buttons contextual to active category (carpet vs furniture) - Fix carpet pick mode deleting carpet on click - Fix panel closing on repeated clicks (Pick toggle, Carpet tab) - Add flat colorization for carpets so chosen colors match exactly - Update default carpet colors to #941919 (main) and #dba35a (accent) - Add always-available Color button for furniture with pickedFurnitureColor for new placements - Show color shift preview in furniture thumbnails and ghost placement - Add Reset button inside ColorPicker panel - Remove carpet presets Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve conflicts from core architecture refactor (#236) — shared/assets/ moved to core/src/assets/, carpet changes ported to new location. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Paint named zones on the office map and assign workspace folders to them. Agents from a folder automatically sit in their zone's seats (zone seats first, then unzoned seats, then any seat as fallback). Zone definitions and tiles are stored in layout.json; folder-to-zone mappings are stored in the .code-workspace file under a pixel-agents key. Folders can be mapped to multiple zones. Includes zone editor tab with color pickers, inline rename, folder assignment cards, zone overlay rendering with labels on top of furniture, Show Zones settings toggle, and pixel-styled scrollbar CSS utility. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…kspaces Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Renames all zone-related types, functions, constants, props, messages, and UI text from "zone/Zone" to "area/Area". File rename: workspaceZonePersistence.ts → workspaceAreaPersistence.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
layout.json; folder-to-zone mappings stored in.code-workspacefilepixel-scrollbarCSS utility for consistent scrollbar stylingDropdowncomponent gainsdirectionandmaxHeightpropsTest plan
layout.json.code-workspacefile updates"name": "root", "path": ".") maps correctly🤖 Generated with Claude Code