From 4f8ca7061a701b971ca9ccbe3e9425c142d3408a Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Fri, 27 Jun 2025 20:03:54 +0000 Subject: [PATCH] update --- readme.hints.md | 37 ++++++++++ ts_web/elements/wcc-sidebar.ts | 124 ++++++++++++++++++++++++--------- 2 files changed, 128 insertions(+), 33 deletions(-) diff --git a/readme.hints.md b/readme.hints.md index 982bc46..791b3b7 100644 --- a/readme.hints.md +++ b/readme.hints.md @@ -1,5 +1,42 @@ # Project Hints and Findings +## UI Redesign with Shadcn-like Styles (2025-06-27) + +### Changes Made +Updated the WCC Dashboard UI components (properties and sidebar) to use shadcn-like design patterns: + +1. **Color System**: Implemented CSS variables for theming: + - `--background`, `--foreground`, `--card`, `--primary`, `--secondary` + - `--muted`, `--accent`, `--border`, `--input`, `--ring` + - Consistent dark theme with subtle borders and proper contrast + +2. **Properties Panel Improvements**: + - Changed from fixed 3-column grid to flexible flexbox layout + - Properties now wrap and use space more efficiently + - Added rounded corners and better spacing + - Complex properties (Objects/Arrays) show "Edit" button + - Advanced JSON editor appears above properties panel when editing complex types + - Dynamic height adjustment (50px when editor is open, 100px normally) + +3. **Sidebar Styling**: + - Updated with consistent color scheme + - Added rounded corners to menu items + - Improved hover states with smooth transitions + - Better typography with proper font weights + +4. **Advanced Property Editor**: + - JSON editor for complex types (Objects and Arrays) + - Monaco-style monospace font for code editing + - Live updates to element properties + - Positioned above the properties panel with smooth transitions + +### Technical Details +- Uses system font stack for better native appearance +- Subtle borders with rgba values for transparency +- Consistent spacing using CSS variables +- Smooth transitions (0.15s ease) for interactive elements +- Custom scrollbar styling for better visual integration + ## Properties Panel Element Detection Issue (Fixed) ### Problem diff --git a/ts_web/elements/wcc-sidebar.ts b/ts_web/elements/wcc-sidebar.ts index 4de15a6..ce6abd5 100644 --- a/ts_web/elements/wcc-sidebar.ts +++ b/ts_web/elements/wcc-sidebar.ts @@ -20,28 +20,63 @@ export class WccSidebar extends DeesElement {