Skip to content

Commit 09ad9f6

Browse files
authored
new flexgen features (#1629)
1 parent 9dd053f commit 09ad9f6

File tree

12 files changed

+198
-0
lines changed

12 files changed

+198
-0
lines changed
54.5 KB
Loading
59.3 KB
Loading
72.2 KB
Loading
68.1 KB
Loading
70.2 KB
Loading
74.2 KB
Loading
87.7 KB
Loading
80.5 KB
Loading
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# AI Testing Feature
2+
3+
## Overview
4+
5+
The Testing feature allows you to automatically test your generated applications for common issues and functionality problems. The AI will analyze your app and identify potential bugs, broken links, navigation issues, and other problems.
6+
7+
8+
```python exec
9+
import reflex as rx
10+
from reflex_image_zoom import image_zoom
11+
```
12+
13+
```python eval
14+
rx.el.div(
15+
image_zoom(
16+
rx.image(
17+
src=rx.color_mode_cond(
18+
"/ai_builder/features/test_light.webp",
19+
"/ai_builder/features/test_dark.webp",
20+
),
21+
class_name="p-2 rounded-md h-auto",
22+
border=f"0.81px solid {rx.color('slate', 5)}",
23+
),
24+
class_name="rounded-md overflow-hidden",
25+
),
26+
class_name="w-full flex flex-col rounded-md cursor-pointer",
27+
)
28+
```
29+
30+
## How to Use
31+
32+
1. **Start Testing**: Type "test this app" or similar command to activate testing mode
33+
2. **AI Analysis**: The AI will automatically switch to testing mode and begin analyzing your application
34+
3. **Review Results**: The preview tab switches to "Testing" mode to show the testing process and results
35+
36+
## What Gets Tested
37+
38+
The AI automatically checks for:
39+
40+
- **Broken Navigation**: Links that don't work or lead to missing pages
41+
- **Non-functional Buttons**: Buttons that don't respond or trigger errors
42+
- **Broken Links**: External or internal links that return errors
43+
- **UI/UX Issues**: Interface elements that don't function as expected
44+
- **Data Flow Problems**: Issues with forms, inputs, and data handling
45+
- **Layout Issues**: Visual or structural problems with the interface
46+
47+
## Testing Interface
48+
49+
When testing is active:
50+
- The preview tab changes to "Testing" mode
51+
- You can see the AI interact with your application in real-time
52+
- Issues and results are reported as they're discovered
53+
- The testing process is visual and interactive
54+
55+
## Benefits
56+
57+
- **Quality Assurance**: Catch issues before deployment
58+
- **Time Saving**: Automated testing is faster than manual checking
59+
- **Comprehensive Coverage**: Tests multiple aspects of your application
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# App Style Customization
2+
3+
## Overview
4+
5+
The App Style feature allows you to customize the visual appearance of your AI-generated applications. You can choose from predefined design themes or create custom styling to match your brand and preferences.
6+
7+
## How to Use
8+
9+
1. **Access the Feature**: Click on the App Style option to open the customization panel
10+
2. **Choose Your Approach**:
11+
- **Custom**: Manually configure individual design elements
12+
- **Themes**: Select from professionally designed templates
13+
14+
## Custom Styling Options
15+
16+
```python exec
17+
import reflex as rx
18+
from reflex_image_zoom import image_zoom
19+
```
20+
21+
```python eval
22+
rx.el.div(
23+
image_zoom(
24+
rx.image(
25+
src=rx.color_mode_cond(
26+
"/ai_builder/features/style_light.webp",
27+
"/ai_builder/features/style_dark.webp",
28+
),
29+
class_name="p-2 rounded-md h-auto",
30+
border=f"0.81px solid {rx.color('slate', 5)}",
31+
),
32+
class_name="rounded-md overflow-hidden",
33+
),
34+
class_name="w-full flex flex-col rounded-md cursor-pointer",
35+
)
36+
```
37+
38+
When using Custom mode, you can adjust:
39+
40+
- **Primary Color**: Choose your main brand color from 20+ preset options
41+
- **Secondary Color**: Select a complementary color for accents
42+
- **Typography**: Pick a font family for your app
43+
- **Border Radius**: Control how rounded corners appear
44+
- **Shadows**: Add depth with shadow effects
45+
- **Spacing**: Adjust the spacing between elements
46+
47+
## Themes
48+
49+
These options are predefined popular themes you can choose for your app. Below are some of the available themes you can choose from
50+
51+
```python eval
52+
rx.el.div(
53+
image_zoom(
54+
rx.image(
55+
src=rx.color_mode_cond(
56+
"/ai_builder/features/theme_light.webp",
57+
"/ai_builder/features/theme_dark.webp",
58+
),
59+
class_name="p-2 rounded-md h-auto",
60+
border=f"0.81px solid {rx.color('slate', 5)}",
61+
),
62+
class_name="rounded-md overflow-hidden",
63+
),
64+
class_name="w-full flex flex-col rounded-md cursor-pointer",
65+
)
66+
```
67+
68+
- **Minimal Design**: Clean, geometric design with no shadows or gradients
69+
- **Modern UI**: Sleek, contemporary interface optimized for performance
70+
- **Carbon Design**: Enterprise-grade design following IBM's Carbon system
71+
- **Material Design**: Google's design language with elevation and semantic colors

0 commit comments

Comments
 (0)