Skip to content

Feat/UI polish p2 enterprise#2

Open
cryptocrystian wants to merge 9 commits into
mainfrom
feat/ui-polish-p2-enterprise
Open

Feat/UI polish p2 enterprise#2
cryptocrystian wants to merge 9 commits into
mainfrom
feat/ui-polish-p2-enterprise

Conversation

@cryptocrystian

Copy link
Copy Markdown
Owner

Brand Application

  • Buttons: Primary (bg-brand), secondary (bg-panel-elevated), ghost
    (hover:bg-panel-elevated/60)
  • Links: Brand color with hover:opacity-90 and visible focus rings
  • Status chips: Semantic success/warning/danger with subtle backgrounds
  • Navigation: Active states with brand color and shadow

KPI Hero Component

  • Structure: Left score (text-6xl md:text-7xl font-metric text-brand), center sparkline, right
    actions
  • Features: Delta chip with trend arrow, sparkline on bg-panel-elevated, primary CTA +
    secondary breakdown
  • Accessibility: ARIA labels, keyboard focus, screen-reader support

12-Column Grid Layout

  • Row 1: KPI Hero (12 columns)
  • Row 2: AI Recommendations + Recent Activity (6 columns each)
  • Row 3: SEO Performance Overview (12 columns)
  • Spacing: mt-10 md:mt-12 sections, p-6 md:p-8 inner padding

Enterprise Tables

  • Features: Sticky headers, zebra rows, row hover, right-aligned numerics
  • Density toggle: Comfortable vs Compact modes
  • Pagination: Clear prev/next, item counts, page size control
  • Data formatting: Difficulty chips with proper color coding

Chart Integration

  • Theme initialization: CSS variable integration ready
  • Brand colors: Consistent palette from design system
  • Configuration: Responsive, accessible chart defaults

Focus & Accessibility

  • Focus rings: outline-2 outline-brand/70 outline-offset-2
  • WCAG AA: Verified contrast ratios >4.5:1
  • Non-color cues: Icons and text accompany color-coded status

Content Islands

  • Implementation: Dark shell with data-surface="content" for light backgrounds
  • CSS override: Light panels and borders for data-intensive components

cryptocrystian and others added 9 commits August 22, 2025 13:18
- Create React + Vite app with TypeScript in apps/web
- Implement PRAVADO design system with beige-first palette
- Configure Tailwind CSS with CSS variables for theming
- Build app shell with collapsible sidebar and responsive topbar
- Add React Router with all core routes (dashboard, campaigns, content, etc.)
- Create Dashboard with Visibility Score KPI and AI recommendations
- Build Content Studio with forced light mode and split-panel layout
- Implement PR Credits wallet widget and basic page structures
- Add dark/light theme toggle with localStorage persistence
- Full TypeScript compliance with zero errors
- Production build tested and working (apps/web/dist)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Added HSL-based CSS variables for theme system
- Implemented dark app shell with light content islands pattern
- Updated all components to use new theme tokens
- Enabled dark mode by default
- Added data-surface='content' wrappers for content areas
- Updated buttons, cards, and UI elements with new styling
- Ensured WCAG AA contrast compliance

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
- Add GitHub Actions workflow with Node 20.19.4
- Add .nvmrc and .node-version files for version management
- Update package.json engines to require Node 20+
- Fix Cloudflare Pages and GitHub Actions build issues
- Update GitHub Actions to use Node.js setup v4
- Change from npm ci to npm install for initial setup
- Add test script to prevent workflow failures
- Remove duplicate/conflicting workflows (deploy-pages.yml, nodejs.yml)
- Simplify to single CI workflow with Node 20.19.4
- Add clean Cloudflare Pages deployment workflow
- Remove cache dependency issues by using npm install
- Fix Node version conflicts between workflows
- Set Vite base to './' for relative asset paths
- This fixes assets loading on Cloudflare Pages subdirectory URLs
- Resolves 404 errors on preview deployments
✨ Features:
- Enterprise KPI hero with structured layout, sparkline, and CTA buttons
- 12-column CSS grid dashboard layout with responsive sections
- Brand token application across buttons, links, chips, and navigation
- Enterprise data tables with sticky headers, zebra rows, and density toggle
- SectionCard component for consistent dashboard sections
- Chart.js theme integration utilities for brand consistency

🎨 Brand Application:
- Standardized button variants (primary, secondary, ghost) with brand colors
- Interactive links with brand color and hover states
- Status chips with semantic colors and subtle backgrounds
- Navigation active states with brand indicators

📊 Tables & Data:
- Sticky table headers for long scrolling
- Right-aligned numeric columns with monospace fonts
- Difficulty chip colors: <=40 success, 41-70 warning, >70 danger
- Density toggle (Comfortable/Compact) for different use cases
- Pagination with clear prev/next and item counts

♿ Accessibility:
- Standardized focus rings with 2px outline and brand color
- WCAG AA contrast compliance across all components
- Proper ARIA labels and screen reader support
- Keyboard navigation for all interactive elements

🏗️ Architecture:
- Content island pattern with data-surface='content' wrapper
- Dark app shell with light surfaces for data components
- HSL-based color system with CSS variables
- Responsive typography scaling and spacing tiers

🧪 Testing:
- Playwright visual snapshots for KPI hero and tables
- Test data masking for stable visual regression testing
- Focus state testing for accessibility compliance

📚 Documentation:
- Comprehensive UI-Patterns.md with implementation guide
- Component anatomy and usage examples
- Brand application standards and guidelines

🤖 Generated with Claude Code

Co-Authored-By: Claude <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