Skip to content

Commit 8252583

Browse files
committed
Enhance wizard interface and functionality
- Added advanced completion step styles in wizard.css for better user guidance. - Updated wizard.min.css to include new styles for next steps, pro features, and resources sections. - Implemented WordPress color picker initialization in wizard.js for color fields. - Improved sidebar.php by adding alt attributes to social media icons for better accessibility. - Enhanced Media_Handler class to extract alt text from image tags and use it if the alt meta is empty. - Updated wzkb-styles.css with improved color schemes for alert messages to enhance visual consistency.
1 parent 0cd547a commit 8252583

File tree

12 files changed

+849
-91
lines changed

12 files changed

+849
-91
lines changed

docs/BEACON-WIDGET.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The Beacon is a floating help widget that provides self-service support with sea
1111
- **Smart Suggested Articles** - Context-aware articles using Related class for KB posts, recent articles elsewhere
1212
- **Contact Form** - HTML email contact with beautiful template when articles don't help
1313
- **Built-in Spam Protection** - Honeypot field plus anonymous rate limiting without storing IPs
14+
- **Minimum Message Length** - Requires at least 30 characters before submitting (filterable)
1415
- **Stacked Navigation** - Mobile-app-style layered interface for smooth UX
1516
- **Responsive Design** - Works beautifully on desktop, tablet, and mobile devices
1617
- **Fixed Search Box** - Search box locked at bottom using CSS Grid for optimal UX
@@ -23,6 +24,7 @@ The Beacon is a floating help widget that provides self-service support with sea
2324
- **Smooth Animations** - Polished transitions and hover effects
2425
- **Accessibility** - Keyboard navigation, focus states, and ARIA labels
2526
- **Modern UI** - Clean, professional design with rounded corners and shadows
27+
- **Smart Color Palette** - Setup wizard derives hover/text/link colors from your primary brand color while keeping the panel background white for readability
2628

2729
## Configuration
2830

@@ -38,6 +40,8 @@ Navigate to **Knowledge Base > Settings > Output** and scroll to the **Beacon He
3840
- **Button Text** - Custom text for the button (default: "Help")
3941
- **Beacon Color** - Primary color for button and UI elements (default: #617DEC)
4042

43+
> **Setup Wizard Color Tips:** When using the setup wizard, choosing a primary color automatically generates a full palette (button hover, text, panel text, and link hover colors) with contrast-aware values. The panel background is intentionally kept white to maintain content readability.
44+
4145
#### Content Settings
4246

4347
- **Greeting Message** - Welcome message when beacon opens (default: "Hi! How can we help you?")
@@ -47,6 +51,7 @@ Navigate to **Knowledge Base > Settings > Output** and scroll to the **Beacon He
4751

4852
- **Enable Contact Form** - Allow visitors to send messages
4953
- **Contact Email** - Email address for form submissions (default: admin email)
54+
- **Minimum Message Length** - Require visitors to enter at least 30 characters (default: 30, filterable)
5055

5156
#### Display Options
5257

@@ -222,6 +227,7 @@ add_filter( 'wzkb_beacon_labels', function( $labels ) {
222227
- `successMessage` - Success message after form submission
223228
- `errorMessage` - Error message
224229
- `requiredField` - Required field validation message
230+
- `messageTooShort` - Message length validation error
225231

226232
### Suggested Articles
227233

@@ -360,7 +366,7 @@ Add custom styles to override defaults:
360366
- Output escaping (esc_html, esc_attr, esc_url)
361367
- Email validation
362368
- XSS prevention in JavaScript
363-
- Honeypot field on the contact form and token-based rate limiting (no IP storage)
369+
- Honeypot field on the contact form and token-based rate limiting (5 submissions/hour per token, no IP storage)
364370

365371
### Performance
366372

docs/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ This directory contains developer documentation for the Knowledge Base plugin.
44

55
## Available Documentation
66

7-
### Rating System Documentation
7+
- **[BEACON-WIDGET.md](BEACON-WIDGET.md)**
8+
- Feature overview and configuration
9+
- Security, spam protection, and validation rules
10+
- JavaScript API, events, and customization hooks
11+
- Styling guidance and troubleshooting tips
812

9-
- **[RATING-SYSTEM.md](RATING-SYSTEM.md)** - Complete documentation for the Pro rating system
13+
- **[RATING-SYSTEM.md](RATING-SYSTEM.md)**
1014
- Configuration options and tracking methods
1115
- GDPR compliance guidance
1216
- Frontend display and customization
1317
- Admin features and Bayesian sorting
1418
- Security features and performance
1519
- Privacy policy templates
1620

17-
### Styles Architecture Release Notes
18-
19-
- **[STYLES-ARCHITECTURE-RELEASE.md](STYLES-ARCHITECTURE-RELEASE.md)** - Complete release notes for v2.3.0 styles architecture overhaul
20-
- What changed and why
21-
- Technical implementation details
22-
- New developer filters
23-
- Migration guide
24-
- Benefits and future roadmap
21+
- **[STYLES-ARCHITECTURE-RELEASE.md](STYLES-ARCHITECTURE-RELEASE.md)**
22+
- Complete release notes for v2.3.0 styles architecture overhaul
23+
- Technical implementation details and new filters
24+
- Migration guide, benefits, and roadmap
2525

2626
## For Plugin Users
2727

0 commit comments

Comments
 (0)